Log in

View Full Version : hue & saturation


xbox360
28th June 2011, 03:47
Hi in mplayer I set the hue & saturation to -hue 10 −saturation -10, what is the equivalent integer for avisynth hue & saturation ?

pandy
29th June 2011, 12:55
ColorYUV (http://avisynth.org/mediawiki/ColorYUV) (float "gain_u", float "off_u", float "cont_u", float "gain_v", float "off_v", float "cont_v")

contrast for U and V act like saturation (increasing contrast = increasing saturation)
hue is more tricky and probably need both gain and offset to be used (offset for sure)

Gavino
29th June 2011, 14:13
See also Tweak (http://avisynth.org/mediawiki/Tweak)(), which allows changing hue and saturation directly.

mandarinka
29th June 2011, 23:19
A related question: if I do for example coloryuv(off_u=+1), that is fully reversible (by off_v=-1) later, right?
As long as I use integer offsets (and if we ignore 0/255 values since we are dealing with tv-levels), I guess?