changeset 5527:04c5047ead0c

pp passtrough
author arpi
date Mon, 08 Apr 2002 00:06:03 +0000
parents 30679378f814
children 39d4e6b03bcf
files libmpcodecs/vf_scale.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_scale.c	Sun Apr 07 23:30:59 2002 +0000
+++ b/libmpcodecs/vf_scale.c	Mon Apr 08 00:06:03 2002 +0000
@@ -84,6 +84,13 @@
     
     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);
 }