00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef AVFORMAT_RTP_H
00022 #define AVFORMAT_RTP_H
00023
00024 #include "libavformat/avformat.h"
00025 #include "libavcodec/avcodec.h"
00026
00038 int ff_rtp_get_payload_type(AVFormatContext *fmt, AVCodecContext *codec,
00039 int idx);
00040
00053 int ff_rtp_get_codec_info(AVCodecContext *codec, int payload_type);
00054
00064 const char *ff_rtp_enc_name(int payload_type);
00065
00074 enum AVCodecID ff_rtp_codec_id(const char *buf, enum AVMediaType codec_type);
00075
00076 #define RTP_PT_PRIVATE 96
00077 #define RTP_VERSION 2
00078 #define RTP_MAX_SDES 256
00080
00081 #define RTCP_TX_RATIO_NUM 5
00082 #define RTCP_TX_RATIO_DEN 1000
00083
00084
00085
00086
00087
00088 #define RTP_XIPH_IDENT 0xfecdba
00089
00090
00091 enum RTCPType {
00092 RTCP_FIR = 192,
00093 RTCP_NACK,
00094 RTCP_SMPTETC,
00095 RTCP_IJ,
00096 RTCP_SR = 200,
00097 RTCP_RR,
00098 RTCP_SDES,
00099 RTCP_BYE,
00100 RTCP_APP,
00101 RTCP_RTPFB,
00102 RTCP_PSFB,
00103 RTCP_XR,
00104 RTCP_AVB,
00105 RTCP_RSI,
00106 RTCP_TOKEN,
00107 };
00108
00109 #define RTP_PT_IS_RTCP(x) (((x) >= RTCP_FIR && (x) <= RTCP_IJ) || \
00110 ((x) >= RTCP_SR && (x) <= RTCP_TOKEN))
00111
00112 #endif