ffmpeg / libavformat / riff.h @ 9dd94f83
History | View | Annotate | Download (1.99 KB)
1 | 04d7f601 | Diego Biurrun | /*
|
---|---|---|---|
2 | * RIFF codec tags
|
||
3 | * copyright (c) 2000 Fabrice Bellard
|
||
4 | *
|
||
5 | 2912e87a | Mans Rullgard | * This file is part of Libav.
|
6 | b78e7197 | Diego Biurrun | *
|
7 | 2912e87a | Mans Rullgard | * Libav is free software; you can redistribute it and/or
|
8 | 04d7f601 | Diego Biurrun | * modify it under the terms of the GNU Lesser General Public
|
9 | * License as published by the Free Software Foundation; either
|
||
10 | b78e7197 | Diego Biurrun | * version 2.1 of the License, or (at your option) any later version.
|
11 | 04d7f601 | Diego Biurrun | *
|
12 | 2912e87a | Mans Rullgard | * Libav is distributed in the hope that it will be useful,
|
13 | 04d7f601 | Diego Biurrun | * 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
|
||
18 | 2912e87a | Mans Rullgard | * License along with Libav; if not, write to the Free Software
|
19 | 04d7f601 | Diego Biurrun | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
20 | */
|
||
21 | |||
22 | 7caf0cc6 | Michael Niedermayer | /**
|
23 | ba87f080 | Diego Biurrun | * @file
|
24 | 7caf0cc6 | Michael Niedermayer | * internal header for RIFF based (de)muxers
|
25 | * do NOT include this in end user applications
|
||
26 | */
|
||
27 | |||
28 | 98790382 | Stefano Sabatini | #ifndef AVFORMAT_RIFF_H
|
29 | #define AVFORMAT_RIFF_H
|
||
30 | 9d9f4119 | Måns Rullgård | |
31 | 245976da | Diego Biurrun | #include "libavcodec/avcodec.h" |
32 | 99545457 | Måns Rullgård | #include "avio.h" |
33 | 80b39e1c | Francesco Lavra | #include "internal.h" |
34 | 99545457 | Måns Rullgård | |
35 | ae628ec1 | Anton Khirnov | int64_t ff_start_tag(AVIOContext *pb, const char *tag); |
36 | void ff_end_tag(AVIOContext *pb, int64_t start);
|
||
37 | 9d9f4119 | Måns Rullgård | |
38 | 456a70ae | Peter Ross | /**
|
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 | */
|
||
43 | ae628ec1 | Anton Khirnov | int ff_get_bmp_header(AVIOContext *pb, AVStream *st);
|
44 | 456a70ae | Peter Ross | |
45 | ae628ec1 | Anton Khirnov | void ff_put_bmp_header(AVIOContext *pb, AVCodecContext *enc, const AVCodecTag *tags, int for_asf); |
46 | int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc);
|
||
47 | 1a40491e | Daniel Verkamp | enum CodecID ff_wav_codec_get_id(unsigned int tag, int bps); |
48 | ae628ec1 | Anton Khirnov | void ff_get_wav_header(AVIOContext *pb, AVCodecContext *codec, int size); |
49 | 9d9f4119 | Måns Rullgård | |
50 | 1a40491e | Daniel Verkamp | extern const AVCodecTag ff_codec_bmp_tags[]; |
51 | extern const AVCodecTag ff_codec_wav_tags[]; |
||
52 | 9d9f4119 | Måns Rullgård | |
53 | 83c27079 | Stefano Sabatini | unsigned int ff_codec_get_tag(const AVCodecTag *tags, enum CodecID id); |
54 | 1a40491e | Daniel Verkamp | enum CodecID ff_codec_get_id(const AVCodecTag *tags, unsigned int tag); |
55 | 9d9f4119 | Måns Rullgård | void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, int *au_ssize, int *au_scale); |
56 | |||
57 | 98790382 | Stefano Sabatini | #endif /* AVFORMAT_RIFF_H */ |