/usr/share/movit/saturation_effect.frag is in libmovit2 1.1.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | // Saturate/desaturate (in linear space).
vec4 FUNCNAME(vec2 tc) {
vec4 x = INPUT(tc);
float luminance = dot(x.rgb, vec3(0.2126, 0.7152, 0.0722));
x.rgb = mix(vec3(luminance), x.rgb, PREFIX(saturation));
return x;
}
|