[MPlayer-users] rage128 grayscale vidix fix? Fwd: [Mplayerxp-cvslog] CVS: mplayerxp/mplayerxp/vidix/drivers radeon_vid.c,1.19,1.20

Arpi arpi at thot.banki.hu
Wed Aug 14 23:38:01 CEST 2002


please try this patch, and tell em if it works, then i apply to mplayer cvs


--------- Forwarded message ---------
From: Nick Kurshev <nickols_k at users.sourceforge.net>
To: mplayerxp-cvslog at lists.sourceforge.net
Subject: [Mplayerxp-cvslog] CVS: mplayerxp/mplayerxp/vidix/drivers radeon_vid.c,1.19,1.20

Update of /cvsroot/mplayerxp/mplayerxp/mplayerxp/vidix/drivers
In directory usw-pr-cvs1:/tmp/cvs-serv13218

Modified Files:
	radeon_vid.c 
Log Message:
rage128 saturation fix by Peter Surda <shurdeek at panorama.sth.ac.at>

Index: radeon_vid.c
===================================================================
RCS file: /cvsroot/mplayerxp/mplayerxp/mplayerxp/vidix/drivers/radeon_vid.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- radeon_vid.c	23 Jul 2002 15:10:59 -0000	1.19
+++ radeon_vid.c	13 Aug 2002 15:59:14 -0000	1.20
@@ -1754,7 +1754,7 @@
 #ifdef RAGE128
     br = equal.brightness * 64 / 1000;
     if(br < -64) br = -64; if(br > 63) br = 63;
-    sat = (equal.saturation + 1000) * 16 / 1000;
+    sat = (equal.saturation*31 + 31000) / 2000;
     if(sat < 0) sat = 0; if(sat > 31) sat = 31;
     OUTREG(OV0_COLOUR_CNTL, (br & 0x7f) | (sat << 8) | (sat << 16));
 #else



-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
Mplayerxp-cvslog mailing list
Mplayerxp-cvslog at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mplayerxp-cvslog





More information about the MPlayer-users mailing list