summaryrefslogtreecommitdiff
path: root/libavcodec/aacenctab.h
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2015-09-01 06:30:08 +0100
committerRostislav Pehlivanov <atomnuker@gmail.com>2015-09-01 06:30:08 +0100
commit139c2f93fd67230bfabd4820b35b89f5a75d0a98 (patch)
tree9b951263f6fc923216dbd7416bb7672cc04c57e4 /libavcodec/aacenctab.h
parent5ed5ca706fcef919960d2342f5a97f1b38153c6b (diff)
aacenctab: add tns_min_sfb[] to the encoder tables header
Needed for following commits. Contains the starting sfb for every samplerate and window type. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/aacenctab.h')
-rw-r--r--libavcodec/aacenctab.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libavcodec/aacenctab.h b/libavcodec/aacenctab.h
index 7e14a195d2..9e7595a755 100644
--- a/libavcodec/aacenctab.h
+++ b/libavcodec/aacenctab.h
@@ -85,6 +85,19 @@ static const uint8_t run_value_bits_short[16] = {
3, 3, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 9
};
+/* TNS starting SFBs for long and short windows */
+static const uint8_t tns_min_sfb_short[16] = {
+ 2, 2, 2, 3, 3, 4, 6, 6, 8, 10, 10, 12, 12, 12, 12, 12
+};
+
+static const uint8_t tns_min_sfb_long[16] = {
+ 12, 13, 15, 16, 17, 20, 25, 26, 24, 28, 30, 31, 31, 31, 31, 31
+};
+
+static const uint8_t * const tns_min_sfb[2] = {
+ tns_min_sfb_long, tns_min_sfb_short
+};
+
static const uint8_t * const run_value_bits[2] = {
run_value_bits_long, run_value_bits_short
};