[Mplayer-cvslog] CVS: main/libmpcodecs vf_scale.c,1.10,1.11

Arpi of Ize arpi at mplayerhq.hu
Mon May 20 01:39:45 CEST 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv1602

Modified Files:
	vf_scale.c 
Log Message:
new special w/h values: -2 and -3. based on proposal by Bohdan Horst <nexus at hoth.amu.edu.pl>

Index: vf_scale.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_scale.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- vf_scale.c	12 May 2002 19:06:15 -0000	1.10
+++ vf_scale.c	19 May 2002 23:39:42 -0000	1.11
@@ -85,8 +85,13 @@
     }
 
     // calculate the missing parameters:
+    if(vf->priv->w==-3) vf->priv->w=vf->priv->h*width/height; else
+    if(vf->priv->w==-2) vf->priv->w=vf->priv->h*d_width/d_height;
     if(vf->priv->w<0) vf->priv->w=width; else
     if(vf->priv->w==0) vf->priv->w=d_width;
+    
+    if(vf->priv->h==-3) vf->priv->h=vf->priv->w*height/width; else
+    if(vf->priv->h==-2) vf->priv->h=vf->priv->w*d_height/d_width;
     if(vf->priv->h<0) vf->priv->h=height; else
     if(vf->priv->h==0) vf->priv->h=d_height;
     




More information about the MPlayer-cvslog mailing list