diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2019-01-21 13:05:47 +0100 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2019-03-29 10:20:00 +0100 |
commit | 78f78fb7463d43f346272e4e309d005354f13f86 (patch) | |
tree | b509cdc7f46a09ccd664879f377fc1f61c79ef5f /lib/igt_color_encoding.c | |
parent | d9fe699ea45406e279b78d1afdb4d57a205a3c99 (diff) |
lib/igt_fb: Add support for Y21x formats as well, v3.
Those formats are packed like YUYV, but only 16 bits per component.
Changes since v1:
- Rebase on top of upstream YUV changes.
Changes since v2:
- Use drm_fourcc.h from upstream.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'lib/igt_color_encoding.c')
-rw-r--r-- | lib/igt_color_encoding.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/igt_color_encoding.c b/lib/igt_color_encoding.c index cc76a991..9f9dc143 100644 --- a/lib/igt_color_encoding.c +++ b/lib/igt_color_encoding.c @@ -151,6 +151,9 @@ static const struct color_encoding_format { { DRM_FORMAT_P010, 65472.f, 4096.f, 60160.f, 4096.f, 32768.f, 61440.f }, { DRM_FORMAT_P012, 65520.f, 4096.f, 60160.f, 4096.f, 32768.f, 61440.f }, { DRM_FORMAT_P016, 65535.f, 4096.f, 60160.f, 4096.f, 32768.f, 61440.f }, + { DRM_FORMAT_Y210, 65472.f, 4096.f, 60160.f, 4096.f, 32768.f, 61440.f }, + { DRM_FORMAT_Y212, 65520.f, 4096.f, 60160.f, 4096.f, 32768.f, 61440.f }, + { DRM_FORMAT_Y216, 65535.f, 4096.f, 60160.f, 4096.f, 32768.f, 61440.f }, }; static const struct color_encoding_format *lookup_fourcc(uint32_t fourcc) |