aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/als_data.h
diff options
context:
space:
mode:
authorThilo Borgmann <thilo.borgmann@googlemail.com>2009-11-14 06:29:19 +0000
committerThilo Borgmann <thilo.borgmann@googlemail.com>2009-11-14 06:29:19 +0000
commit93d38cf6b056b3cfd16fb86e65d6db2deeb34fb7 (patch)
tree772ab51e260850e986ac8b4f21f93473c75015eb /libavcodec/als_data.h
parent7934cbb3be7a03b1ae7a8a30613a7a75b1e28645 (diff)
downloadffmpeg-93d38cf6b056b3cfd16fb86e65d6db2deeb34fb7.tar.gz
Add long-term prediction to the ALS decoder.
Originally committed as revision 20534 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/als_data.h')
-rw-r--r--libavcodec/als_data.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/als_data.h b/libavcodec/als_data.h
index 8c052cde53..bcde466064 100644
--- a/libavcodec/als_data.h
+++ b/libavcodec/als_data.h
@@ -92,4 +92,14 @@ static const int16_t parcor_scaled_values[] = {
};
+/** 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 */