diff als_data.h @ 10530:d428e57f14c6 libavcodec

Add long-term prediction to the ALS decoder.
author thilo.borgmann
date Sat, 14 Nov 2009 06:29:19 +0000
parents 9b56cd1e37b7
children
line wrap: on
line diff
--- a/als_data.h	Sat Nov 14 00:25:48 2009 +0000
+++ b/als_data.h	Sat Nov 14 06:29:19 2009 +0000
@@ -92,4 +92,14 @@
 };
 
 
+/** Gain values of p(0) for long-term prediction.
+ *  To be indexed by the Rice coded indices.
+ */
+static const uint8_t ltp_gain_values [4][4] = {
+    { 0,  8, 16,  24},
+    {32, 40, 48,  56},
+    {64, 70, 76,  82},
+    {88, 92, 96, 100}
+};
+
 #endif /* AVCODEC_ALS_DATA_H */