summaryrefslogtreecommitdiff
path: root/libavcodec/opustab.h
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/opustab: Avoid indirection to access ff_celt_windowAndreas Rheinhardt2022-10-101-1/+7
| | | | | | | | | | | | | | | Currently, it is accessed via a pointer (ff_celt_window) exported from opustab.h which points inside a static array (ff_celt_window_padded) in opustab.h. Instead export ff_celt_window_padded directly and make opustab.h a static const pointer pointing inside ff_celt_window_padded. Also mark all the declarations in opustab.h as hidden, so that the compiler knows that ff_celt_window has a fixed offset from the code even when compiling position-independent code. Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* Remove unnecessary mem.h inclusionsAndreas Rheinhardt2021-07-221-2/+0
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* Mark some pointers as constAndreas Rheinhardt2021-01-011-1/+1
| | | | | Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* avcodec/opustab: Make array staticAndreas Rheinhardt2020-12-311-1/+0
| | | | | Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* opusdec: do not fail when LBRR frames are presentAnton Khirnov2020-10-011-0/+3
| | | | | | Decode and discard them. Fixes ticket 4641.
* opusenc: use float_dsp for transient mdctsRostislav Pehlivanov2017-07-131-2/+1
| | | | | | vector_fmul_reverse requires padding the window at the front Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* opus_celt: move postfilter taps table to the shared opustab.c fileRostislav Pehlivanov2017-07-101-0/+2
| | | | Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* opus_pvq: minor cleanupsRostislav Pehlivanov2017-04-261-1/+1
| | | | | | | | Removes unneeded variables, renames confusing and innacurate variables and rewrites and slightly optimizes hadamard interleave/deinterleave functions. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* opus_celt: rename structures to better names and reorganize themRostislav Pehlivanov2017-02-141-0/+4
| | | | | | | | | | | | | | | | | | | | 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>
* opus: move all tables to a separate fileRostislav Pehlivanov2016-11-081-0/+156
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>