Libav 0.7.1
|
00001 /* 00002 * "Real" compatible muxer and demuxer. 00003 * Copyright (c) 2000, 2001 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 00022 #ifndef AVFORMAT_RM_H 00023 #define AVFORMAT_RM_H 00024 00025 #include "avformat.h" 00026 #include "internal.h" 00027 00028 extern const char * const ff_rm_metadata[4]; 00029 extern const unsigned char ff_sipr_subpk_size[4]; 00030 extern const AVCodecTag ff_rm_codec_tags[]; 00031 00032 typedef struct RMStream RMStream; 00033 00034 RMStream *ff_rm_alloc_rmstream (void); 00035 void ff_rm_free_rmstream (RMStream *rms); 00036 00037 /*< input format for Realmedia-style RTSP streams */ 00038 extern AVInputFormat ff_rdt_demuxer; 00039 00052 int ff_rm_read_mdpr_codecdata (AVFormatContext *s, AVIOContext *pb, 00053 AVStream *st, RMStream *rst, 00054 int codec_data_size); 00055 00073 int ff_rm_parse_packet (AVFormatContext *s, AVIOContext *pb, 00074 AVStream *st, RMStream *rst, int len, 00075 AVPacket *pkt, int *seq, int flags, int64_t ts); 00076 00093 int ff_rm_retrieve_cache (AVFormatContext *s, AVIOContext *pb, 00094 AVStream *st, RMStream *rst, AVPacket *pkt); 00095 00101 void ff_rm_reorder_sipr_data(uint8_t *buf, int sub_packet_h, int framesize); 00102 00103 #endif /* AVFORMAT_RM_H */