[Mplayer-cvslog] CVS: main/libvo vo_dxr3.c,1.94,1.95
Zoltan Ponekker
pontscho at mplayerhq.hu
Tue Aug 27 10:33:07 CEST 2002
- Previous message: [Mplayer-cvslog] CVS: main/Gui/wm wsxdnd.c,1.3,1.4
- Next message: [Mplayer-cvslog] CVS: main/debian changelog,1.20,1.21 config,1.2,1.3 postinst,1.8,1.9 postinst.templates,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv459/libvo
Modified Files:
vo_dxr3.c
Log Message:
- add dxr3 equ patch from "Szombathelyi [iso-8859-2] György" <gyurco at freemail.hu>
- add cosmetic patch from uh ... don't know :)
Index: vo_dxr3.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_dxr3.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -r1.94 -r1.95
--- vo_dxr3.c 22 Aug 2002 13:58:38 -0000 1.94
+++ vo_dxr3.c 27 Aug 2002 08:33:05 -0000 1.95
@@ -199,12 +199,13 @@
if (ioctl(fd_control, EM8300_IOCTL_GETBCS, &bcs) < 0)
return VO_FALSE;
if (!strcasecmp(data, "brightness"))
- bcs.brightness = value;
+ bcs.brightness = (value+100)*5;
else if (!strcasecmp(data, "contrast"))
- bcs.contrast = value;
+ bcs.contrast = (value+100)*5;
else if (!strcasecmp(data, "saturation"))
- bcs.saturation = value;
-
+ bcs.saturation = (value+100)*5;
+ else return VO_FALSE;
+
if (ioctl(fd_control, EM8300_IOCTL_SETBCS, &bcs) < 0)
return VO_FALSE;
return VO_TRUE;
@@ -223,11 +224,13 @@
return VO_FALSE;
if (!strcasecmp(data, "brightness"))
- *value = bcs.brightness;
+ *value = (bcs.brightness/5)-100;
else if (!strcasecmp(data, "contrast"))
- *value = bcs.contrast;
+ *value = (bcs.contrast/5)-100;
else if (!strcasecmp(data, "saturation"))
- *value = bcs.saturation;
+ *value = (bcs.saturation/5)-100;
+ else return VO_FALSE;
+
return VO_TRUE;
}
}
- Previous message: [Mplayer-cvslog] CVS: main/Gui/wm wsxdnd.c,1.3,1.4
- Next message: [Mplayer-cvslog] CVS: main/debian changelog,1.20,1.21 config,1.2,1.3 postinst,1.8,1.9 postinst.templates,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list