Mercurial > libavcodec.hg
annotate aacdectab.h @ 8545:a5402e89a80c libavcodec
Factorise enum of AC3 error types to be usable by AAC in the ADTS patch that
will follow
Patch by Alex Converse ( alex converse gmail com )
author | superdump |
---|---|
date | Wed, 07 Jan 2009 18:10:10 +0000 |
parents | dc1a7a6ec58d |
children | e9d9d946f213 |
rev | line source |
---|---|
7523
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
1 /* |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
2 * AAC decoder data |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
3 * Copyright (c) 2005-2006 Oded Shimon ( ods15 ods15 dyndns org ) |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
4 * Copyright (c) 2006-2007 Maxim Gavrilov ( maxim.gavrilov gmail com ) |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
5 * |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
6 * This file is part of FFmpeg. |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
7 * |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
8 * FFmpeg is free software; you can redistribute it and/or |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
9 * modify it under the terms of the GNU Lesser General Public |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
10 * License as published by the Free Software Foundation; either |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
11 * version 2.1 of the License, or (at your option) any later version. |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
12 * |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
13 * FFmpeg is distributed in the hope that it will be useful, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
16 * Lesser General Public License for more details. |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
17 * |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
18 * You should have received a copy of the GNU Lesser General Public |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
19 * License along with FFmpeg; if not, write to the Free Software |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
21 */ |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
22 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
23 /** |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
24 * @file aacdectab.h |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
25 * AAC decoder data |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
26 * @author Oded Shimon ( ods15 ods15 dyndns org ) |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
27 * @author Maxim Gavrilov ( maxim.gavrilov gmail com ) |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
28 */ |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
29 |
7760 | 30 #ifndef AVCODEC_AACDECTAB_H |
31 #define AVCODEC_AACDECTAB_H | |
7523
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
32 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
33 #include "aac.h" |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
34 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
35 #include <stdint.h> |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
36 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
37 /* @name swb_offsets |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
38 * Sample offset into the window indicating the beginning of a scalefactor |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
39 * window band |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
40 * |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
41 * scalefactor window band - term for scalefactor bands within a window, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
42 * given in Table 4.110 to Table 4.128. |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
43 * |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
44 * scalefactor band - a set of spectral coefficients which are scaled by one |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
45 * scalefactor. In case of EIGHT_SHORT_SEQUENCE and grouping a scalefactor band |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
46 * may contain several scalefactor window bands of corresponding frequency. For |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
47 * all other window_sequences scalefactor bands and scalefactor window bands are |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
48 * identical. |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
49 * @{ |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
50 */ |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
51 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
52 static const uint16_t swb_offset_1024_96[] = { |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
53 0, 4, 8, 12, 16, 20, 24, 28, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
54 32, 36, 40, 44, 48, 52, 56, 64, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
55 72, 80, 88, 96, 108, 120, 132, 144, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
56 156, 172, 188, 212, 240, 276, 320, 384, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
57 448, 512, 576, 640, 704, 768, 832, 896, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
58 960, 1024 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
59 }; |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
60 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
61 static const uint16_t swb_offset_128_96[] = { |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
62 0, 4, 8, 12, 16, 20, 24, 32, 40, 48, 64, 92, 128 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
63 }; |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
64 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
65 static const uint16_t swb_offset_1024_64[] = { |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
66 0, 4, 8, 12, 16, 20, 24, 28, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
67 32, 36, 40, 44, 48, 52, 56, 64, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
68 72, 80, 88, 100, 112, 124, 140, 156, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
69 172, 192, 216, 240, 268, 304, 344, 384, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
70 424, 464, 504, 544, 584, 624, 664, 704, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
71 744, 784, 824, 864, 904, 944, 984, 1024 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
72 }; |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
73 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
74 static const uint16_t swb_offset_1024_48[] = { |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
75 0, 4, 8, 12, 16, 20, 24, 28, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
76 32, 36, 40, 48, 56, 64, 72, 80, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
77 88, 96, 108, 120, 132, 144, 160, 176, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
78 196, 216, 240, 264, 292, 320, 352, 384, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
79 416, 448, 480, 512, 544, 576, 608, 640, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
80 672, 704, 736, 768, 800, 832, 864, 896, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
81 928, 1024 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
82 }; |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
83 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
84 static const uint16_t swb_offset_128_48[] = { |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
85 0, 4, 8, 12, 16, 20, 28, 36, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
86 44, 56, 68, 80, 96, 112, 128 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
87 }; |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
88 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
89 static const uint16_t swb_offset_1024_32[] = { |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
90 0, 4, 8, 12, 16, 20, 24, 28, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
91 32, 36, 40, 48, 56, 64, 72, 80, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
92 88, 96, 108, 120, 132, 144, 160, 176, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
93 196, 216, 240, 264, 292, 320, 352, 384, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
94 416, 448, 480, 512, 544, 576, 608, 640, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
95 672, 704, 736, 768, 800, 832, 864, 896, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
96 928, 960, 992, 1024 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
97 }; |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
98 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
99 static const uint16_t swb_offset_1024_24[] = { |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
100 0, 4, 8, 12, 16, 20, 24, 28, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
101 32, 36, 40, 44, 52, 60, 68, 76, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
102 84, 92, 100, 108, 116, 124, 136, 148, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
103 160, 172, 188, 204, 220, 240, 260, 284, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
104 308, 336, 364, 396, 432, 468, 508, 552, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
105 600, 652, 704, 768, 832, 896, 960, 1024 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
106 }; |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
107 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
108 static const uint16_t swb_offset_128_24[] = { |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
109 0, 4, 8, 12, 16, 20, 24, 28, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
110 36, 44, 52, 64, 76, 92, 108, 128 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
111 }; |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
112 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
113 static const uint16_t swb_offset_1024_16[] = { |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
114 0, 8, 16, 24, 32, 40, 48, 56, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
115 64, 72, 80, 88, 100, 112, 124, 136, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
116 148, 160, 172, 184, 196, 212, 228, 244, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
117 260, 280, 300, 320, 344, 368, 396, 424, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
118 456, 492, 532, 572, 616, 664, 716, 772, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
119 832, 896, 960, 1024 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
120 }; |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
121 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
122 static const uint16_t swb_offset_128_16[] = { |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
123 0, 4, 8, 12, 16, 20, 24, 28, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
124 32, 40, 48, 60, 72, 88, 108, 128 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
125 }; |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
126 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
127 static const uint16_t swb_offset_1024_8[] = { |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
128 0, 12, 24, 36, 48, 60, 72, 84, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
129 96, 108, 120, 132, 144, 156, 172, 188, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
130 204, 220, 236, 252, 268, 288, 308, 328, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
131 348, 372, 396, 420, 448, 476, 508, 544, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
132 580, 620, 664, 712, 764, 820, 880, 944, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
133 1024 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
134 }; |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
135 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
136 static const uint16_t swb_offset_128_8[] = { |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
137 0, 4, 8, 12, 16, 20, 24, 28, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
138 36, 44, 52, 60, 72, 88, 108, 128 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
139 }; |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
140 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
141 static const uint16_t *swb_offset_1024[] = { |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
142 swb_offset_1024_96, swb_offset_1024_96, swb_offset_1024_64, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
143 swb_offset_1024_48, swb_offset_1024_48, swb_offset_1024_32, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
144 swb_offset_1024_24, swb_offset_1024_24, swb_offset_1024_16, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
145 swb_offset_1024_16, swb_offset_1024_16, swb_offset_1024_8 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
146 }; |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
147 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
148 static const uint16_t *swb_offset_128[] = { |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
149 /* The last entry on the following row is swb_offset_128_64 but is a |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
150 duplicate of swb_offset_128_96. */ |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
151 swb_offset_128_96, swb_offset_128_96, swb_offset_128_96, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
152 swb_offset_128_48, swb_offset_128_48, swb_offset_128_48, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
153 swb_offset_128_24, swb_offset_128_24, swb_offset_128_16, |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
154 swb_offset_128_16, swb_offset_128_16, swb_offset_128_8 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
155 }; |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
156 |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
157 // @} |
a3f7ffdb676d
Sync already committed code with that in SoC and commit more OKed hunks of code
superdump
parents:
diff
changeset
|
158 |
7608 | 159 /* @name tns_max_bands |
160 * The maximum number of scalefactor bands on which TNS can operate for the long | |
161 * and short transforms respectively. The index to these tables is related to | |
162 * the sample rate of the audio. | |
163 * @{ | |
164 */ | |
165 static const uint8_t tns_max_bands_1024[] = { | |
166 31, 31, 34, 40, 42, 51, 46, 46, 42, 42, 42, 39 | |
167 }; | |
168 | |
169 static const uint8_t tns_max_bands_128[] = { | |
170 9, 9, 10, 14, 14, 14, 14, 14, 14, 14, 14, 14 | |
171 }; | |
172 // @} | |
173 | |
7609 | 174 /* @name tns_tmp2_map |
175 * Tables of the tmp2[] arrays of LPC coefficients used for TNS. | |
176 * The suffix _M_N[] indicate the values of coef_compress and coef_res | |
177 * respectively. | |
178 * @{ | |
179 */ | |
180 static const float tns_tmp2_map_1_3[4] = { | |
7790
209a9ad96a6c
Multiply table by -1. This avoid doing this calculation (that was introduced
vitor
parents:
7760
diff
changeset
|
181 0.00000000, -0.43388373, 0.64278758, 0.34202015, |
7609 | 182 }; |
183 | |
184 static const float tns_tmp2_map_0_3[8] = { | |
7790
209a9ad96a6c
Multiply table by -1. This avoid doing this calculation (that was introduced
vitor
parents:
7760
diff
changeset
|
185 0.00000000, -0.43388373, -0.78183150, -0.97492790, |
209a9ad96a6c
Multiply table by -1. This avoid doing this calculation (that was introduced
vitor
parents:
7760
diff
changeset
|
186 0.98480773, 0.86602539, 0.64278758, 0.34202015, |
7609 | 187 }; |
188 | |
189 static const float tns_tmp2_map_1_4[8] = { | |
7790
209a9ad96a6c
Multiply table by -1. This avoid doing this calculation (that was introduced
vitor
parents:
7760
diff
changeset
|
190 0.00000000, -0.20791170, -0.40673664, -0.58778524, |
209a9ad96a6c
Multiply table by -1. This avoid doing this calculation (that was introduced
vitor
parents:
7760
diff
changeset
|
191 0.67369562, 0.52643216, 0.36124167, 0.18374951, |
7609 | 192 }; |
193 | |
194 static const float tns_tmp2_map_0_4[16] = { | |
7790
209a9ad96a6c
Multiply table by -1. This avoid doing this calculation (that was introduced
vitor
parents:
7760
diff
changeset
|
195 0.00000000, -0.20791170, -0.40673664, -0.58778524, |
209a9ad96a6c
Multiply table by -1. This avoid doing this calculation (that was introduced
vitor
parents:
7760
diff
changeset
|
196 -0.74314481, -0.86602539, -0.95105654, -0.99452192, |
209a9ad96a6c
Multiply table by -1. This avoid doing this calculation (that was introduced
vitor
parents:
7760
diff
changeset
|
197 0.99573416, 0.96182561, 0.89516330, 0.79801720, |
209a9ad96a6c
Multiply table by -1. This avoid doing this calculation (that was introduced
vitor
parents:
7760
diff
changeset
|
198 0.67369562, 0.52643216, 0.36124167, 0.18374951, |
7609 | 199 }; |
200 | |
7978 | 201 static const float * const tns_tmp2_map[4] = { |
7609 | 202 tns_tmp2_map_0_3, |
203 tns_tmp2_map_0_4, | |
204 tns_tmp2_map_1_3, | |
205 tns_tmp2_map_1_4 | |
206 }; | |
207 // @} | |
208 | |
7760 | 209 #endif /* AVCODEC_AACDECTAB_H */ |