From dc9a5cbfd7c30d4f0597ec0aad91dadf63defbba Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Tue, 28 Jun 2016 14:28:32 +0200 Subject: 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. --- video/csputils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video/csputils.h') 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.: -- cgit v1.2.3