]> git.sesse.net Git - ffmpeg/commit
opus_celt: rename structures to better names and reorganize them
authorRostislav Pehlivanov <atomnuker@gmail.com>
Sat, 11 Feb 2017 00:25:07 +0000 (00:25 +0000)
committerRostislav Pehlivanov <atomnuker@gmail.com>
Tue, 14 Feb 2017 06:15:36 +0000 (06:15 +0000)
commit07b78340dd1e6a8147585e31b2dae106d608eca2
tree715de22fb49090d42c1e9b954739978fb262d38d
parente538108c219d7b3628a9ec33d85bf252ee70c957
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>
libavcodec/opus.h
libavcodec/opus_celt.c
libavcodec/opus_celt.h
libavcodec/opus_pvq.c
libavcodec/opus_pvq.h
libavcodec/opusdec.c
libavcodec/opustab.c
libavcodec/opustab.h