.bytes_per_pixel = { 4 }
};
-static const struct planar_layout packed_8bpp_layout = {
- .num_planes = 1,
- .horizontal_subsampling = { 1 },
- .vertical_subsampling = { 1 },
- .bytes_per_pixel = { 8 }
-};
-
static const struct planar_layout biplanar_yuv_420_layout = {
.num_planes = 2,
.horizontal_subsampling = { 1, 2 },
case DRM_FORMAT_XRGB8888:
return &packed_4bpp_layout;
- case DRM_FORMAT_XBGR16161616:
- return &packed_8bpp_layout;
-
default:
drv_log("UNKNOWN FORMAT %d\n", format);
return NULL;
struct drv_array *drv_query_kms(struct driver *drv)
{
struct drv_array *kms_items;
- uint64_t plane_type, use_flag;
+ uint64_t plane_type = UINT64_MAX;
+ uint64_t use_flag;
uint32_t i, j, k;
drmModePlanePtr plane;