#include <stdint.h>


Go to the source code of this file.
Defines | |
| #define | RTP_DEF_CLK_RATE 8000 |
| #define | RTP_DEF_MAX_NAME_LEN 16 |
| #define | RTP_ATTRS_ARRAY_DEF_SIZE 3 |
| #define | RTP_PT_ATTRS_INITIALIZER {NULL, 0, 0} |
| #define | RTP_PT_COMMON_FIELDS |
| #define | RTP_AUDIO_FIELDS uint8_t channels; |
| #define | RTP_VIDEO_FIELDS |
| #define | RTP_FMTS_ARRAY_DEF_SIZE 3 |
| #define | RTP_FMTS_INITIALIZER {0, NULL, NULL} |
| #define | RTP_PT(x) ((rtp_pt *)x) |
| #define | RTP_AUDIO(x) ((rtp_audio *)x) |
| #define | RTP_VIDEO(x) ((rtp_video *)x) |
| #define | RTP_AUDIO_VIDEO(x) ((rtp_audio_video *)x) |
Typedefs | |
| typedef struct rtp_pt_def | rtp_pt |
| typedef struct _rtp_fmts_list | rtp_fmts_list |
Enumerations | |
| enum | rtp_media_type { AU = 0, VI = 1, AV = 2, NA = 3 } |
Functions | |
| void | rtpptdefs_new (rtp_pt *[]) |
| rtp_pt * | rtp_pt_new (rtp_media_type mtype) |
| int | rtp_dynpt_set (rtp_pt *defs[], rtp_pt *pt, uint8_t value) |
| int | rtp_dynpt_encname (rtp_pt *defs[], uint8_t value, char *enc_name) |
| int | rtp_pt_attr_add (rtp_pt *defs[], uint8_t value, char *) |
| rtp_pt_attrs specific functions | |
Definition in file rtpptdefs.h.
| #define RTP_PT_COMMON_FIELDS |
Value:
char name[RTP_DEF_MAX_NAME_LEN]; \ rtp_media_type type; \ unsigned rate; \ unsigned long prev_timestamp; \ rtp_pt_attrs attrs; \ void *priv;
Definition at line 57 of file rtpptdefs.h.
| int rtp_dynpt_encname | ( | rtp_pt * | defs[], | |
| uint8_t | value, | |||
| char * | enc_name | |||
| ) |
Sets an encoding name for the payload type registered on the given ID
| defs | The payload types array where to look up the payload type. | |
| value | The ID for which to change the encoding name (A payload type must be already registered at the given ID) | |
| enc_name | The encoding name to set |
Definition at line 286 of file rtp_payload_type.c.
| int rtp_dynpt_set | ( | rtp_pt * | defs[], | |
| rtp_pt * | pt, | |||
| uint8_t | value | |||
| ) |
Registers a payload type structure ad the given ID
| defs | The payload type array where to map the payload type to the given id | |
| pt | The payload type | |
| value | The ID mapped to the payload type (only ids > 96 are valid for dynamic payload types) |
Definition at line 261 of file rtp_payload_type.c.
| int rtp_pt_attr_add | ( | rtp_pt * | defs[], | |
| uint8_t | value, | |||
| char * | attr | |||
| ) |
rtp_pt_attrs specific functions
Adds a new attribute to the given payload type ID
| defs | The payload types array where to look up the payload type. | |
| value | The ID for which to add the attribute (A payload type must be already registered at the given ID) | |
| attr | the name of the attribute to add |
Definition at line 328 of file rtp_payload_type.c.
| rtp_pt* rtp_pt_new | ( | rtp_media_type | mtype | ) |
Creates a new payload type for the given media type
| mtype | Specifies the media type of the payload |
Definition at line 222 of file rtp_payload_type.c.
| void rtpptdefs_new | ( | rtp_pt * | new_defs[] | ) |
Initializes a new rtp payload types array with the standard one
Definition at line 212 of file rtp_payload_type.c.
Referenced by rtp_session_init().
1.5.4