diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-02 20:43:13 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-02 20:43:13 +0100 |
commit | 7b32b35bf5c4b02a959477392dfe8963a33a6436 (patch) | |
tree | 62e4e24be6022d0fa9530a673f5f32a72df6696d /libavcodec/opus_celt.c | |
parent | aab902e64668dcc889cf3c76d3d62bd58668af59 (diff) | |
parent | 3d5d46233cd81f78138a6d7418d480af04d3f6c8 (diff) | |
download | ffmpeg-7b32b35bf5c4b02a959477392dfe8963a33a6436.tar.gz |
Merge commit '3d5d46233cd81f78138a6d7418d480af04d3f6c8'
* commit '3d5d46233cd81f78138a6d7418d480af04d3f6c8':
opus: Factor out imdct15 into a standalone component
Conflicts:
configure
libavcodec/opus_celt.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/opus_celt.c')
-rw-r--r-- | libavcodec/opus_celt.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/opus_celt.c b/libavcodec/opus_celt.c index 4f3212b7a8..aa11bde85c 100644 --- a/libavcodec/opus_celt.c +++ b/libavcodec/opus_celt.c @@ -28,8 +28,8 @@ #include "libavutil/float_dsp.h" +#include "imdct15.h" #include "opus.h" -#include "opus_imdct.h" enum CeltSpread { CELT_SPREAD_NONE, @@ -61,7 +61,7 @@ typedef struct CeltFrame { struct CeltContext { // constant values that do not change during context lifetime AVCodecContext *avctx; - CeltIMDCTContext *imdct[4]; + IMDCT15Context *imdct[4]; AVFloatDSPContext *dsp; int output_channels; @@ -1983,7 +1983,7 @@ int ff_celt_decode_frame(CeltContext *s, OpusRangeCoder *rc, int silence = 0; int transient = 0; int anticollapse = 0; - CeltIMDCTContext *imdct; + IMDCT15Context *imdct; float imdct_scale = 1.0; if (coded_channels != 1 && coded_channels != 2) { @@ -2179,7 +2179,7 @@ void ff_celt_free(CeltContext **ps) return; for (i = 0; i < FF_ARRAY_ELEMS(s->imdct); i++) - ff_celt_imdct_uninit(&s->imdct[i]); + ff_imdct15_uninit(&s->imdct[i]); av_freep(&s->dsp); av_freep(ps); @@ -2204,7 +2204,7 @@ int ff_celt_init(AVCodecContext *avctx, CeltContext **ps, int output_channels) s->output_channels = output_channels; for (i = 0; i < FF_ARRAY_ELEMS(s->imdct); i++) { - ret = ff_celt_imdct_init(&s->imdct[i], i + 3); + ret = ff_imdct15_init(&s->imdct[i], i + 3); if (ret < 0) goto fail; } |