[MPlayer-cvslog] r37238 - trunk/libmpcodecs/vf_spp.c

michael subversion at mplayerhq.hu
Thu Jul 10 01:20:47 CEST 2014


Author: michael
Date: Thu Jul 10 01:20:47 2014
New Revision: 37238

Log:
update for PixblockDSPContext

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

Modified:
   trunk/libmpcodecs/vf_spp.c

Modified: trunk/libmpcodecs/vf_spp.c
==============================================================================
--- trunk/libmpcodecs/vf_spp.c	Thu Jul 10 01:20:46 2014	(r37237)
+++ trunk/libmpcodecs/vf_spp.c	Thu Jul 10 01:20:47 2014	(r37238)
@@ -41,7 +41,7 @@
 #include "libavutil/internal.h"
 #include "libavutil/intreadwrite.h"
 #include "libavcodec/avcodec.h"
-#include "libavcodec/dsputil.h"
+#include "libavcodec/pixblockdsp.h"
 #include "libavcodec/idctdsp.h"
 #include "libavcodec/fdctdsp.h"
 
@@ -102,9 +102,9 @@ struct vf_priv_s {
         uint8_t *src;
         int16_t *temp;
         AVCodecContext *avctx;
-        DSPContext dsp;
         IDCTDSPContext idsp;
         FDCTDSPContext fdsp;
+        PixblockDSPContext pdsp;
         char *non_b_qp;
 };
 
@@ -418,7 +418,7 @@ static void filter(struct vf_priv_s *p, 
                                 const int x1= x + offset[i+count-1][0];
                                 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->pdsp.get_pixels(block, p->src + index, stride);
                                 p->fdsp.fdct(block);
                                 requantize(block2, block, qp, p->idsp.idct_permutation);
                                 p->idsp.idct(block2);
@@ -584,7 +584,7 @@ static int vf_open(vf_instance_t *vf, ch
     init_avcodec();
 
     vf->priv->avctx= avcodec_alloc_context3(NULL);
-    ff_dsputil_init(&vf->priv->dsp, vf->priv->avctx);
+    ff_pixblockdsp_init(&vf->priv->pdsp, vf->priv->avctx);
     ff_idctdsp_init(&vf->priv->idsp, vf->priv->avctx);
     ff_fdctdsp_init(&vf->priv->fdsp, vf->priv->avctx);
 


More information about the MPlayer-cvslog mailing list