comparison aactab.c @ 7539:4fca7939ad48 libavcodec

More OKed hunks of the AAC decoder from SoC
author superdump
date Mon, 11 Aug 2008 11:16:06 +0000
parents a3f7ffdb676d
children c49ab52db74c
comparison
equal deleted inserted replaced
7538:06c291f42d5f 7539:4fca7939ad48
29 29
30 #include "libavutil/mem.h" 30 #include "libavutil/mem.h"
31 #include "aac.h" 31 #include "aac.h"
32 32
33 #include <stdint.h> 33 #include <stdint.h>
34
35 const uint8_t ff_aac_num_swb_1024[] = {
36 41, 41, 47, 49, 49, 51, 47, 47, 43, 43, 43, 40
37 };
38
39 const uint8_t ff_aac_num_swb_128[] = {
40 12, 12, 12, 14, 14, 14, 15, 15, 15, 15, 15, 15
41 };
34 42
35 const uint32_t ff_aac_scalefactor_code[121] = { 43 const uint32_t ff_aac_scalefactor_code[121] = {
36 0x3ffe8, 0x3ffe6, 0x3ffe7, 0x3ffe5, 0x7fff5, 0x7fff1, 0x7ffed, 0x7fff6, 44 0x3ffe8, 0x3ffe6, 0x3ffe7, 0x3ffe5, 0x7fff5, 0x7fff1, 0x7ffed, 0x7fff6,
37 0x7ffee, 0x7ffef, 0x7fff0, 0x7fffc, 0x7fffd, 0x7ffff, 0x7fffe, 0x7fff7, 45 0x7ffee, 0x7ffef, 0x7fff0, 0x7fffc, 0x7fffd, 0x7ffff, 0x7fffe, 0x7fff7,
38 0x7fff8, 0x7fffb, 0x7fff9, 0x3ffe4, 0x7fffa, 0x3ffe3, 0x1ffef, 0x1fff0, 46 0x7fff8, 0x7fffb, 0x7fff9, 0x3ffe4, 0x7fffa, 0x3ffe3, 0x1ffef, 0x1fff0,
794 3979.0888296, 3989.6820750, 4000.2823568, 4010.8896656, 802 3979.0888296, 3989.6820750, 4000.2823568, 4010.8896656,
795 4021.5039921, 4032.1253271, 4042.7536614, 4053.3889857, 803 4021.5039921, 4032.1253271, 4042.7536614, 4053.3889857,
796 4064.0312908, 4074.6805676, 4085.3368071, 4096.0000000, 804 4064.0312908, 4074.6805676, 4085.3368071, 4096.0000000,
797 }; 805 };
798 806
807 /**
808 * Table of pow(2, (i - 200)/4.) used for different purposes depending on the
809 * range of indices to the table:
810 * [ 0, 255] scale factor decoding when using C dsp.float_to_int16
811 * [60, 315] scale factor decoding when using SIMD dsp.float_to_int16
812 * [45, 300] intensity stereo position decoding mapped in reverse order i.e. 0->300, 1->299, ..., 254->46, 255->45
813 */
799 const float ff_aac_pow2sf_tab[316] = { 814 const float ff_aac_pow2sf_tab[316] = {
800 8.88178420e-16, 1.05622810e-15, 1.25607397e-15, 1.49373210e-15, 815 8.88178420e-16, 1.05622810e-15, 1.25607397e-15, 1.49373210e-15,
801 1.77635684e-15, 2.11245619e-15, 2.51214793e-15, 2.98746420e-15, 816 1.77635684e-15, 2.11245619e-15, 2.51214793e-15, 2.98746420e-15,
802 3.55271368e-15, 4.22491238e-15, 5.02429587e-15, 5.97492839e-15, 817 3.55271368e-15, 4.22491238e-15, 5.02429587e-15, 5.97492839e-15,
803 7.10542736e-15, 8.44982477e-15, 1.00485917e-14, 1.19498568e-14, 818 7.10542736e-15, 8.44982477e-15, 1.00485917e-14, 1.19498568e-14,