00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
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
00035 int64_t ff_start_tag(ByteIOContext *pb, const char *tag);
00036 void ff_end_tag(ByteIOContext *pb, int64_t start);
00037
00038 void ff_put_bmp_header(ByteIOContext *pb, AVCodecContext *enc, const AVCodecTag *tags, int for_asf);
00039 int ff_put_wav_header(ByteIOContext *pb, AVCodecContext *enc);
00040 enum CodecID ff_wav_codec_get_id(unsigned int tag, int bps);
00041 void ff_get_wav_header(ByteIOContext *pb, AVCodecContext *codec, int size);
00042
00043 extern const AVCodecTag ff_codec_bmp_tags[];
00044 extern const AVCodecTag ff_codec_wav_tags[];
00045
00046 unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum CodecID id);
00047 enum CodecID ff_codec_get_id(const AVCodecTag *tags, unsigned int tag);
00048 void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, int *au_ssize, int *au_scale);
00049
00050 #endif