summaryrefslogtreecommitdiff
path: root/libavcodec/opustab.c
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2017-02-11 00:25:07 +0000
committerRostislav Pehlivanov <atomnuker@gmail.com>2017-02-14 06:15:36 +0000
commit07b78340dd1e6a8147585e31b2dae106d608eca2 (patch)
tree715de22fb49090d42c1e9b954739978fb262d38d /libavcodec/opustab.c
parente538108c219d7b3628a9ec33d85bf252ee70c957 (diff)
opus_celt: rename structures to better names and reorganize them
This is meant to be applied on top of my previous patch which split PVQ into celt_pvq.c and made opus_celt.h Essentially nothing has been changed other than renaming CeltFrame to CeltBlock (CeltFrame had absolutely nothing at all to do with a frame) and CeltContext to CeltFrame. 3 variables have been put in CeltFrame as they make more sense there rather than being passed around as arguments. The coefficients have been moved to the CeltBlock structure (why the hell were they in CeltContext and not in CeltFrame??). Now the encoder would be able to use the exact context the decoder uses (plus a couple of extra fields in there). FATE passes, no slowdowns, etc. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/opustab.c')
-rw-r--r--libavcodec/opustab.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/opustab.c b/libavcodec/opustab.c
index cfe56ba94f..02d548e71a 100644
--- a/libavcodec/opustab.c
+++ b/libavcodec/opustab.c
@@ -22,6 +22,10 @@
#include "opustab.h"
+const uint8_t ff_opus_default_coupled_streams[] = { 0, 1, 1, 2, 2, 2, 2, 3 };
+
+const uint8_t ff_celt_band_end[] = { 13, 17, 17, 19, 21 };
+
const uint16_t ff_silk_model_stereo_s1[] = {
256, 7, 9, 10, 11, 12, 22, 46, 54, 55, 56, 59, 82, 174, 197, 200,
201, 202, 210, 234, 244, 245, 246, 247, 249, 256