summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/video.c
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2016-05-30 20:11:14 +0200
committerwm4 <wm4@nowhere>2016-05-30 20:17:35 +0200
commit68c77d955f4d0c5269f8ea1be6e42e95110bbec0 (patch)
tree576a06814b196d9482c98a2b854228d68645b197 /video/out/opengl/video.c
parent45c3e0f0d0c836158ab38db53156bb6461ad7437 (diff)
downloadmpv-68c77d955f4d0c5269f8ea1be6e42e95110bbec0.tar.bz2
mpv-68c77d955f4d0c5269f8ea1be6e42e95110bbec0.tar.xz
vo_opengl: default hdr-tone-mapping to hable
This algorithm works really well. Setting it is a much better "out-of-the-box" experience than just clipping, which will always look ugly. In other words, with this default, users of mpv will just be able to play HDR content without even realizing it's HDR (pretty much).
Diffstat (limited to 'video/out/opengl/video.c')
-rw-r--r--video/out/opengl/video.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c
index f0a2401172..1f053d4fc1 100644
--- a/video/out/opengl/video.c
+++ b/video/out/opengl/video.c
@@ -322,6 +322,7 @@ const struct gl_video_opts gl_video_opts_def = {
.prescale_passes = 1,
.prescale_downscaling_threshold = 2.0f,
.target_brightness = 250,
+ .hdr_tone_mapping = TONE_MAPPING_HABLE,
.tone_mapping_param = NAN,
};
@@ -352,6 +353,7 @@ const struct gl_video_opts gl_video_opts_hq_def = {
.prescale_passes = 1,
.prescale_downscaling_threshold = 2.0f,
.target_brightness = 250,
+ .hdr_tone_mapping = TONE_MAPPING_HABLE,
.tone_mapping_param = NAN,
};