() 10l
[libav.git] / libavformat / riff.h
CommitLineData
04d7f601
DB
1/*
2 * RIFF codec tags
3 * copyright (c) 2000 Fabrice Bellard
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
9d9f4119
MR
20#ifndef FF_RIFF_H
21#define FF_RIFF_H
22
23offset_t start_tag(ByteIOContext *pb, const char *tag);
24void end_tag(ByteIOContext *pb, offset_t start);
25
26typedef struct CodecTag {
27 int id;
28 unsigned int tag;
29 unsigned int invalid_asf : 1;
30} CodecTag;
31
32void put_bmp_header(ByteIOContext *pb, AVCodecContext *enc, const CodecTag *tags, int for_asf);
33int put_wav_header(ByteIOContext *pb, AVCodecContext *enc);
34int wav_codec_get_id(unsigned int tag, int bps);
35void get_wav_header(ByteIOContext *pb, AVCodecContext *codec, int size);
36
37extern const CodecTag codec_bmp_tags[];
38extern const CodecTag codec_wav_tags[];
39
40unsigned int codec_get_tag(const CodecTag *tags, int id);
41enum CodecID codec_get_id(const CodecTag *tags, unsigned int tag);
42unsigned int codec_get_bmp_tag(int id);
43unsigned int codec_get_wav_tag(int id);
44enum CodecID codec_get_bmp_id(unsigned int tag);
45enum CodecID codec_get_wav_id(unsigned int tag);
46unsigned int codec_get_asf_tag(const CodecTag *tags, unsigned int id);
47void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, int *au_ssize, int *au_scale);
48
49#endif