#include "libavcodec/avcodec.h"
Go to the source code of this file.
Defines | |
#define | RTP_PT_PRIVATE 96 |
#define | RTP_VERSION 2 |
#define | RTP_MAX_SDES 256 |
maximum text length for SDES | |
#define | RTCP_TX_RATIO_NUM 5 |
#define | RTCP_TX_RATIO_DEN 1000 |
Functions | |
int | ff_rtp_get_payload_type (AVCodecContext *codec) |
Return the payload type for a given codec. | |
int | ff_rtp_get_codec_info (AVCodecContext *codec, int payload_type) |
Initialize a codec context based on the payload type. | |
const char * | ff_rtp_enc_name (int payload_type) |
Return the encoding name (as defined in http://www.iana.org/assignments/rtp-parameters) for a given payload type. | |
enum CodecID | ff_rtp_codec_id (const char *buf, enum AVMediaType codec_type) |
Return the codec id for the given encoding name and codec type. |
#define RTCP_TX_RATIO_DEN 1000 |
Definition at line 77 of file rtp.h.
Referenced by rtp_check_and_send_back_rr(), and rtp_write_packet().
#define RTCP_TX_RATIO_NUM 5 |
Definition at line 76 of file rtp.h.
Referenced by rtp_check_and_send_back_rr(), and rtp_write_packet().
#define RTP_PT_PRIVATE 96 |
Definition at line 71 of file rtp.h.
Referenced by rtp_write_header(), sdp_parse_line(), and sdp_parse_rtpmap().
#define RTP_VERSION 2 |
Definition at line 72 of file rtp.h.
Referenced by ff_rtp_send_data(), rtp_check_and_send_back_rr(), rtp_parse_packet(), and rtp_send_punch_packets().
enum CodecID ff_rtp_codec_id | ( | const char * | buf, | |
enum AVMediaType | codec_type | |||
) |
Return the codec id for the given encoding name and codec type.
buf | A pointer to the string containing the encoding name | |
codec_type | The codec type |
Definition at line 121 of file rtp.c.
Referenced by sdp_parse_rtpmap().
const char* ff_rtp_enc_name | ( | int | payload_type | ) |
Return the encoding name (as defined in http://www.iana.org/assignments/rtp-parameters) for a given payload type.
payload_type | The payload type (the 'PT' field in the RTP header) |
Definition at line 109 of file rtp.c.
Referenced by rtp_parse_close(), rtp_parse_open(), and sdp_parse_line().
int ff_rtp_get_codec_info | ( | AVCodecContext * | codec, | |
int | payload_type | |||
) |
Initialize a codec context based on the payload type.
Fill the codec_type and codec_id fields of a codec context with information depending on the payload type; for audio codecs, the channels and sample_rate fields are also filled.
codec | The context of the codec | |
payload_type | The payload type (the 'PT' field in the RTP header) |
Definition at line 73 of file rtp.c.
Referenced by sdp_parse_line().
int ff_rtp_get_payload_type | ( | AVCodecContext * | codec | ) |
Return the payload type for a given codec.
codec | The context of the codec |
Definition at line 92 of file rtp.c.
Referenced by rtp_write_header().