Skip to content
Newer
Older
100644 66 lines (61 sloc) 2.65 KB
5f14b56 @rouseabout Core Audio Format demuxer
rouseabout authored Sep 16, 2009
1 /*
2 * CAF common code
3 * Copyright (c) 2007 Justin Ruggles
4 *
5 * This file is part of FFmpeg.
6 *
7 * FFmpeg is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * FFmpeg is distributed in the hope that it will be useful,
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
18 * License along with FFmpeg; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22 /**
ba87f08 @DonDiego Remove explicit filename from Doxygen @file commands.
DonDiego authored Apr 20, 2010
23 * @file
5f14b56 @rouseabout Core Audio Format demuxer
rouseabout authored Sep 16, 2009
24 * CAF common code
25 */
26
27 #include "avformat.h"
80b39e1 Move AVCodecTag from riff.h into internal.h.
Francesco Lavra authored May 22, 2010
28 #include "internal.h"
5f14b56 @rouseabout Core Audio Format demuxer
rouseabout authored Sep 16, 2009
29 #include "caf.h"
30
31 /**
32 * Known codec tags for CAF
33 */
34 const AVCodecTag ff_codec_caf_tags[] = {
7a72695 @michaelni Merge commit '36ef5369ee9b336febc2c270f8718cec4476cb85'
michaelni authored Aug 7, 2012
35 { AV_CODEC_ID_AAC, MKTAG('a','a','c',' ') },
36 { AV_CODEC_ID_AC3, MKTAG('a','c','-','3') },
37 { AV_CODEC_ID_ADPCM_IMA_QT, MKTAG('i','m','a','4') },
38 { AV_CODEC_ID_ADPCM_IMA_WAV, MKTAG('m','s', 0, 17 ) },
39 { AV_CODEC_ID_ADPCM_MS, MKTAG('m','s', 0, 2 ) },
40 { AV_CODEC_ID_ALAC, MKTAG('a','l','a','c') },
41 { AV_CODEC_ID_AMR_NB, MKTAG('s','a','m','r') },
222b333 @cehoyos Cosmetics: Restore alphabetical order.
cehoyos authored Aug 1, 2011
42 /* FIXME: use DV demuxer, as done in MOV */
7a72695 @michaelni Merge commit '36ef5369ee9b336febc2c270f8718cec4476cb85'
michaelni authored Aug 7, 2012
43 /*{ AV_CODEC_ID_DVAUDIO, MKTAG('v','d','v','a') },*/
44 /*{ AV_CODEC_ID_DVAUDIO, MKTAG('d','v','c','a') },*/
45 { AV_CODEC_ID_GSM, MKTAG('a','g','s','m') },
46 { AV_CODEC_ID_GSM_MS, MKTAG('m','s', 0, '1') },
47 { AV_CODEC_ID_MACE3, MKTAG('M','A','C','3') },
48 { AV_CODEC_ID_MACE6, MKTAG('M','A','C','6') },
49 { AV_CODEC_ID_MP1, MKTAG('.','m','p','1') },
50 { AV_CODEC_ID_MP2, MKTAG('.','m','p','2') },
51 { AV_CODEC_ID_MP3, MKTAG('.','m','p','3') },
52 { AV_CODEC_ID_MP3, MKTAG('m','s', 0 ,'U') },
53 { AV_CODEC_ID_PCM_ALAW, MKTAG('a','l','a','w') },
54 { AV_CODEC_ID_PCM_MULAW, MKTAG('u','l','a','w') },
55 { AV_CODEC_ID_QCELP, MKTAG('Q','c','l','p') },
56 { AV_CODEC_ID_QDM2, MKTAG('Q','D','M','2') },
57 { AV_CODEC_ID_QDM2, MKTAG('Q','D','M','C') },
5f14b56 @rouseabout Core Audio Format demuxer
rouseabout authored Sep 16, 2009
58 /* currently unsupported codecs */
88084ee @cehoyos Use little endian for caf codec tags.
cehoyos authored Jul 24, 2011
59 /*{ AC-3 over S/PDIF MKTAG('c','a','c','3') },*/
60 /*{ MPEG4CELP MKTAG('c','e','l','p') },*/
61 /*{ MPEG4HVXC MKTAG('h','v','x','c') },*/
62 /*{ MPEG4TwinVQ MKTAG('t','w','v','q') },*/
36ef536 @elenril Replace all CODEC_ID_* with AV_CODEC_ID_*
elenril authored Aug 5, 2012
63 { AV_CODEC_ID_NONE, 0 },
5f14b56 @rouseabout Core Audio Format demuxer
rouseabout authored Sep 16, 2009
64 };
8bb5d1c @cehoyos Support channel layout when demuxing caf files.
cehoyos authored Apr 23, 2011
65
Something went wrong with that request. Please try again.