From b697534aa4dfc38ff942f8bb851e6c9d9e344858 Mon Sep 17 00:00:00 2001 From: Ville Syrjälä Date: Tue, 6 Mar 2018 20:01:22 +0200 Subject: lib/fb: Add color_encoding/color_range to igt_fb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make igt_fb be aware of the color encoding/range. For now we still hardcore everything to BT.709 limited range though. v2: Default to BT.709 Signed-off-by: Ville Syrjälä Reviewed-by: Chris Wilson Reviewed-by: Maarten Lankhorst --- lib/igt_fb.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/igt_fb.h') diff --git a/lib/igt_fb.h b/lib/igt_fb.h index 081ed42a..d28bc0c4 100644 --- a/lib/igt_fb.h +++ b/lib/igt_fb.h @@ -36,6 +36,8 @@ #include +#include "igt_color_encoding.h" + /** * igt_fb_t: * @fb_id: KMS ID of the framebuffer @@ -66,6 +68,8 @@ typedef struct igt_fb { uint32_t drm_format; int width; int height; + enum igt_color_encoding color_encoding; + enum igt_color_range color_range; unsigned int stride; uint64_t tiling; unsigned int size; -- cgit v1.2.3