changeset 37138:b69f68af3d6e

mpcodecs/vf_spp: Update for FDCTDSPContext Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
author michael
date Tue, 08 Jul 2014 01:37:38 +0000
parents 75d68ce0d43f
children 1f7173bd5ff4
files libmpcodecs/vf_spp.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_spp.c	Tue Jul 08 01:37:37 2014 +0000
+++ b/libmpcodecs/vf_spp.c	Tue Jul 08 01:37:38 2014 +0000
@@ -43,6 +43,7 @@
 #include "libavcodec/avcodec.h"
 #include "libavcodec/dsputil.h"
 #include "libavcodec/idctdsp.h"
+#include "libavcodec/fdctdsp.h"
 
 #undef fprintf
 #undef free
@@ -103,6 +104,7 @@
         AVCodecContext *avctx;
         DSPContext dsp;
         IDCTDSPContext idsp;
+        FDCTDSPContext fdsp;
         char *non_b_qp;
 };
 
@@ -417,7 +419,7 @@
                                 const int y1= y + offset[i+count-1][1];
                                 const int index= x1 + y1*stride;
                                 p->dsp.get_pixels(block, p->src + index, stride);
-                                p->dsp.fdct(block);
+                                p->fdsp.fdct(block);
                                 requantize(block2, block, qp, p->idsp.idct_permutation);
                                 p->idsp.idct(block2);
                                 add_block(p->temp + index, stride, block2);
@@ -584,6 +586,7 @@
     vf->priv->avctx= avcodec_alloc_context3(NULL);
     ff_dsputil_init(&vf->priv->dsp, vf->priv->avctx);
     ff_idctdsp_init(&vf->priv->idsp, vf->priv->avctx);
+    ff_fdctdsp_init(&vf->priv->fdsp, vf->priv->avctx);
 
     vf->priv->log2_count= 3;