mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
kmssink: Add NV61 support
This identically handled to NV16, so no reason not to inclue it. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2530>
This commit is contained in:
parent
98da85ade0
commit
e05c022c48
1 changed files with 3 additions and 0 deletions
|
@ -70,6 +70,7 @@ static const struct
|
|||
DEF_FMT (NV12, NV12),
|
||||
DEF_FMT (NV21, NV21),
|
||||
DEF_FMT (NV16, NV16),
|
||||
DEF_FMT (NV61, NV61),
|
||||
DEF_FMT (NV24, NV24),
|
||||
|
||||
#undef DEF_FMT
|
||||
|
@ -114,6 +115,7 @@ gst_drm_bpp_from_drm (guint32 drmfmt)
|
|||
case DRM_FORMAT_NV12:
|
||||
case DRM_FORMAT_NV21:
|
||||
case DRM_FORMAT_NV16:
|
||||
case DRM_FORMAT_NV61:
|
||||
case DRM_FORMAT_NV24:
|
||||
bpp = 8;
|
||||
break;
|
||||
|
@ -154,6 +156,7 @@ gst_drm_height_from_drm (guint32 drmfmt, guint32 height)
|
|||
ret = height * 3 / 2;
|
||||
break;
|
||||
case DRM_FORMAT_NV16:
|
||||
case DRM_FORMAT_NV61:
|
||||
ret = height * 2;
|
||||
break;
|
||||
case DRM_FORMAT_NV24:
|
||||
|
|
Loading…
Reference in a new issue