Commit d566283b authored by Shashank Sharma's avatar Shashank Sharma Committed by Harish Krupo

pixel-formats: Add P010 in pixel formats

This patch adds details for P010 pixel format, in the formats list.
This will allow us to play 10-bit HDR P010 videos.
Signed-off-by: Shashank Sharma's avatarShashank Sharma <shashank.sharma@intel.com>
parent a2f49301
......@@ -52,6 +52,10 @@
#define SAMPLER_TYPE(type) .sampler_type = 0
#endif
#ifndef DRM_FORMAT_P010
#define DRM_FORMAT_P010 fourcc_code('P', '0', '1', '0') /* 2x2 subsampled Cb:Cr plane 10 bits per channel */
#endif
#define DRM_FORMAT(f) .format = DRM_FORMAT_ ## f, .drm_format_name = #f
#include "weston-egl-ext.h"
......@@ -348,6 +352,14 @@ static const struct pixel_format_info pixel_format_table[] = {
.hsub = 2,
.vsub = 2,
},
{
DRM_FORMAT(P010),
SAMPLER_TYPE(EGL_TEXTURE_Y_UV_WL),
.num_planes = 2,
.chroma_order = ORDER_UV,
.hsub = 2,
.vsub = 2,
},
{
DRM_FORMAT(YUV422),
SAMPLER_TYPE(EGL_TEXTURE_Y_U_V_WL),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment