summaryrefslogtreecommitdiff
path: root/libavcodec/opus_celt.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2015-02-01 11:08:17 +0100
committerJanne Grunau <janne-libav@jannau.net>2015-02-02 16:07:33 +0100
commit3d5d46233cd81f78138a6d7418d480af04d3f6c8 (patch)
tree91f6729566b67ee3baf1df0e695a0c5f32a2f07d /libavcodec/opus_celt.c
parent28df0151b6618226b05ee52e031af0b11ca531b0 (diff)
opus: Factor out imdct15 into a standalone component
It will be reused by the AAC decoder.
Diffstat (limited to 'libavcodec/opus_celt.c')
-rw-r--r--libavcodec/opus_celt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/opus_celt.c b/libavcodec/opus_celt.c
index af3e549251..a6220e556c 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(ps);
}
@@ -2203,7 +2203,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;
}