get rid of the last svn mentions
[libav.git] / libavformat / riff.h
CommitLineData
04d7f601
DB
1/*
2 * RIFF codec tags
3 * copyright (c) 2000 Fabrice Bellard
4 *
b78e7197
DB
5 * This file is part of FFmpeg.
6 *
7 * FFmpeg is free software; you can redistribute it and/or
04d7f601
DB
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
b78e7197 10 * version 2.1 of the License, or (at your option) any later version.
04d7f601 11 *
b78e7197 12 * FFmpeg is distributed in the hope that it will be useful,
04d7f601
DB
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
b78e7197 18 * License along with FFmpeg; if not, write to the Free Software
04d7f601
DB
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
7caf0cc6 22/**
ba87f080 23 * @file
7caf0cc6
MN
24 * internal header for RIFF based (de)muxers
25 * do NOT include this in end user applications
26 */
27
98790382
SS
28#ifndef AVFORMAT_RIFF_H
29#define AVFORMAT_RIFF_H
9d9f4119 30
245976da 31#include "libavcodec/avcodec.h"
99545457 32#include "avio.h"
80b39e1c 33#include "internal.h"
99545457 34
ae628ec1
AK
35int64_t ff_start_tag(AVIOContext *pb, const char *tag);
36void ff_end_tag(AVIOContext *pb, int64_t start);
9d9f4119 37
456a70ae
PR
38/**
39 * Read BITMAPINFOHEADER structure and set AVStream codec width, height and
40 * bits_per_encoded_sample fields. Does not read extradata.
41 * @return codec tag
42 */
ae628ec1 43int ff_get_bmp_header(AVIOContext *pb, AVStream *st);
456a70ae 44
ae628ec1
AK
45void ff_put_bmp_header(AVIOContext *pb, AVCodecContext *enc, const AVCodecTag *tags, int for_asf);
46int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc);
1a40491e 47enum CodecID ff_wav_codec_get_id(unsigned int tag, int bps);
ae628ec1 48void ff_get_wav_header(AVIOContext *pb, AVCodecContext *codec, int size);
9d9f4119 49
1a40491e
DV
50extern const AVCodecTag ff_codec_bmp_tags[];
51extern const AVCodecTag ff_codec_wav_tags[];
9d9f4119 52
83c27079 53unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum CodecID id);
1a40491e 54enum CodecID ff_codec_get_id(const AVCodecTag *tags, unsigned int tag);
9d9f4119
MR
55void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, int *au_ssize, int *au_scale);
56
98790382 57#endif /* AVFORMAT_RIFF_H */