[Mplayer-cvslog] CVS: main/libvo vo_dxr2.c,1.12,1.13

Alban Bedel CVS albeu at mplayerhq.hu
Sat Nov 2 23:46:12 CET 2002


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

Modified Files:
	vo_dxr2.c 
Log Message:
Overlay cropping options. Patch by Mark <CompGuy284 at attbi dot com> extanded
by myself a bit


Index: vo_dxr2.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_dxr2.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- vo_dxr2.c	30 Oct 2002 17:54:07 -0000	1.12
+++ vo_dxr2.c	2 Nov 2002 22:46:09 -0000	1.13
@@ -73,7 +73,8 @@
 static int ck_bmin = 0x40;
 static int ck_bmax = 0xFF;
 static int ck_b = 0xFF;
-
+static int cr_left = 0, cr_right = 0;
+static int cr_top = 55, cr_bot = 300;
 
 config_t dxr2_opts[] = {
   { "overlay", &use_ol, CONF_TYPE_FLAG, 0, 0, 1, NULL},
@@ -125,6 +126,10 @@
   { "ck-bmin", &ck_bmin, CONF_TYPE_INT, CONF_RANGE, 0, 0xFF, NULL},
   { "ck-bmax", &ck_bmax, CONF_TYPE_INT, CONF_RANGE, 0, 0xFF, NULL},
   { "ck-b", &ck_b, CONF_TYPE_INT, CONF_RANGE, 0, 0xFF, NULL},
+  { "cr-left", &cr_left, CONF_TYPE_INT, CONF_RANGE, 0, 500, NULL},
+  { "cr-right", &cr_right, CONF_TYPE_INT, CONF_RANGE, 0, 500, NULL},
+  { "cr-top", &cr_top, CONF_TYPE_INT, CONF_RANGE, 0, 500, NULL},
+  { "cr-bot", &cr_bot, CONF_TYPE_INT, CONF_RANGE, 0, 500, NULL},
 
   { NULL,NULL, 0, 0, 0, 0, NULL}
 };
@@ -414,10 +419,10 @@
   dxr2_twoArg_t win;
   dxr2_fourArg_t crop;
 
-  crop.arg1=0;
-  crop.arg2=0;
-  crop.arg3=55;
-  crop.arg4=300;
+  crop.arg1= cr_left;
+  crop.arg2= cr_right;
+  crop.arg3 = cr_top;
+  crop.arg4 = cr_bot;
   ioctl(dxr2_fd, DXR2_IOC_SET_OVERLAY_CROPPING, &crop);
   
   oc.arg1 = 0x40;




More information about the MPlayer-cvslog mailing list