From 1dece0d2cda1898dc33b4f4a18766840b76831af Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Mon, 18 Aug 2008 21:36:58 +0000 Subject: More OKed AAC decoder code hunks Originally committed as revision 14829 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/aacdectab.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'libavcodec/aacdectab.h') diff --git a/libavcodec/aacdectab.h b/libavcodec/aacdectab.h index c10eb71bd0..3c27c384a8 100644 --- a/libavcodec/aacdectab.h +++ b/libavcodec/aacdectab.h @@ -171,4 +171,39 @@ static const uint8_t tns_max_bands_128[] = { }; // @} +/* @name tns_tmp2_map + * Tables of the tmp2[] arrays of LPC coefficients used for TNS. + * The suffix _M_N[] indicate the values of coef_compress and coef_res + * respectively. + * @{ + */ +static const float tns_tmp2_map_1_3[4] = { + 0.00000000, 0.43388373, -0.64278758, -0.34202015, +}; + +static const float tns_tmp2_map_0_3[8] = { + 0.00000000, 0.43388373, 0.78183150, 0.97492790, + -0.98480773, -0.86602539, -0.64278758, -0.34202015, +}; + +static const float tns_tmp2_map_1_4[8] = { + 0.00000000, 0.20791170, 0.40673664, 0.58778524, + -0.67369562, -0.52643216, -0.36124167, -0.18374951, +}; + +static const float tns_tmp2_map_0_4[16] = { + 0.00000000, 0.20791170, 0.40673664, 0.58778524, + 0.74314481, 0.86602539, 0.95105654, 0.99452192, + -0.99573416, -0.96182561, -0.89516330, -0.79801720, + -0.67369562, -0.52643216, -0.36124167, -0.18374951, +}; + +static const float *tns_tmp2_map[4] = { + tns_tmp2_map_0_3, + tns_tmp2_map_0_4, + tns_tmp2_map_1_3, + tns_tmp2_map_1_4 +}; +// @} + #endif /* FFMPEG_AACDECTAB_H */ -- cgit v1.2.3