comparison libmpcodecs/vf_scale.c @ 5527:04c5047ead0c

pp passtrough
author arpi
date Mon, 08 Apr 2002 00:06:03 +0000
parents 30679378f814
children 0b301fec999a
comparison
equal deleted inserted replaced
5526:30679378f814 5527:04c5047ead0c
82 MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE, 82 MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE,
83 vf->priv->w, vf->priv->h); 83 vf->priv->w, vf->priv->h);
84 84
85 vf->priv->ctx->swScale(vf->priv->ctx,mpi->planes,mpi->stride,0,mpi->h,dmpi->planes,dmpi->stride); 85 vf->priv->ctx->swScale(vf->priv->ctx,mpi->planes,mpi->stride,0,mpi->h,dmpi->planes,dmpi->stride);
86 86
87 if(vf->priv->w==mpi->w && vf->priv->h==mpi->h){
88 // just conversion, no scaling -> keep postprocessing data
89 // this way we can apply pp filter to non-yv12 source using scaler
90 dmpi->qscale=mpi->qscale;
91 dmpi->qstride=mpi->qstride;
92 }
93
87 vf_next_put_image(vf,dmpi); 94 vf_next_put_image(vf,dmpi);
88 } 95 }
89 96
90 //===========================================================================// 97 //===========================================================================//
91 98