#include "libavcodec/bitstream.h"
#include "avformat.h"
#include <unistd.h>
#include "network.h"
#include "rtp.h"
Go to the source code of this file.
Functions | |
int | ff_rtp_get_codec_info (AVCodecContext *codec, int payload_type) |
Initialize a codec context based on the payload type. | |
int | ff_rtp_get_payload_type (AVCodecContext *codec) |
Return the payload type for a given codec. | |
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 CodecType codec_type) |
Return the codec id for the given encoding name and codec type. | |
Variables | |
struct { | |
int pt | |
const char enc_name [6] | |
enum CodecType codec_type | |
enum CodecID codec_id | |
int clock_rate | |
int audio_channels | |
} | AVRtpPayloadTypes [] |
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 123 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 111 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 77 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 96 of file rtp.c.
Referenced by rtp_write_header().
int audio_channels |
struct { ... } AVRtpPayloadTypes[] [static] |
Referenced by ff_rtp_codec_id(), ff_rtp_enc_name(), ff_rtp_get_codec_info(), and ff_rtp_get_payload_type().
int clock_rate |
Definition at line 43 of file rtp.c.
Referenced by audio_read_header(), audio_write_header(), av_guess_codec(), ff_rtp_get_codec_info(), ff_rtp_get_payload_type(), ff_vbv_update(), matroska_read_header(), mpegps_read_packet(), new_audio_stream(), new_pes_av_stream(), and new_video_stream().
enum CodecType codec_type |
Definition at line 42 of file rtp.c.
Referenced by avi_read_header(), build_feed_streams(), new_pes_av_stream(), opt_bitrate(), and sdp_parse_line().
const char enc_name[6] |
int pt |
Definition at line 40 of file rtp.c.
Referenced by ff_rtp_enc_name(), ff_rtp_get_codec_info(), vp56_free(), vp5_parse_coeff(), vp5_parse_coeff_models(), vp6_parse_coeff(), vp6_parse_coeff_huffman(), and vp6_parse_coeff_models().