From 70f50ddc5e97020d64ea0702748a00eddebc2473 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Wed, 26 Mar 2014 01:46:38 +0100 Subject: video: Add support for non-BT.709 primaries This add support for reading primary information from lavc, categorized into BT.601-525, BT.601-625, BT.709 and BT.2020; and passes it on to the vo. In vo_opengl, we always generate the 3dlut against the wider BT.2020 and transform our source into this colorspace in the shader. --- video/mp_image.h | 1 + 1 file changed, 1 insertion(+) (limited to 'video/mp_image.h') diff --git a/video/mp_image.h b/video/mp_image.h index 61a3d50f53..5ab12ae3d8 100644 --- a/video/mp_image.h +++ b/video/mp_image.h @@ -47,6 +47,7 @@ struct mp_image_params { int d_w, d_h; // define display aspect ratio (never 0/0) enum mp_csp colorspace; enum mp_csp_levels colorlevels; + enum mp_csp_prim primaries; enum mp_chroma_location chroma_location; // The image should be converted to these levels. Unlike colorlevels, it // does not describe the current state of the image. (Somewhat similar to -- cgit v1.2.3