Debian Codegraph @

include/support/faaccfg.h

raw symbols SCIP
1 /*
2 * FAAC - Freeware Advanced Audio Coder
3 * Copyright (C) 2001 Menno Bakker
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * $Id: faaccfg.h,v 1.3 2004/07/04 12:12:05 corrados Exp $
20 */
21
22 #ifndef _FAACCFG_H_
23 #define _FAACCFG_H_
24
25 #define FAAC_CFG_VERSION 105
26
27 /* MPEG ID's */
28 #define MPEG2 1
29 #define MPEG4 0
30
31 /* AAC object types */
32 #define MAIN 1
33 #define LOW 2
34 #define SSR 3
35 #define LTP 4
36
37 /* Input Formats */
38 #define FAAC_INPUT_NULL 0
39 #define FAAC_INPUT_16BIT 1
40 #define FAAC_INPUT_24BIT 2
41 #define FAAC_INPUT_32BIT 3
42 #define FAAC_INPUT_FLOAT 4
43
44 #define SHORTCTL_NORMAL 0
45 #define SHORTCTL_NOSHORT 1
46 #define SHORTCTL_NOLONG 2
47
48 enum stream_format
49 {
50 RAW_STREAM = 0,
51 ADTS_STREAM = 1,
52 };
53
54 enum {JOINT_NONE = 0, JOINT_MS, JOINT_IS};
55
56 #pragma pack(push, 1)
57 typedef struct faacEncConfiguration
58 {
59 /* config version */
60 int version;
61
62 /* library version */
63 char *name;
64
65 /* copyright string */
66 char *copyright;
67
68 /* MPEG version, 2 or 4 */
69 unsigned int mpegVersion;
70
71 /* AAC object type */
72 unsigned int aacObjectType;
73
74 union {
75 /* Joint coding mode */
76 unsigned int jointmode;
77 /* compatibility alias */
78 unsigned int allowMidside;
79 };
80
81 /* Use one of the channels as LFE channel */
82 unsigned int useLfe;
83
84 /* Use Temporal Noise Shaping */
85 unsigned int useTns;
86
87 /* bitrate / channel of AAC file */
88 unsigned long bitRate;
89
90 /* AAC file frequency bandwidth */
91 unsigned int bandWidth;
92
93 /* Quantizer quality */
94 unsigned long quantqual;
95
96 /* Bitstream output format (0 = Raw; 1 = ADTS) */
97 unsigned int outputFormat;
98
99 /* psychoacoustic model list */
100 psymodellist_t *psymodellist;
101
102 /* selected index in psymodellist */
103 unsigned int psymodelidx;
104
105 /*
106 PCM Sample Input Format
107 0 FAAC_INPUT_NULL invalid, signifies a misconfigured config
108 1 FAAC_INPUT_16BIT native endian 16bit
109 2 FAAC_INPUT_24BIT native endian 24bit in 24 bits (not implemented)
110 3 FAAC_INPUT_32BIT native endian 24bit in 32 bits (DEFAULT)
111 4 FAAC_INPUT_FLOAT 32bit floating point
112 */
113 unsigned int inputFormat;
114
115 /* block type enforcing (SHORTCTL_NORMAL/SHORTCTL_NOSHORT/SHORTCTL_NOLONG) */
116 int shortctl;
117
118 /*
119 Channel Remapping
120
121 Default 0, 1, 2, 3 ... 63 (64 is MAX_CHANNELS in coder.h)
122
123 WAVE 4.0 2, 0, 1, 3
124 WAVE 5.0 2, 0, 1, 3, 4
125 WAVE 5.1 2, 0, 1, 4, 5, 3
126 AIFF 5.1 2, 0, 3, 1, 4, 5
127 */
128 int channel_map[64];
129 int pnslevel;
130 } faacEncConfiguration, *faacEncConfigurationPtr;
131
132 #pragma pack(pop)
133
134 #endif /* _FAACCFG_H_ */