28 #include <ortp/port.h>
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];
83 ORTP_PUBLIC
PayloadType * rtp_profile_get_payload_from_rtpmap(
RtpProfile *profile,
const char *rtpmap);
84 ORTP_PUBLIC
int rtp_profile_get_payload_number_from_mime(
RtpProfile *profile,
const char *mime);
85 ORTP_PUBLIC
int rtp_profile_get_payload_number_from_rtpmap(
RtpProfile *profile,
const char *rtpmap);
86 ORTP_PUBLIC
int rtp_profile_find_payload_number(
RtpProfile *prof,
const char *mime,
int rate,
int channels);
87 ORTP_PUBLIC
PayloadType * rtp_profile_find_payload(
RtpProfile *prof,
const char *mime,
int rate,
int channels);
88 ORTP_PUBLIC
int rtp_profile_move_payload(
RtpProfile *prof,
int oldpos,
int newpos);
90 ORTP_PUBLIC
RtpProfile * rtp_profile_new(
const char *name);
98 ORTP_PUBLIC
void rtp_profile_destroy(
RtpProfile *prof);
Definition: payloadtype.h:67
ORTP_PUBLIC void rtp_profile_set_name(RtpProfile *prof, const char *name)
Definition: rtpprofile.c:180
Definition: rtpprofile.h:41
ORTP_PUBLIC void rtp_profile_set_payload(RtpProfile *prof, int idx, PayloadType *pt)
Definition: rtpprofile.c:153
ORTP_PUBLIC void rtp_profile_clear_all(RtpProfile *prof)
Definition: rtpprofile.c:166