mpv/video
Niklas Haas db36aa06f4
vo_opengl: tone map using only luminance information
This is even better at preventing discoloration than tone mapping on the
XYZ image. Partly inspired by the HLG OOTF. Also simplifies the way we
tone map, and moves this logic to the pass_tone_map function where it
belongs.

This also fixes what could arguably be considered a bug in the HLG
implementation when using HLG for non-BT.2020 colorspaces, which is not
permitted by spec but thinkable in theory. Although in this case, I
guess it will be arbitrary whether people use the BT.2020-normalized
luma coefficients or change it to fit the colorspace, so I guess either
way could be considered "right", depending on what people end up doing.
Either way, in lieue of standard practice, we do what makes the most
sense (to me), and hopefully others will follow.

The downside is that we upload an extra vec3 uniform even if we don't
use it, but eliminating that would be ugly.
2017-06-27 01:05:43 +02:00
..
decode vd: use ST.2086 / HDR10 MaxCLL in addition to mastering metadata 2017-06-18 20:54:44 +02:00
filter vf_format: also reset gamma-related attributes when changing gamma 2017-06-18 20:54:44 +02:00
out vo_opengl: tone map using only luminance information 2017-06-27 01:05:43 +02:00
csputils.c vo_opengl: implement sony s-log2 trc 2017-06-18 20:54:44 +02:00
csputils.h vo_opengl: implement sony s-log2 trc 2017-06-18 20:54:44 +02:00
fmt-conversion.c video/fmt-conversion, img_format: change license to LGPL 2017-06-18 15:15:07 +02:00
fmt-conversion.h video/fmt-conversion, img_format: change license to LGPL 2017-06-18 15:15:07 +02:00
gpu_memcpy.c
gpu_memcpy.h
hwdec.c vd_lavc, vaapi: move hw device creation to generic code 2017-02-20 08:39:55 +01:00
hwdec.h hwdec: fix 2 comments 2017-05-24 14:32:23 +02:00
image_writer.c image_writer, vo_image: change license to LGPL 2017-06-18 15:45:24 +02:00
image_writer.h image_writer, vo_image: change license to LGPL 2017-06-18 15:45:24 +02:00
img_format.c video/fmt-conversion, img_format: change license to LGPL 2017-06-18 15:15:07 +02:00
img_format.h video/fmt-conversion, img_format: change license to LGPL 2017-06-18 15:15:07 +02:00
mp_image.c mp_image: infer correct HLG sig_peak 2017-06-27 00:33:42 +02:00
mp_image.h mp_image: change license to LGPL (almost) 2017-06-16 19:35:58 +02:00
mp_image_pool.c mp_image_tool: guard hw downloading against allocation failures 2017-02-07 17:06:20 +01:00
mp_image_pool.h
sws_utils.c
sws_utils.h
vaapi.c vdpau, vaapi: unref libavutil device ref 2017-04-29 15:09:40 +02:00
vaapi.h vd_lavc, vaapi: move hw device creation to generic code 2017-02-20 08:39:55 +01:00
vdpau.c vdpau: crappy hack to allow initializing hw decoding after preemption 2017-05-19 15:24:38 +02:00
vdpau.h vdpau: support new vdpau libavcodec decode API 2017-03-23 11:14:11 +01:00
vdpau_functions.inc
vdpau_mixer.c
vdpau_mixer.h
vt.c vo_opengl: hwdec_osx: use new format setup function 2017-02-17 17:08:37 +01:00
vt.h videotoolbox: add reverse format mapping function 2017-02-17 13:51:03 +01:00