pp passtrough

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5528 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-04-08 00:06:03 +00:00
parent dd031af91c
commit 647b4aa808
1 changed files with 7 additions and 0 deletions

View File

@ -84,6 +84,13 @@ static void put_image(struct vf_instance_s* vf, mp_image_t *mpi){
vf->priv->ctx->swScale(vf->priv->ctx,mpi->planes,mpi->stride,0,mpi->h,dmpi->planes,dmpi->stride);
if(vf->priv->w==mpi->w && vf->priv->h==mpi->h){
// just conversion, no scaling -> keep postprocessing data
// this way we can apply pp filter to non-yv12 source using scaler
dmpi->qscale=mpi->qscale;
dmpi->qstride=mpi->qstride;
}
vf_next_put_image(vf,dmpi);
}