aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/opus_pvq.h
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/opus_pvq.h
parente538108c219d7b3628a9ec33d85bf252ee70c957 (diff)
downloadffmpeg-07b78340dd1e6a8147585e31b2dae106d608eca2.tar.gz
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/opus_pvq.h')
-rw-r--r--libavcodec/opus_pvq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/opus_pvq.h b/libavcodec/opus_pvq.h
index 1083f35db9..0354a3c960 100644
--- a/libavcodec/opus_pvq.h
+++ b/libavcodec/opus_pvq.h
@@ -27,7 +27,7 @@
#include "opus_celt.h"
/* Decodes a band using PVQ */
-uint32_t ff_celt_decode_band(CeltContext *s, OpusRangeCoder *rc, const int band,
+uint32_t ff_celt_decode_band(CeltFrame *f, OpusRangeCoder *rc, const int band,
float *X, float *Y, int N, int b, uint32_t blocks,
float *lowband, int duration, float *lowband_out, int level,
float gain, float *lowband_scratch, int fill);