aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dvenc.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-02-03 10:09:45 -0800
committerDiego Biurrun <diego@biurrun.de>2014-07-07 12:28:45 -0700
commita9aee08d900f686e966c64afec5d88a7d9d130a3 (patch)
tree92335216bc97235507f805401693ed534a8f5fc9 /libavcodec/dvenc.c
parent1e9a93bfca2c2f43a07e01f2ef9fd5cbafe6c22d (diff)
downloadffmpeg-a9aee08d900f686e966c64afec5d88a7d9d130a3.tar.gz
dsputil: Split off FDCT bits into their own context
Diffstat (limited to 'libavcodec/dvenc.c')
-rw-r--r--libavcodec/dvenc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libavcodec/dvenc.c b/libavcodec/dvenc.c
index 5b013adf51..7f0320087e 100644
--- a/libavcodec/dvenc.c
+++ b/libavcodec/dvenc.c
@@ -29,6 +29,7 @@
#include "config.h"
#include "avcodec.h"
#include "dsputil.h"
+#include "fdctdsp.h"
#include "internal.h"
#include "put_bits.h"
#include "dv.h"
@@ -38,6 +39,7 @@ static av_cold int dvvideo_encode_init(AVCodecContext *avctx)
{
DVVideoContext *s = avctx->priv_data;
DSPContext dsp;
+ FDCTDSPContext fdsp;
int ret;
s->sys = avpriv_dv_codec_profile(avctx);
@@ -61,13 +63,14 @@ static av_cold int dvvideo_encode_init(AVCodecContext *avctx)
dv_vlc_map_tableinit();
ff_dsputil_init(&dsp, avctx);
+ ff_fdctdsp_init(&fdsp, avctx);
ff_set_cmp(&dsp, dsp.ildct_cmp, avctx->ildct_cmp);
s->get_pixels = dsp.get_pixels;
s->ildct_cmp = dsp.ildct_cmp[5];
- s->fdct[0] = dsp.fdct;
- s->fdct[1] = dsp.fdct248;
+ s->fdct[0] = fdsp.fdct;
+ s->fdct[1] = fdsp.fdct248;
return ff_dvvideo_init(avctx);
}