#include <ortp/port.h>
Include dependency graph for payloadtype.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Definition in file payloadtype.h.
#define rtp_profile_clear_payload | ( | profile, | |||
index | ) | rtp_profile_set_payload(profile,index,NULL) |
Set payload type number unassigned in the profile.
profile | an RTP profile | |
index | the payload type number |
Definition at line 116 of file payloadtype.h.
bool_t fmtp_get_value | ( | const char * | fmtp, | |
const char * | param_name, | |||
char * | result, | |||
size_t | result_len | |||
) |
Parses a fmtp string such as "profile=0;level=10", finds the value matching parameter param_name, and writes it into result. Despite fmtp strings are not used anywhere within oRTP, this function can be useful for people using RTP streams described from SDP.
fmtp | the fmtp line (format parameters) | |
param_name | the parameter to search for | |
result | the value given for the parameter (if found) | |
result_len | the size allocated to hold the result string |
Definition at line 112 of file payloadtype.c.
void payload_type_destroy | ( | PayloadType * | pt | ) |
Frees a PayloadType.
Definition at line 93 of file payloadtype.c.
References _PayloadType::mime_type, _PayloadType::recv_fmtp, and _PayloadType::send_fmtp.
void payload_type_set_recv_fmtp | ( | PayloadType * | pt, | |
const char * | fmtp | |||
) |
Sets a recv parameters (fmtp) for the PayloadType. This method is provided for applications using RTP with SDP, but actually the ftmp information is not used for RTP processing.
Definition at line 69 of file payloadtype.c.
References _PayloadType::recv_fmtp.
void payload_type_set_send_fmtp | ( | PayloadType * | pt, | |
const char * | fmtp | |||
) |
Sets a send parameters (fmtp) for the PayloadType. This method is provided for applications using RTP with SDP, but actually the ftmp information is not used for RTP processing.
Definition at line 82 of file payloadtype.c.
References _PayloadType::send_fmtp.
void rtp_profile_clear_all | ( | RtpProfile * | obj | ) |
Initialize the profile to the empty profile (all payload type are unassigned).
profile | a RTP profile |
Definition at line 247 of file payloadtype.c.
References _RtpProfile::payload, and RTP_PROFILE_MAX_PAYLOADS.
void rtp_profile_set_name | ( | RtpProfile * | obj, | |
const char * | name | |||
) |
Set a name to the rtp profile. (This is not required)
profile | a rtp profile object | |
nm | a string |
Definition at line 261 of file payloadtype.c.
References _RtpProfile::name.
void rtp_profile_set_payload | ( | RtpProfile * | prof, | |
int | idx, | |||
PayloadType * | pt | |||
) |
Assign payload type number index to payload type desribed in pt for the RTP profile profile.
profile | a RTP profile | |
idx | the payload type number | |
pt | the payload type description |
Definition at line 234 of file payloadtype.c.
References _RtpProfile::payload, and RTP_PROFILE_MAX_PAYLOADS.