diff options
Diffstat (limited to 'lib/igt_color_encoding.c')
-rw-r--r-- | lib/igt_color_encoding.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/igt_color_encoding.c b/lib/igt_color_encoding.c index 84dc5938..cc76a991 100644 --- a/lib/igt_color_encoding.c +++ b/lib/igt_color_encoding.c @@ -135,6 +135,7 @@ static const struct color_encoding_format { float ofs_y, max_y, ofs_cbcr, mid_cbcr, max_cbcr; } formats[] = { { DRM_FORMAT_XRGB8888, 255.f, }, + { IGT_FORMAT_FLOAT, 1.f, }, { DRM_FORMAT_NV12, 255.f, 16.f, 235.f, 16.f, 128.f, 240.f }, { DRM_FORMAT_NV16, 255.f, 16.f, 235.f, 16.f, 128.f, 240.f }, { DRM_FORMAT_NV21, 255.f, 16.f, 235.f, 16.f, 128.f, 240.f }, @@ -147,6 +148,9 @@ static const struct color_encoding_format { { DRM_FORMAT_YVYU, 255.f, 16.f, 235.f, 16.f, 128.f, 240.f }, { DRM_FORMAT_UYVY, 255.f, 16.f, 235.f, 16.f, 128.f, 240.f }, { DRM_FORMAT_VYUY, 255.f, 16.f, 235.f, 16.f, 128.f, 240.f }, + { 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 }, }; static const struct color_encoding_format *lookup_fourcc(uint32_t fourcc) |