mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +00:00
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:
parent
f42ce6ef35
commit
fd5e62a317
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue