From fd5e62a317429a58b3f7712819d72aa417df77ff Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Fri, 27 Sep 2024 09:23:26 -0400 Subject: [PATCH] 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: --- .../gst-plugins-base/gst-libs/gst/allocators/gstdrmdumb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/allocators/gstdrmdumb.c b/subprojects/gst-plugins-base/gst-libs/gst/allocators/gstdrmdumb.c index e77942675d..e0128b710c 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/allocators/gstdrmdumb.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/allocators/gstdrmdumb.c @@ -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;