summaryrefslogtreecommitdiff
path: root/lib/igt_fb.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2018-03-06 20:01:22 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2018-06-08 12:56:01 +0300
commitb697534aa4dfc38ff942f8bb851e6c9d9e344858 (patch)
tree0e2b4110a8b78b3f8363f1adcd8880cfd32ecb44 /lib/igt_fb.h
parentfed97c4b58cbb7c07d9075f9f6fb6d09596a7813 (diff)
lib/fb: Add color_encoding/color_range to igt_fb
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ä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'lib/igt_fb.h')
-rw-r--r--lib/igt_fb.h4
1 files changed, 4 insertions, 0 deletions
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 <i915_drm.h>
+#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;