[MPlayer-cvslog] r18627 - in trunk: DOCS/man/en/mplayer.1 libmpcodecs/vf_yadif.c

michael subversion at mplayerhq.hu
Wed Jun 7 19:21:46 CEST 2006


Author: michael
Date: Wed Jun  7 19:21:45 2006
New Revision: 18627

Modified:
   trunk/libmpcodecs/vf_yadif.c

Changes in other areas also in this revision:
Modified:
   trunk/DOCS/man/en/mplayer.1

Log:
make spatial interlacing check optional


Modified: trunk/libmpcodecs/vf_yadif.c
==============================================================================
--- trunk/libmpcodecs/vf_yadif.c	(original)
+++ trunk/libmpcodecs/vf_yadif.c	Wed Jun  7 19:21:45 2006
@@ -103,7 +103,7 @@
                                 spatial_pred= (cur[-refs  +j] + cur[+refs  -j])>>1;
                             }
                         }
-                        {
+                        if(p->mode<2){
                             int b= (prev2[-2*refs] + next2[-2*refs])>>1;
                             int f= (prev2[+2*refs] + next2[+2*refs])>>1;
 #if 0
@@ -164,7 +164,7 @@
 
     store_ref(vf->priv, mpi->planes, mpi->stride, mpi->w, mpi->h);
 
-    for(i=0; i<=vf->priv->mode; i++){
+    for(i=0; i<=(vf->priv->mode&1); i++){
         dmpi=vf_get_image(vf->next,mpi->imgfmt,
             MP_IMGTYPE_TEMP,
             MP_IMGFLAG_ACCEPT_STRIDE|MP_IMGFLAG_PREFER_ALIGNED_STRIDE,
@@ -172,7 +172,7 @@
         vf_clone_mpi_attributes(dmpi, mpi);
         filter(vf->priv, dmpi->planes, dmpi->stride, mpi->w, mpi->h, i ^ tff ^ 1, tff);
         ret |= vf_next_put_image(vf, dmpi, pts /*FIXME*/);
-        if(i<vf->priv->mode)
+        if(i<(vf->priv->mode&1))
             vf_next_control(vf, VFCTRL_FLIP_PAGE, NULL);
     }
 
@@ -219,9 +219,6 @@
 
     if (args) sscanf(args, "%d:%d", &vf->priv->mode, &vf->priv->parity);
 
-    if(vf->priv->mode < 0 || vf->priv->mode > 1)
-        vf->priv->mode=0;
-
     return 1;
 }
 



More information about the MPlayer-cvslog mailing list