[Mplayer-cvslog] CVS: main/libmpcodecs vf_rotate.c,1.3,1.4

Arpi of Ize arpi at mplayerhq.hu
Wed Oct 23 19:51:52 CEST 2002


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

Modified Files:
	vf_rotate.c 
Log Message:
automatic rotation for mode 4..7, based on
patch by Balatoni Denes <pnis at coder.hu>


Index: vf_rotate.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_rotate.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- vf_rotate.c	10 Sep 2002 22:18:32 -0000	1.3
+++ vf_rotate.c	23 Oct 2002 17:51:49 -0000	1.4
@@ -56,7 +56,13 @@
 static int config(struct vf_instance_s* vf,
         int width, int height, int d_width, int d_height,
 	unsigned int flags, unsigned int outfmt){
-    
+    if (vf->priv->direction & 4) {
+	if (width<height) vf->priv->direction&=3;
+    }
+    if (vf->priv->direction & 4){
+	vf->put_image=vf_next_put_image; // passthru mode!
+	return vf_next_config(vf,width,height,d_width,d_height,flags,outfmt);
+    }
     return vf_next_config(vf,height,width,d_height,d_width,flags,outfmt);
 }
 




More information about the MPlayer-cvslog mailing list