summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2021-09-17 15:39:54 -0400
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-09-20 14:08:56 +0000
commit98da85ade042d8495a89f67ea164529f7c591855 (patch)
treed3e1c94affeb5a7a182ddbdaab37c197d7317c81 /sys
parent405d311106ed3581be66bf5c77ad35f16a1bf38e (diff)
kmssink: Add NV24 support
This was tested on RK3566 platform, using vendor DRM driver. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2530>
Diffstat (limited to 'sys')
-rw-r--r--sys/kms/gstkmsutils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/kms/gstkmsutils.c b/sys/kms/gstkmsutils.c
index 1dd19eefc..cb06d4096 100644
--- a/sys/kms/gstkmsutils.c
+++ b/sys/kms/gstkmsutils.c
@@ -70,6 +70,7 @@ static const struct
DEF_FMT (NV12, NV12),
DEF_FMT (NV21, NV21),
DEF_FMT (NV16, NV16),
+ DEF_FMT (NV24, NV24),
#undef DEF_FMT
};
@@ -113,6 +114,7 @@ gst_drm_bpp_from_drm (guint32 drmfmt)
case DRM_FORMAT_NV12:
case DRM_FORMAT_NV21:
case DRM_FORMAT_NV16:
+ case DRM_FORMAT_NV24:
bpp = 8;
break;
case DRM_FORMAT_P010:
@@ -154,6 +156,9 @@ gst_drm_height_from_drm (guint32 drmfmt, guint32 height)
case DRM_FORMAT_NV16:
ret = height * 2;
break;
+ case DRM_FORMAT_NV24:
+ ret = height * 3;
+ break;
default:
ret = height;
break;