allocators: drmdump: Add NV15 supports

This is a packed version of P010, names NV14_10LE40 in GStreamer. This
format is used on all Rockchip SoC variants.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7580>
This commit is contained in:
Nicolas Dufresne 2024-09-27 09:23:26 -04:00 committed by GStreamer Marge Bot
parent f42ce6ef35
commit fd5e62a317

View file

@ -189,6 +189,7 @@ gst_drm_height_from_drm (guint32 drmfmt, guint32 height)
case DRM_FORMAT_YUV422:
case DRM_FORMAT_NV12:
case DRM_FORMAT_NV21:
case DRM_FORMAT_NV15:
case DRM_FORMAT_P010:
case DRM_FORMAT_P016:
ret = height * 3 / 2;
@ -224,6 +225,9 @@ gst_drm_bpp_from_drm (guint32 drm_fourcc)
case DRM_FORMAT_NV24:
bpp = 8;
break;
case DRM_FORMAT_NV15:
bpp = 10;
break;
case DRM_FORMAT_P010:
bpp = 16;
break;