comparison libmpdemux/mp_taglists.c @ 26328:11aac031b4b7

Split the lavf taglists out of the lavf muxer to allow using libmpmux without libmpdemux.
author albeu
date Wed, 09 Apr 2008 00:46:21 +0000
parents
children f6183d22bdb3
comparison
equal deleted inserted replaced
26327:fa91545f01bb 26328:11aac031b4b7
1 /*
2 * This file is part of MPlayer.
3 *
4 * MPlayer is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * MPlayer is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18
19 #include "config.h"
20
21 #include "libavformat/avformat.h"
22 #include "libavformat/riff.h"
23
24 static const AVCodecTag mp_wav_tags[] = {
25 { CODEC_ID_ADPCM_4XM, MKTAG('4', 'X', 'M', 'A')},
26 { CODEC_ID_ADPCM_EA, MKTAG('A', 'D', 'E', 'A')},
27 { CODEC_ID_ADPCM_IMA_WS, MKTAG('A', 'I', 'W', 'S')},
28 { CODEC_ID_ADPCM_THP, MKTAG('T', 'H', 'P', 'A')},
29 { CODEC_ID_AMR_NB, MKTAG('n', 'b', 0, 0)},
30 { CODEC_ID_COOK, MKTAG('c', 'o', 'o', 'k')},
31 { CODEC_ID_DSICINAUDIO, MKTAG('D', 'C', 'I', 'A')},
32 { CODEC_ID_INTERPLAY_DPCM, MKTAG('I', 'N', 'P', 'A')},
33 { CODEC_ID_MUSEPACK7, MKTAG('M', 'P', 'C', ' ')},
34 { CODEC_ID_MUSEPACK8, MKTAG('M', 'P', 'C', '8')},
35 { CODEC_ID_NELLYMOSER, MKTAG('N', 'E', 'L', 'L')},
36 { CODEC_ID_QDM2, MKTAG('Q', 'D', 'M', '2')},
37 { CODEC_ID_ROQ_DPCM, MKTAG('R', 'o', 'Q', 'A')},
38 { CODEC_ID_SHORTEN, MKTAG('s', 'h', 'r', 'n')},
39 { CODEC_ID_SPEEX, MKTAG('s', 'p', 'x', ' ')},
40 { CODEC_ID_TTA, MKTAG('T', 'T', 'A', '1')},
41 { CODEC_ID_WAVPACK, MKTAG('W', 'V', 'P', 'K')},
42 { CODEC_ID_WESTWOOD_SND1, MKTAG('S', 'N', 'D', '1')},
43 { CODEC_ID_XAN_DPCM, MKTAG('A', 'x', 'a', 'n')},
44 { 0, 0 },
45 };
46
47 const struct AVCodecTag *mp_wav_taglists[] = {codec_wav_tags, mp_wav_tags, 0};
48
49 static const AVCodecTag mp_wav_override_tags[] = {
50 { CODEC_ID_PCM_S8, MKTAG('t', 'w', 'o', 's')},
51 { CODEC_ID_PCM_U8, 1},
52 { CODEC_ID_PCM_S16BE, MKTAG('t', 'w', 'o', 's')},
53 { CODEC_ID_PCM_S16LE, 1},
54 { CODEC_ID_PCM_S24BE, MKTAG('i', 'n', '2', '4')},
55 { 0, 0 },
56 };
57
58 const struct AVCodecTag *mp_wav_override_taglists[] = {mp_wav_override_tags, 0};
59
60 static const AVCodecTag mp_bmp_tags[] = {
61 { CODEC_ID_AMV, MKTAG('A', 'M', 'V', 'V')},
62 { CODEC_ID_BETHSOFTVID, MKTAG('B', 'E', 'T', 'H')},
63 { CODEC_ID_C93, MKTAG('C', '9', '3', 'V')},
64 { CODEC_ID_DSICINVIDEO, MKTAG('D', 'C', 'I', 'V')},
65 { CODEC_ID_DXA, MKTAG('D', 'X', 'A', '1')},
66 { CODEC_ID_FLIC, MKTAG('F', 'L', 'I', 'C')},
67 { CODEC_ID_IDCIN, MKTAG('I', 'D', 'C', 'I')},
68 { CODEC_ID_INTERPLAY_VIDEO, MKTAG('I', 'N', 'P', 'V')},
69 { CODEC_ID_ROQ, MKTAG('R', 'o', 'Q', 'V')},
70 { CODEC_ID_THP, MKTAG('T', 'H', 'P', 'V')},
71 { CODEC_ID_TIERTEXSEQVIDEO, MKTAG('T', 'S', 'E', 'Q')},
72 { CODEC_ID_TXD, MKTAG('T', 'X', 'D', 'V')},
73 { CODEC_ID_VMDVIDEO, MKTAG('V', 'M', 'D', 'V')},
74 { CODEC_ID_WS_VQA, MKTAG('V', 'Q', 'A', 'V')},
75 { CODEC_ID_XAN_WC3, MKTAG('W', 'C', '3', 'V')},
76 { CODEC_ID_NUV, MKTAG('N', 'U', 'V', '1')},
77 { 0, 0 },
78 };
79
80 const struct AVCodecTag *mp_bmp_taglists[] = {codec_bmp_tags, mp_bmp_tags, 0};
81