mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
allocators: drmdumb: Fix bpp value for P010
P010 uses 16 bits per pixel, with least significant being padding. This code worked with Intel display driver since they roundup that value, but does not work with the generic DRM helpers which also support NV15, which does not have any padding. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7580>
This commit is contained in:
parent
90728a1166
commit
f42ce6ef35
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ gst_drm_bpp_from_drm (guint32 drm_fourcc)
|
||||||
bpp = 8;
|
bpp = 8;
|
||||||
break;
|
break;
|
||||||
case DRM_FORMAT_P010:
|
case DRM_FORMAT_P010:
|
||||||
bpp = 10;
|
bpp = 16;
|
||||||
break;
|
break;
|
||||||
case DRM_FORMAT_UYVY:
|
case DRM_FORMAT_UYVY:
|
||||||
case DRM_FORMAT_YUYV:
|
case DRM_FORMAT_YUYV:
|
||||||
|
|
Loading…
Reference in a new issue