summaryrefslogtreecommitdiff
path: root/libavcodec/avdct.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-02 20:59:24 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-03 23:34:35 +0200
commite680c731a213759a824420a94f0068f943d3788f (patch)
tree939587834ade2ec54d6bd917c8f617f7e6e20284 /libavcodec/avdct.c
parent9400603140db5f44f35942482a3435e4b67e7e79 (diff)
downloadffmpeg-e680c731a213759a824420a94f0068f943d3788f.tar.gz
avcodec/avdct: Add get_pixels()
Suggested-by: ubitux Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/avdct.c')
-rw-r--r--libavcodec/avdct.c9
1 files changed, 9 insertions, 0 deletions
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);