summaryrefslogtreecommitdiff
path: root/libavcodec/aacdectab.h
diff options
context:
space:
mode:
authorRobert Swain <robert.swain@gmail.com>2008-08-18 21:36:58 +0000
committerRobert Swain <robert.swain@gmail.com>2008-08-18 21:36:58 +0000
commit1dece0d2cda1898dc33b4f4a18766840b76831af (patch)
tree6d5fcaf177f0fa7b26e2bc70d2ec02ebe00b3460 /libavcodec/aacdectab.h
parentc7f4d983a4d9d73a50b104cc9eb51acc534cef20 (diff)
More OKed AAC decoder code hunks
Originally committed as revision 14829 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aacdectab.h')
-rw-r--r--libavcodec/aacdectab.h35
1 files changed, 35 insertions, 0 deletions
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 */