diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-06-08 15:04:13 +0200 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-08-30 10:59:17 +0200 |
commit | 903366f8699d730345e560dcaf854da69150a8d9 (patch) | |
tree | 5ef957e94efbc8a78e000e46960c9809cbf4f6cc /lib/igt_color_encoding.h | |
parent | 7beba5bd2f6a01127bccfe4158555a9874ab2860 (diff) |
lib/kms: Remove special enum handling and replace with call to igt_plane_set_prop_enum, v2.
We now have infrastructure for generic enum handling. This will make it easier
to write new tests without defining all enum constants beforehand.
Changes since v1:
- Fix compile error, sent old version by accident.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Diffstat (limited to 'lib/igt_color_encoding.h')
-rw-r--r-- | lib/igt_color_encoding.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/igt_color_encoding.h b/lib/igt_color_encoding.h index 0d8c8193..3884e493 100644 --- a/lib/igt_color_encoding.h +++ b/lib/igt_color_encoding.h @@ -41,6 +41,9 @@ enum igt_color_range { IGT_NUM_COLOR_RANGES, }; +const char *igt_color_encoding_to_str(enum igt_color_encoding encoding); +const char *igt_color_range_to_str(enum igt_color_range range); + struct igt_mat4 igt_ycbcr_to_rgb_matrix(enum igt_color_encoding color_encoding, enum igt_color_range color_range); struct igt_mat4 igt_rgb_to_ycbcr_matrix(enum igt_color_encoding color_encoding, |