]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/blob - libavformat/riff.h
move common stuff from avienc.c and wav.c to new file riff.c
[frescor/ffmpeg.git] / libavformat / riff.h
1 #ifndef FF_RIFF_H
2 #define FF_RIFF_H
3
4 offset_t start_tag(ByteIOContext *pb, const char *tag);
5 void end_tag(ByteIOContext *pb, offset_t start);
6
7 typedef struct CodecTag {
8     int id;
9     unsigned int tag;
10     unsigned int invalid_asf : 1;
11 } CodecTag;
12
13 void put_bmp_header(ByteIOContext *pb, AVCodecContext *enc, const CodecTag *tags, int for_asf);
14 int put_wav_header(ByteIOContext *pb, AVCodecContext *enc);
15 int wav_codec_get_id(unsigned int tag, int bps);
16 void get_wav_header(ByteIOContext *pb, AVCodecContext *codec, int size);
17
18 extern const CodecTag codec_bmp_tags[];
19 extern const CodecTag codec_wav_tags[];
20
21 unsigned int codec_get_tag(const CodecTag *tags, int id);
22 enum CodecID codec_get_id(const CodecTag *tags, unsigned int tag);
23 unsigned int codec_get_bmp_tag(int id);
24 unsigned int codec_get_wav_tag(int id);
25 enum CodecID codec_get_bmp_id(unsigned int tag);
26 enum CodecID codec_get_wav_id(unsigned int tag);
27 unsigned int codec_get_asf_tag(const CodecTag *tags, unsigned int id);
28 void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, int *au_ssize, int *au_scale);
29
30 #endif