mirror of
https://github.com/mpv-player/mpv
synced 2025-01-13 00:06:25 +01:00
Fixed saturation computing for rage128
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4231 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
555c676683
commit
eb5eeb7c85
@ -1089,7 +1089,7 @@ int vixPlaybackSetEq( const vidix_video_eq_t * eq)
|
||||
#ifdef RAGE128
|
||||
br = equal.brightness * 64 / 1000;
|
||||
if(br < -64) br = -64; if(br > 63) br = 63;
|
||||
sat = (equal.saturation + 1000) * 32 / 1000;
|
||||
sat = (equal.saturation + 1000) * 16 / 1000;
|
||||
if(sat < 0) sat = 0; if(sat > 31) sat = 31;
|
||||
OUTREG(OV0_COLOUR_CNTL, (br & 0x7f) | (sat << 8) | (sat << 16));
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user