• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • Examples
  • File List
  • Globals

libavformat/rtp.h

Go to the documentation of this file.
00001 /*
00002  * RTP definitions
00003  * Copyright (c) 2002 Fabrice Bellard
00004  *
00005  * This file is part of Libav.
00006  *
00007  * Libav is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2.1 of the License, or (at your option) any later version.
00011  *
00012  * Libav is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with Libav; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00020  */
00021 #ifndef AVFORMAT_RTP_H
00022 #define AVFORMAT_RTP_H
00023 
00024 #include "libavformat/avformat.h"
00025 #include "libavcodec/avcodec.h"
00026 
00034 int ff_rtp_get_payload_type(AVFormatContext *fmt, AVCodecContext *codec);
00035 
00048 int ff_rtp_get_codec_info(AVCodecContext *codec, int payload_type);
00049 
00059 const char *ff_rtp_enc_name(int payload_type);
00060 
00069 enum CodecID ff_rtp_codec_id(const char *buf, enum AVMediaType codec_type);
00070 
00071 #define RTP_PT_PRIVATE 96
00072 #define RTP_VERSION 2
00073 #define RTP_MAX_SDES 256   
00075 /* RTCP packets use 0.5% of the bandwidth */
00076 #define RTCP_TX_RATIO_NUM 5
00077 #define RTCP_TX_RATIO_DEN 1000
00078 
00079 /* An arbitrary id value for RTP Xiph streams - only relevant to indicate
00080  * the the configuration has changed within a stream (by changing the
00081  * ident value sent).
00082  */
00083 #define RTP_XIPH_IDENT 0xfecdba
00084 
00085 /* RTCP packet types */
00086 enum RTCPType {
00087     RTCP_SR     = 200,
00088     RTCP_RR,   // 201
00089     RTCP_SDES, // 202
00090     RTCP_BYE,  // 203
00091     RTCP_APP   // 204
00092 };
00093 
00094 #endif /* AVFORMAT_RTP_H */
Generated on Sun Apr 22 2012 21:54:08 for Libav by doxygen 1.7.1