FFmpeg
|
Go to the source code of this file.
Functions | |
int | ff_rtp_get_codec_info (AVCodecParameters *par, int payload_type) |
Initialize a codec context based on the payload type. More... | |
int | ff_rtp_get_payload_type (const AVFormatContext *fmt, const AVCodecParameters *par, int idx) |
Return the payload type for a given stream used in the given format context. More... | |
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. More... | |
enum AVCodecID | ff_rtp_codec_id (const char *buf, enum AVMediaType codec_type) |
Return the codec id for the given encoding name and codec type. More... | |
Variables | |
struct { | |
int pt | |
const char enc_name [6] | |
enum AVMediaType codec_type | |
enum AVCodecID codec_id | |
int clock_rate | |
int audio_channels | |
} | rtp_payload_types [] |
int ff_rtp_get_codec_info | ( | AVCodecParameters * | par, |
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.
par | The codec parameters |
payload_type | The payload type (the 'PT' field in the RTP header) |
int ff_rtp_get_payload_type | ( | const AVFormatContext * | fmt, |
const AVCodecParameters * | par, | ||
int | idx | ||
) |
Return the payload type for a given stream used in the given format context.
Static payload types are derived from the codec. Dynamic payload type are derived from the id field in AVStream. The format context private option payload_type overrides both.
fmt | The context of the format |
par | The codec parameters |
idx | The stream index |
Definition at line 93 of file rtp.c.
Referenced by ff_rtp_chain_mux_open(), and rtp_write_header().
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) |
enum AVCodecID 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 |
int pt |
Definition at line 35 of file rtp.c.
Referenced by ff_rtp_enc_name(), ff_rtp_get_codec_info(), h264_export_frame_props(), main(), vp5_parse_coeff(), vp5_parse_coeff_models(), vp6_decode_free_context(), vp6_parse_coeff(), vp6_parse_coeff_huffman(), and vp6_parse_coeff_models().
const char enc_name[6] |
Definition at line 36 of file rtp.c.
Referenced by ff_rtp_codec_id(), and main().
enum AVMediaType codec_type |
Definition at line 37 of file rtp.c.
Referenced by avcodec_string(), avi_read_header(), create_stream(), ff_rtp_codec_id(), ff_rtp_handler_find_by_id(), ff_rtp_handler_find_by_name(), get_nth_codec_stream_index(), imm5_decode_frame(), mkv_write_packet(), moflex_read_sync(), new_stream(), parse_variant_stream_mapstring(), stream_cycle_channel(), vtenc_configure_encoder(), vtenc_create_encoder(), and vtenc_populate_extradata().
enum AVCodecID codec_id |
Definition at line 38 of file rtp.c.
Referenced by ff_rtp_get_codec_info(), and ff_rtp_get_payload_type().
int clock_rate |
Definition at line 39 of file rtp.c.
Referenced by ff_rtp_get_codec_info().
int audio_channels |
Definition at line 40 of file rtp.c.
Referenced by ff_rtp_get_codec_info(), and new_stream_audio().
const { ... } rtp_payload_types[] |
Referenced by ff_rtp_codec_id(), ff_rtp_enc_name(), ff_rtp_get_codec_info(), and ff_rtp_get_payload_type().