[MPlayer-cvslog] r37234 - trunk/libmpcodecs/vf_spp.c
michael
subversion at mplayerhq.hu
Tue Jul 8 03:37:38 CEST 2014
Author: michael
Date: Tue Jul 8 03:37:38 2014
New Revision: 37234
Log:
mpcodecs/vf_spp: Update for FDCTDSPContext
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 Tue Jul 8 03:37:37 2014 (r37233)
+++ trunk/libmpcodecs/vf_spp.c Tue Jul 8 03:37:38 2014 (r37234)
@@ -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 @@ struct vf_priv_s {
AVCodecContext *avctx;
DSPContext dsp;
IDCTDSPContext idsp;
+ FDCTDSPContext fdsp;
char *non_b_qp;
};
@@ -417,7 +419,7 @@ static void filter(struct vf_priv_s *p,
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 @@ static int vf_open(vf_instance_t *vf, ch
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;
More information about the MPlayer-cvslog
mailing list