Mercurial > libavformat.hg
annotate riff.h @ 1306:8bf9be9bb107 libavformat
Add official LGPL license headers to the files that were missing them.
author | diego |
---|---|
date | Sun, 10 Sep 2006 14:02:42 +0000 |
parents | 6a5e58d2114b |
children | 0899bfe4105c |
rev | line source |
---|---|
1306
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1172
diff
changeset
|
1 /* |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1172
diff
changeset
|
2 * RIFF codec tags |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1172
diff
changeset
|
3 * copyright (c) 2000 Fabrice Bellard |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1172
diff
changeset
|
4 * |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1172
diff
changeset
|
5 * This library is free software; you can redistribute it and/or |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1172
diff
changeset
|
6 * modify it under the terms of the GNU Lesser General Public |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1172
diff
changeset
|
7 * License as published by the Free Software Foundation; either |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1172
diff
changeset
|
8 * version 2 of the License, or (at your option) any later version. |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1172
diff
changeset
|
9 * |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1172
diff
changeset
|
10 * This library is distributed in the hope that it will be useful, |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1172
diff
changeset
|
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1172
diff
changeset
|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1172
diff
changeset
|
13 * Lesser General Public License for more details. |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1172
diff
changeset
|
14 * |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1172
diff
changeset
|
15 * You should have received a copy of the GNU Lesser General Public |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1172
diff
changeset
|
16 * License along with this library; if not, write to the Free Software |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1172
diff
changeset
|
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1172
diff
changeset
|
18 */ |
8bf9be9bb107
Add official LGPL license headers to the files that were missing them.
diego
parents:
1172
diff
changeset
|
19 |
1172
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
20 #ifndef FF_RIFF_H |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
21 #define FF_RIFF_H |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
22 |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
23 offset_t start_tag(ByteIOContext *pb, const char *tag); |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
24 void end_tag(ByteIOContext *pb, offset_t start); |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
25 |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
26 typedef struct CodecTag { |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
27 int id; |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
28 unsigned int tag; |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
29 unsigned int invalid_asf : 1; |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
30 } CodecTag; |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
31 |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
32 void put_bmp_header(ByteIOContext *pb, AVCodecContext *enc, const CodecTag *tags, int for_asf); |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
33 int put_wav_header(ByteIOContext *pb, AVCodecContext *enc); |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
34 int wav_codec_get_id(unsigned int tag, int bps); |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
35 void get_wav_header(ByteIOContext *pb, AVCodecContext *codec, int size); |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
36 |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
37 extern const CodecTag codec_bmp_tags[]; |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
38 extern const CodecTag codec_wav_tags[]; |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
39 |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
40 unsigned int codec_get_tag(const CodecTag *tags, int id); |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
41 enum CodecID codec_get_id(const CodecTag *tags, unsigned int tag); |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
42 unsigned int codec_get_bmp_tag(int id); |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
43 unsigned int codec_get_wav_tag(int id); |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
44 enum CodecID codec_get_bmp_id(unsigned int tag); |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
45 enum CodecID codec_get_wav_id(unsigned int tag); |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
46 unsigned int codec_get_asf_tag(const CodecTag *tags, unsigned int id); |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
47 void ff_parse_specific_params(AVCodecContext *stream, int *au_rate, int *au_ssize, int *au_scale); |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
48 |
6a5e58d2114b
move common stuff from avienc.c and wav.c to new file riff.c
mru
parents:
diff
changeset
|
49 #endif |