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

libavformat/riff.h

Go to the documentation of this file.
00001 /*
00002  * RIFF codec tags
00003  * copyright (c) 2000 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 
00028 #ifndef AVFORMAT_RIFF_H
00029 #define AVFORMAT_RIFF_H
00030 
00031 #include "libavcodec/avcodec.h"
00032 #include "avio.h"
00033 #include "internal.h"
00034 #include "metadata.h"
00035 
00036 extern const AVMetadataConv ff_riff_info_conv[];
00037 extern const char ff_riff_tags[][5];
00038 
00039 int64_t ff_start_tag(AVIOContext *pb, const char *tag);
00040 void ff_end_tag(AVIOContext *pb, int64_t start);
00041 
00047 int ff_get_bmp_header(AVIOContext *pb, AVStream *st);
00048 
00049 void ff_put_bmp_header(AVIOContext *pb, AVCodecContext *enc, const AVCodecTag *tags, int for_asf);
00050 int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc);
00051 enum CodecID ff_wav_codec_get_id(unsigned int tag, int bps);
00052 int ff_get_wav_header(AVIOContext *pb, AVCodecContext *codec, int size);
00053 
00054 extern const AVCodecTag ff_codec_bmp_tags[];
00055 extern const AVCodecTag ff_codec_wav_tags[];
00056 
00057 unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum CodecID id);
00058 enum CodecID ff_codec_get_id(const AVCodecTag *tags, unsigned int tag);
00059 void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, int *au_ssize, int *au_scale);
00060 
00061 int ff_read_riff_info(AVFormatContext *s, int64_t size);
00062 
00063 #endif /* AVFORMAT_RIFF_H */
Generated on Thu Jan 24 2013 17:08:55 for Libav by doxygen 1.7.1