diff options
author | Niklas Haas <git@nand.wakku.to> | 2016-06-28 14:28:32 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-06-28 19:48:29 +0200 |
commit | dc9a5cbfd7c30d4f0597ec0aad91dadf63defbba (patch) | |
tree | 2bb156f5f84643068e34e4817860597f73c262dc /video/csputils.h | |
parent | 65499d863a41cd7403302b8b635e18b764d4f9eb (diff) | |
download | mpv-dc9a5cbfd7c30d4f0597ec0aad91dadf63defbba.tar.bz2 mpv-dc9a5cbfd7c30d4f0597ec0aad91dadf63defbba.tar.xz |
vo_opengl: revise the transfer curve logic
Instead of hard-coding a big list, move some of the functionality
to csputils. Affects both the auto-guess blacklist and the peak
estimation.
Also update the comments.
Diffstat (limited to 'video/csputils.h')
-rw-r--r-- | video/csputils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/csputils.h b/video/csputils.h index 047b109d2b..274b548381 100644 --- a/video/csputils.h +++ b/video/csputils.h @@ -219,6 +219,8 @@ int mp_chroma_location_to_av(enum mp_chroma_location mploc); void mp_get_chroma_location(enum mp_chroma_location loc, int *x, int *y); struct mp_csp_primaries mp_get_csp_primaries(enum mp_csp_prim csp); +float mp_csp_trc_rel_peak(enum mp_csp_trc trc); +bool mp_trc_is_hdr(enum mp_csp_trc trc); /* Color conversion matrix: RGB = m * YUV + c * m is in row-major matrix, with m[row][col], e.g.: |