diff options
author | Niklas Haas <git@nand.wakku.to> | 2015-02-06 03:37:21 +0100 |
---|---|---|
committer | Niklas Haas <git@nand.wakku.to> | 2015-02-06 03:37:21 +0100 |
commit | 4fed18e81e7ffca623e4260d8569f959410b10bb (patch) | |
tree | 3605d5d4c042a951e0a3a21fe97fea9d94c90c85 /video/out/gl_video_shaders.glsl | |
parent | 4872443fc0217429ba60308213c118dc55b7b88c (diff) | |
download | mpv-4fed18e81e7ffca623e4260d8569f959410b10bb.tar.bz2 mpv-4fed18e81e7ffca623e4260d8569f959410b10bb.tar.xz |
vo_opengl: add support for linear scaling without CMS
This introduces a new option linear-scaling, which is now implied by
srgb, icc-profile and sigmoid-upscaling.
Notably, this means (sigmoidized) linear upscaling is now enabled by
default in opengl-hq mode. The impact should be negligible, and there
has been no observation of negative side effects of sigmoidized scaling,
so it feels safe to do so.
Diffstat (limited to 'video/out/gl_video_shaders.glsl')
-rw-r--r-- | video/out/gl_video_shaders.glsl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/gl_video_shaders.glsl b/video/out/gl_video_shaders.glsl index a7348a47e7..636828c0ca 100644 --- a/video/out/gl_video_shaders.glsl +++ b/video/out/gl_video_shaders.glsl @@ -508,6 +508,9 @@ void main() { // Adapt and compand from the linear BT2020 source to the sRGB output color = srgb_compand(color); #endif +#ifdef USE_INV_BT1886 + color = pow(color, vec3(1.0/1.961)); +#endif #ifdef USE_DITHER vec2 dither_pos = gl_FragCoord.xy / dither_size; #ifdef USE_TEMPORAL_DITHER |