summaryrefslogtreecommitdiff
path: root/lib/rbcodec/codecs/libopus/celt/static_modes_fixed.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbcodec/codecs/libopus/celt/static_modes_fixed.h')
-rw-r--r--lib/rbcodec/codecs/libopus/celt/static_modes_fixed.h65
1 files changed, 45 insertions, 20 deletions
diff --git a/lib/rbcodec/codecs/libopus/celt/static_modes_fixed.h b/lib/rbcodec/codecs/libopus/celt/static_modes_fixed.h
index 1f13497c69..8717d626cb 100644
--- a/lib/rbcodec/codecs/libopus/celt/static_modes_fixed.h
+++ b/lib/rbcodec/codecs/libopus/celt/static_modes_fixed.h
@@ -4,9 +4,14 @@
4#include "modes.h" 4#include "modes.h"
5#include "rate.h" 5#include "rate.h"
6 6
7#ifdef HAVE_ARM_NE10
8#define OVERRIDE_FFT 1
9#include "static_modes_fixed_arm_ne10.h"
10#endif
11
7#ifndef DEF_WINDOW120 12#ifndef DEF_WINDOW120
8#define DEF_WINDOW120 13#define DEF_WINDOW120
9static const opus_val16 window120[120] ICONST_ATTR = { 14static const opus_val16 window120[120] = {
102, 20, 55, 108, 178, 152, 20, 55, 108, 178,
11266, 372, 494, 635, 792, 16266, 372, 494, 635, 792,
12966, 1157, 1365, 1590, 1831, 17966, 1157, 1365, 1590, 1831,
@@ -36,13 +41,13 @@ static const opus_val16 window120[120] ICONST_ATTR = {
36 41
37#ifndef DEF_LOGN400 42#ifndef DEF_LOGN400
38#define DEF_LOGN400 43#define DEF_LOGN400
39static const opus_int16 logN400[21] ICONST_ATTR = { 44static const opus_int16 logN400[21] = {
400, 0, 0, 0, 0, 0, 0, 0, 8, 8, 8, 8, 16, 16, 16, 21, 21, 24, 29, 34, 36, }; 450, 0, 0, 0, 0, 0, 0, 0, 8, 8, 8, 8, 16, 16, 16, 21, 21, 24, 29, 34, 36, };
41#endif 46#endif
42 47
43#ifndef DEF_PULSE_CACHE50 48#ifndef DEF_PULSE_CACHE50
44#define DEF_PULSE_CACHE50 49#define DEF_PULSE_CACHE50
45static const opus_int16 cache_index50[105] ICONST_ATTR = { 50static const opus_int16 cache_index50[105] = {
46-1, -1, -1, -1, -1, -1, -1, -1, 0, 0, 0, 0, 41, 41, 41, 51-1, -1, -1, -1, -1, -1, -1, -1, 0, 0, 0, 0, 41, 41, 41,
4782, 82, 123, 164, 200, 222, 0, 0, 0, 0, 0, 0, 0, 0, 41, 5282, 82, 123, 164, 200, 222, 0, 0, 0, 0, 0, 0, 0, 0, 41,
4841, 41, 41, 123, 123, 123, 164, 164, 240, 266, 283, 295, 41, 41, 41, 5341, 41, 41, 123, 123, 123, 164, 164, 240, 266, 283, 295, 41, 41, 41,
@@ -51,7 +56,7 @@ static const opus_int16 cache_index50[105] ICONST_ATTR = {
51305, 305, 305, 318, 318, 343, 351, 358, 364, 240, 240, 240, 240, 240, 240, 56305, 305, 305, 318, 318, 343, 351, 358, 364, 240, 240, 240, 240, 240, 240,
52240, 240, 305, 305, 305, 305, 343, 343, 343, 351, 351, 370, 376, 382, 387, 57240, 240, 305, 305, 305, 305, 343, 343, 343, 351, 351, 370, 376, 382, 387,
53}; 58};
54static const unsigned char cache_bits50[392] ICONST_ATTR = { 59static const unsigned char cache_bits50[392] = {
5540, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 6040, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
567, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 617, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
577, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 40, 15, 23, 28, 627, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 40, 15, 23, 28,
@@ -79,7 +84,7 @@ static const unsigned char cache_bits50[392] ICONST_ATTR = {
79106, 151, 192, 231, 5, 59, 111, 158, 202, 243, 5, 55, 103, 147, 187, 84106, 151, 192, 231, 5, 59, 111, 158, 202, 243, 5, 55, 103, 147, 187,
80224, 5, 60, 113, 161, 206, 248, 4, 65, 122, 175, 224, 4, 67, 127, 85224, 5, 60, 113, 161, 206, 248, 4, 65, 122, 175, 224, 4, 67, 127,
81182, 234, }; 86182, 234, };
82static const unsigned char cache_caps50[168] ICONST_ATTR = { 87static const unsigned char cache_caps50[168] = {
83224, 224, 224, 224, 224, 224, 224, 224, 160, 160, 160, 160, 185, 185, 185, 88224, 224, 224, 224, 224, 224, 224, 224, 160, 160, 160, 160, 185, 185, 185,
84178, 178, 168, 134, 61, 37, 224, 224, 224, 224, 224, 224, 224, 224, 240, 89178, 178, 168, 134, 61, 37, 224, 224, 224, 224, 224, 224, 224, 224, 240,
85240, 240, 240, 207, 207, 207, 198, 198, 183, 144, 66, 40, 160, 160, 160, 90240, 240, 240, 207, 207, 207, 198, 198, 183, 144, 66, 40, 160, 160, 160,
@@ -96,7 +101,7 @@ static const unsigned char cache_caps50[168] ICONST_ATTR = {
96 101
97#ifndef FFT_TWIDDLES48000_960 102#ifndef FFT_TWIDDLES48000_960
98#define FFT_TWIDDLES48000_960 103#define FFT_TWIDDLES48000_960
99static const kiss_twiddle_cpx fft_twiddles48000_960[480] ICONST_ATTR = { 104static const kiss_twiddle_cpx fft_twiddles48000_960[480] = {
100{32767, 0}, {32766, -429}, 105{32767, 0}, {32766, -429},
101{32757, -858}, {32743, -1287}, 106{32757, -858}, {32743, -1287},
102{32724, -1715}, {32698, -2143}, 107{32724, -1715}, {32698, -2143},
@@ -424,53 +429,73 @@ static const opus_int16 fft_bitrev60[60] = {
424 429
425#ifndef FFT_STATE48000_960_0 430#ifndef FFT_STATE48000_960_0
426#define FFT_STATE48000_960_0 431#define FFT_STATE48000_960_0
427static const kiss_fft_state fft_state48000_960_0 ICONST_ATTR = { 432static const kiss_fft_state fft_state48000_960_0 = {
428480, /* nfft */ 433480, /* nfft */
42917476, /* scale */ 43417476, /* scale */
4308, /* scale_shift */ 4358, /* scale_shift */
431-1, /* shift */ 436-1, /* shift */
432{5, 96, 3, 32, 4, 8, 2, 4, 4, 1, 0, 0, 0, 0, 0, 0, }, /* factors */ 437{5, 96, 3, 32, 4, 8, 2, 4, 4, 1, 0, 0, 0, 0, 0, 0, }, /* factors */
433fft_bitrev480, /* bitrev */ 438fft_bitrev480, /* bitrev */
434fft_twiddles48000_960, /* bitrev */ 439fft_twiddles48000_960, /* bitrev */
440#ifdef OVERRIDE_FFT
441(arch_fft_state *)&cfg_arch_480,
442#else
443NULL,
444#endif
435}; 445};
436#endif 446#endif
437 447
438#ifndef FFT_STATE48000_960_1 448#ifndef FFT_STATE48000_960_1
439#define FFT_STATE48000_960_1 449#define FFT_STATE48000_960_1
440static const kiss_fft_state fft_state48000_960_1 ICONST_ATTR = { 450static const kiss_fft_state fft_state48000_960_1 = {
441240, /* nfft */ 451240, /* nfft */
44217476, /* scale */ 45217476, /* scale */
4437, /* scale_shift */ 4537, /* scale_shift */
4441, /* shift */ 4541, /* shift */
445{5, 48, 3, 16, 4, 4, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, }, /* factors */ 455{5, 48, 3, 16, 4, 4, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, }, /* factors */
446fft_bitrev240, /* bitrev */ 456fft_bitrev240, /* bitrev */
447fft_twiddles48000_960, /* bitrev */ 457fft_twiddles48000_960, /* bitrev */
458#ifdef OVERRIDE_FFT
459(arch_fft_state *)&cfg_arch_240,
460#else
461NULL,
462#endif
448}; 463};
449#endif 464#endif
450 465
451#ifndef FFT_STATE48000_960_2 466#ifndef FFT_STATE48000_960_2
452#define FFT_STATE48000_960_2 467#define FFT_STATE48000_960_2
453static const kiss_fft_state fft_state48000_960_2 ICONST_ATTR = { 468static const kiss_fft_state fft_state48000_960_2 = {
454120, /* nfft */ 469120, /* nfft */
45517476, /* scale */ 47017476, /* scale */
4566, /* scale_shift */ 4716, /* scale_shift */
4572, /* shift */ 4722, /* shift */
458{5, 24, 3, 8, 2, 4, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, }, /* factors */ 473{5, 24, 3, 8, 2, 4, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, }, /* factors */
459fft_bitrev120, /* bitrev */ 474fft_bitrev120, /* bitrev */
460fft_twiddles48000_960, /* bitrev */ 475fft_twiddles48000_960, /* bitrev */
476#ifdef OVERRIDE_FFT
477(arch_fft_state *)&cfg_arch_120,
478#else
479NULL,
480#endif
461}; 481};
462#endif 482#endif
463 483
464#ifndef FFT_STATE48000_960_3 484#ifndef FFT_STATE48000_960_3
465#define FFT_STATE48000_960_3 485#define FFT_STATE48000_960_3
466static const kiss_fft_state fft_state48000_960_3 ICONST_ATTR = { 486static const kiss_fft_state fft_state48000_960_3 = {
46760, /* nfft */ 48760, /* nfft */
46817476, /* scale */ 48817476, /* scale */
4695, /* scale_shift */ 4895, /* scale_shift */
4703, /* shift */ 4903, /* shift */
471{5, 12, 3, 4, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, /* factors */ 491{5, 12, 3, 4, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, /* factors */
472fft_bitrev60, /* bitrev */ 492fft_bitrev60, /* bitrev */
473fft_twiddles48000_960, /* bitrev */ 493fft_twiddles48000_960, /* bitrev */
494#ifdef OVERRIDE_FFT
495(arch_fft_state *)&cfg_arch_60,
496#else
497NULL,
498#endif
474}; 499};
475#endif 500#endif
476 501
@@ -478,7 +503,7 @@ fft_twiddles48000_960, /* bitrev */
478 503
479#ifndef MDCT_TWIDDLES960 504#ifndef MDCT_TWIDDLES960
480#define MDCT_TWIDDLES960 505#define MDCT_TWIDDLES960
481static const opus_val16 mdct_twiddles960[1800] ICONST_ATTR = { 506static const opus_val16 mdct_twiddles960[1800] = {
48232767, 32767, 32767, 32766, 32765, 50732767, 32767, 32767, 32766, 32765,
48332763, 32761, 32759, 32756, 32753, 50832763, 32761, 32759, 32756, 32753,
48432750, 32746, 32742, 32738, 32733, 50932750, 32746, 32742, 32738, 32733,
@@ -842,7 +867,7 @@ static const opus_val16 mdct_twiddles960[1800] ICONST_ATTR = {
842}; 867};
843#endif 868#endif
844 869
845static const CELTMode mode48000_960_120 ICONST_ATTR = { 870static const CELTMode mode48000_960_120 = {
84648000, /* Fs */ 87148000, /* Fs */
847120, /* overlap */ 872120, /* overlap */
84821, /* nbEBands */ 87321, /* nbEBands */