summaryrefslogtreecommitdiffstats
path: root/libavcodec/aactab.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-09-19 12:55:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-09-19 12:55:26 +0200
commit32ea39f56d90585c63eedfcb631e0a939fc1f95e (patch)
treefc23e9cf250c9b2b9b05f617d1513d5386b4de78 /libavcodec/aactab.c
parent257f11820bdf628648466ce07ee0bf67217b543e (diff)
parent1914e6f010b3320025c7b692aaea51d9b9a992a8 (diff)
downloadffmpeg-streaming-32ea39f56d90585c63eedfcb631e0a939fc1f95e.zip
ffmpeg-streaming-32ea39f56d90585c63eedfcb631e0a939fc1f95e.tar.gz
Merge commit '1914e6f010b3320025c7b692aaea51d9b9a992a8'
* commit '1914e6f010b3320025c7b692aaea51d9b9a992a8': aacdec: Add support for LD (Low Delay) AAC Conflicts: Changelog libavcodec/aacdec.c libavcodec/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/aactab.c')
-rw-r--r--libavcodec/aactab.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/libavcodec/aactab.c b/libavcodec/aactab.c
index 6cbb8c4..08c44e5 100644
--- a/libavcodec/aactab.c
+++ b/libavcodec/aactab.c
@@ -34,12 +34,17 @@
#include <stdint.h>
DECLARE_ALIGNED(32, float, ff_aac_kbd_long_1024)[1024];
+DECLARE_ALIGNED(32, float, ff_aac_kbd_long_512 )[512];
DECLARE_ALIGNED(32, float, ff_aac_kbd_short_128)[128];
const uint8_t ff_aac_num_swb_1024[] = {
41, 41, 47, 49, 49, 51, 47, 47, 43, 43, 43, 40, 40
};
+const uint8_t ff_aac_num_swb_512[] = {
+ 0, 0, 0, 36, 36, 37, 31, 31, 0, 0, 0, 0, 0
+};
+
const uint8_t ff_aac_num_swb_128[] = {
12, 12, 12, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15
};
@@ -1114,6 +1119,14 @@ static const uint16_t swb_offset_1024_48[] = {
928, 1024
};
+static const uint16_t swb_offset_512_48[] = {
+ 0, 4, 8, 12, 16, 20, 24, 28,
+ 32, 36, 40, 44, 48, 52, 56, 60,
+ 68, 76, 84, 92, 100, 112, 124, 136,
+ 148, 164, 184, 208, 236, 268, 300, 332,
+ 364, 396, 428, 460, 512
+};
+
static const uint16_t swb_offset_128_48[] = {
0, 4, 8, 12, 16, 20, 28, 36,
44, 56, 68, 80, 96, 112, 128
@@ -1129,6 +1142,14 @@ static const uint16_t swb_offset_1024_32[] = {
928, 960, 992, 1024
};
+static const uint16_t swb_offset_512_32[] = {
+ 0, 4, 8, 12, 16, 20, 24, 28,
+ 32, 36, 40, 44, 48, 52, 56, 64,
+ 72, 80, 88, 96, 108, 120, 132, 144,
+ 160, 176, 192, 212, 236, 260, 288, 320,
+ 352, 384, 416, 448, 480, 512
+};
+
static const uint16_t swb_offset_1024_24[] = {
0, 4, 8, 12, 16, 20, 24, 28,
32, 36, 40, 44, 52, 60, 68, 76,
@@ -1138,6 +1159,13 @@ static const uint16_t swb_offset_1024_24[] = {
600, 652, 704, 768, 832, 896, 960, 1024
};
+static const uint16_t swb_offset_512_24[] = {
+ 0, 4, 8, 12, 16, 20, 24, 28,
+ 32, 36, 40, 44, 52, 60, 68, 80,
+ 92, 104, 120, 140, 164, 192, 224, 256,
+ 288, 320, 352, 384, 416, 448, 480, 512,
+};
+
static const uint16_t swb_offset_128_24[] = {
0, 4, 8, 12, 16, 20, 24, 28,
36, 44, 52, 64, 76, 92, 108, 128
@@ -1179,6 +1207,14 @@ const uint16_t * const ff_swb_offset_1024[] = {
swb_offset_1024_8
};
+const uint16_t * const ff_swb_offset_512[] = {
+ NULL, NULL, NULL,
+ swb_offset_512_48, swb_offset_512_48, swb_offset_512_32,
+ swb_offset_512_24, swb_offset_512_24, NULL,
+ NULL, NULL, NULL,
+ NULL
+};
+
const uint16_t * const ff_swb_offset_128[] = {
/* The last entry on the following row is swb_offset_128_64 but is a
duplicate of swb_offset_128_96. */
OpenPOWER on IntegriCloud