28 #include <ortp/port.h>
36 #define PAYLOAD_TYPE_ALLOCATED (1)
38 #define PAYLOAD_TYPE_IS_VBR (1<<1)
39 #define PAYLOAD_TYPE_RTCP_FEEDBACK_ENABLED (1<<2)
41 #define PAYLOAD_TYPE_PRIV1 (1<<3)
43 #define PAYLOAD_TYPE_USER_FLAG_0 (1<<4)
44 #define PAYLOAD_TYPE_USER_FLAG_1 (1<<5)
45 #define PAYLOAD_TYPE_USER_FLAG_2 (1<<6)
46 #define PAYLOAD_TYPE_USER_FLAG_3 (1<<7)
47 #define PAYLOAD_TYPE_USER_FLAG_4 (1<<8)
50 #define PAYLOAD_AUDIO_CONTINUOUS 0
51 #define PAYLOAD_AUDIO_PACKETIZED 1
52 #define PAYLOAD_VIDEO 2
53 #define PAYLOAD_TEXT 4
54 #define PAYLOAD_OTHER 3
56 #define PAYLOAD_TYPE_AVPF_NONE 0
57 #define PAYLOAD_TYPE_AVPF_FIR (1 << 0)
58 #define PAYLOAD_TYPE_AVPF_PLI (1 << 1)
59 #define PAYLOAD_TYPE_AVPF_SLI (1 << 2)
60 #define PAYLOAD_TYPE_AVPF_RPSI (1 << 3)
85 #ifndef PayloadType_defined
86 #define PayloadType_defined
91 #define payload_type_set_flag(pt,flag) (pt)->flags|=((int)flag)
92 #define payload_type_unset_flag(pt,flag) (pt)->flags&=(~(int)flag)
93 #define payload_type_get_flags(pt) (pt)->flags
98 ORTP_PUBLIC
char *payload_type_get_rtpmap(
PayloadType *pt);
102 ORTP_PUBLIC
void payload_type_append_recv_fmtp(
PayloadType *pt,
const char *fmtp);
103 ORTP_PUBLIC
void payload_type_append_send_fmtp(
PayloadType *pt,
const char *fmtp);
104 #define payload_type_get_avpf_params(pt) ((pt)->avpf)
107 #define payload_type_get_bitrate(pt) ((pt)->normal_bitrate)
108 #define payload_type_get_rate(pt) ((pt)->clock_rate)
109 #define payload_type_get_mime(pt) ((pt)->mime_type)
111 ORTP_PUBLIC bool_t
fmtp_get_value(
const char *fmtp,
const char *param_name,
char *result,
size_t result_len);
113 #define payload_type_set_user_data(pt,p) (pt)->user_data=(p)
114 #define payload_type_get_user_data(pt) ((pt)->user_data)
123 ORTP_VAR_PUBLIC
PayloadType payload_type_l16_stereo;
133 ORTP_VAR_PUBLIC
PayloadType payload_type_aal2_g726_40;
134 ORTP_VAR_PUBLIC
PayloadType payload_type_aal2_g726_32;
135 ORTP_VAR_PUBLIC
PayloadType payload_type_aal2_g726_24;
136 ORTP_VAR_PUBLIC
PayloadType payload_type_aal2_g726_16;
142 ORTP_VAR_PUBLIC
PayloadType payload_type_speex_uwb;
146 ORTP_VAR_PUBLIC
PayloadType payload_type_truespeech;
153 ORTP_VAR_PUBLIC
PayloadType payload_type_aaceld_16k;
154 ORTP_VAR_PUBLIC
PayloadType payload_type_aaceld_22k;
155 ORTP_VAR_PUBLIC
PayloadType payload_type_aaceld_32k;
156 ORTP_VAR_PUBLIC
PayloadType payload_type_aaceld_44k;
157 ORTP_VAR_PUBLIC
PayloadType payload_type_aaceld_48k;
166 ORTP_VAR_PUBLIC
PayloadType payload_type_h263_1998;
167 ORTP_VAR_PUBLIC
PayloadType payload_type_h263_2000;
185 ORTP_VAR_PUBLIC
PayloadType payload_type_telephone_event;
Definition: payloadtype.h:67
int clock_rate
Definition: payloadtype.h:70
ORTP_PUBLIC void payload_type_destroy(PayloadType *pt)
Definition: payloadtype.c:134
Definition: payloadtype.h:62
char * mime_type
Definition: payloadtype.h:76
unsigned char features
Definition: payloadtype.h:63
ORTP_PUBLIC void payload_type_set_recv_fmtp(PayloadType *pt, const char *fmtp)
Definition: payloadtype.c:77
ORTP_PUBLIC bool_t fmtp_get_value(const char *fmtp, const char *param_name, char *result, size_t result_len)
Definition: payloadtype.c:183
int channels
Definition: payloadtype.h:77
ORTP_PUBLIC void payload_type_set_send_fmtp(PayloadType *pt, const char *fmtp)
Definition: payloadtype.c:90
uint16_t trr_interval
Definition: payloadtype.h:64
int type
Definition: payloadtype.h:69