FFmpeg
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
libavformat
caf.c
Go to the documentation of this file.
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
/**
23
* @file
24
* CAF common code
25
*/
26
27
#include "
avformat.h
"
28
#include "
internal.h
"
29
#include "
caf.h
"
30
31
/**
32
* Known codec tags for CAF
33
*/
34
const
AVCodecTag
ff_codec_caf_tags
[] = {
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'
) },
42
/* FIXME: use DV demuxer, as done in MOV */
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_ILBC
,
MKTAG
(
'i'
,
'l'
,
'b'
,
'c'
) },
48
{
AV_CODEC_ID_MACE3
,
MKTAG
(
'M'
,
'A'
,
'C'
,
'3'
) },
49
{
AV_CODEC_ID_MACE6
,
MKTAG
(
'M'
,
'A'
,
'C'
,
'6'
) },
50
{
AV_CODEC_ID_MP1
,
MKTAG
(
'.'
,
'm'
,
'p'
,
'1'
) },
51
{
AV_CODEC_ID_MP2
,
MKTAG
(
'.'
,
'm'
,
'p'
,
'2'
) },
52
{
AV_CODEC_ID_MP3
,
MKTAG
(
'.'
,
'm'
,
'p'
,
'3'
) },
53
{
AV_CODEC_ID_MP3
,
MKTAG
(
'm'
,
's'
, 0 ,
'U'
) },
54
{
AV_CODEC_ID_PCM_ALAW
,
MKTAG
(
'a'
,
'l'
,
'a'
,
'w'
) },
55
{
AV_CODEC_ID_PCM_MULAW
,
MKTAG
(
'u'
,
'l'
,
'a'
,
'w'
) },
56
{
AV_CODEC_ID_QCELP
,
MKTAG
(
'Q'
,
'c'
,
'l'
,
'p'
) },
57
{
AV_CODEC_ID_QDM2
,
MKTAG
(
'Q'
,
'D'
,
'M'
,
'2'
) },
58
{
AV_CODEC_ID_QDMC
,
MKTAG
(
'Q'
,
'D'
,
'M'
,
'C'
) },
59
/* currently unsupported codecs */
60
/*{ AC-3 over S/PDIF MKTAG('c','a','c','3') },*/
61
/*{ MPEG4CELP MKTAG('c','e','l','p') },*/
62
/*{ MPEG4HVXC MKTAG('h','v','x','c') },*/
63
/*{ MPEG4TwinVQ MKTAG('t','w','v','q') },*/
64
65
{
AV_CODEC_ID_PCM_S8
,
MKTAG
(
'l'
,
'p'
,
'c'
,
'm'
) },
66
{
AV_CODEC_ID_PCM_S16LE
,
MKTAG
(
'l'
,
'p'
,
'c'
,
'm'
) },
67
{
AV_CODEC_ID_PCM_S16BE
,
MKTAG
(
'l'
,
'p'
,
'c'
,
'm'
) },
68
{
AV_CODEC_ID_PCM_S24LE
,
MKTAG
(
'l'
,
'p'
,
'c'
,
'm'
) },
69
{
AV_CODEC_ID_PCM_S24BE
,
MKTAG
(
'l'
,
'p'
,
'c'
,
'm'
) },
70
{
AV_CODEC_ID_PCM_S32LE
,
MKTAG
(
'l'
,
'p'
,
'c'
,
'm'
) },
71
{
AV_CODEC_ID_PCM_S32BE
,
MKTAG
(
'l'
,
'p'
,
'c'
,
'm'
) },
72
{
AV_CODEC_ID_PCM_F32LE
,
MKTAG
(
'l'
,
'p'
,
'c'
,
'm'
) },
73
{
AV_CODEC_ID_PCM_F32BE
,
MKTAG
(
'l'
,
'p'
,
'c'
,
'm'
) },
74
{
AV_CODEC_ID_PCM_F64LE
,
MKTAG
(
'l'
,
'p'
,
'c'
,
'm'
) },
75
{
AV_CODEC_ID_PCM_F64BE
,
MKTAG
(
'l'
,
'p'
,
'c'
,
'm'
) },
76
{
AV_CODEC_ID_NONE
, 0 },
77
};
78
AV_CODEC_ID_AMR_NB
Definition:
avcodec.h:498
AV_CODEC_ID_PCM_S24BE
Definition:
avcodec.h:428
AV_CODEC_ID_NONE
Definition:
avcodec.h:190
AV_CODEC_ID_PCM_S8
Definition:
avcodec.h:419
caf.h
CAF common code.
AV_CODEC_ID_MP1
Definition:
avcodec.h:559
AV_CODEC_ID_ADPCM_IMA_WAV
Definition:
avcodec.h:452
AV_CODEC_ID_MACE6
Definition:
avcodec.h:524
AV_CODEC_ID_ALAC
Definition:
avcodec.h:530
AV_CODEC_ID_AAC
Definition:
avcodec.h:516
AVCodecTag
Definition:
internal.h:44
AV_CODEC_ID_ADPCM_IMA_QT
Definition:
avcodec.h:451
AV_CODEC_ID_QDM2
Definition:
avcodec.h:533
AV_CODEC_ID_PCM_ALAW
Definition:
avcodec.h:422
AV_CODEC_ID_MACE3
Definition:
avcodec.h:523
AV_CODEC_ID_MP3
preferred ID for decoding MPEG audio layer 1, 2 or 3
Definition:
avcodec.h:515
internal.h
AV_CODEC_ID_GSM_MS
Definition:
avcodec.h:544
AV_CODEC_ID_PCM_F64BE
Definition:
avcodec.h:437
AV_CODEC_ID_QDMC
Definition:
avcodec.h:567
AV_CODEC_ID_PCM_S16BE
Definition:
avcodec.h:416
AV_CODEC_ID_QCELP
Definition:
avcodec.h:538
AV_CODEC_ID_AC3
Definition:
avcodec.h:517
AV_CODEC_ID_PCM_MULAW
Definition:
avcodec.h:421
AV_CODEC_ID_PCM_F32BE
Definition:
avcodec.h:435
AV_CODEC_ID_PCM_S24LE
Definition:
avcodec.h:427
AV_CODEC_ID_MP2
Definition:
avcodec.h:514
AV_CODEC_ID_PCM_F64LE
Definition:
avcodec.h:438
AV_CODEC_ID_PCM_F32LE
Definition:
avcodec.h:436
avformat.h
Main libavformat public API header.
AV_CODEC_ID_PCM_S16LE
Definition:
avcodec.h:415
AV_CODEC_ID_GSM
as in Berlin toast format
Definition:
avcodec.h:532
AV_CODEC_ID_ADPCM_MS
Definition:
avcodec.h:457
AV_CODEC_ID_PCM_S32LE
Definition:
avcodec.h:423
ff_codec_caf_tags
const AVCodecTag ff_codec_caf_tags[]
Known codec tags for CAF.
Definition:
caf.c:34
AV_CODEC_ID_ILBC
Definition:
avcodec.h:576
MKTAG
#define MKTAG(a, b, c, d)
Definition:
common.h:342
AV_CODEC_ID_PCM_S32BE
Definition:
avcodec.h:424
Generated on Mon Jun 27 2016 02:34:44 for FFmpeg by
1.8.6