From e680c731a213759a824420a94f0068f943d3788f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 2 Aug 2014 20:59:24 +0200 Subject: avcodec/avdct: Add get_pixels() Suggested-by: ubitux Signed-off-by: Michael Niedermayer --- libavcodec/avdct.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libavcodec/avdct.c') diff --git a/libavcodec/avdct.c b/libavcodec/avdct.c index 58f4974b49..252125601b 100644 --- a/libavcodec/avdct.c +++ b/libavcodec/avdct.c @@ -21,6 +21,7 @@ #include "avcodec.h" #include "idctdsp.h" #include "fdctdsp.h" +#include "pixblockdsp.h" #include "avdct.h" #define OFFSET(x) offsetof(AVDCT,x) @@ -117,6 +118,14 @@ int avcodec_dct_init(AVDCT *dsp) } #endif +#if CONFIG_PIXBLOCKDSP + { + PixblockDSPContext pdsp; + ff_pixblockdsp_init(&pdsp, avctx); + COPY(pdsp, get_pixels); + } +#endif + avcodec_close(avctx); av_free(avctx); -- cgit v1.2.3