34#define RTP_PROFILE_MAX_PAYLOADS 128
52#define rtp_profile_get_name(profile) (const char*)((profile)->name)
62#define rtp_profile_clear_payload(profile,index) \
63 rtp_profile_set_payload(profile,index,NULL)
75 if (idx<0 || idx>=RTP_PROFILE_MAX_PAYLOADS) {
78 return prof->payload[idx];
83ORTP_PUBLIC
PayloadType * rtp_profile_get_payload_from_rtpmap(
RtpProfile *profile,
const char *rtpmap);
84ORTP_PUBLIC
int rtp_profile_get_payload_number_from_mime(
RtpProfile *profile,
const char *mime);
85ORTP_PUBLIC
int rtp_profile_get_payload_number_from_rtpmap(
RtpProfile *profile,
const char *rtpmap);
86ORTP_PUBLIC
int rtp_profile_find_payload_number(
RtpProfile *prof,
const char *mime,
int rate,
int channels);
87ORTP_PUBLIC
PayloadType * rtp_profile_find_payload(
RtpProfile *prof,
const char *mime,
int rate,
int channels);
88ORTP_PUBLIC
int rtp_profile_move_payload(
RtpProfile *prof,
int oldpos,
int newpos);
90ORTP_PUBLIC
RtpProfile * rtp_profile_new(
const char *name);
98ORTP_PUBLIC
void rtp_profile_destroy(
RtpProfile *prof);
ORTP_PUBLIC void rtp_profile_set_name(RtpProfile *prof, const char *name)
Definition: rtpprofile.c:180
ORTP_PUBLIC void rtp_profile_clear_all(RtpProfile *prof)
Definition: rtpprofile.c:166
ORTP_PUBLIC void rtp_profile_set_payload(RtpProfile *prof, int idx, PayloadType *pt)
Definition: rtpprofile.c:153
Definition: payloadtype.h:54
Definition: rtpprofile.h:42