Browse Source

linux-pipewire: Add NV12 support

List it in addition to YUV formats.

Co-authored-by: Georges Basile Stavracas Neto
<[email protected]>
Wim Taymans 3 years ago
parent
commit
7f765cdb4c
1 changed files with 9 additions and 0 deletions
  1. 9 0
      plugins/linux-pipewire/pipewire.c

+ 9 - 0
plugins/linux-pipewire/pipewire.c

@@ -313,6 +313,15 @@ static const struct format_data supported_formats[] = {
 		2,
 		"YUYV422",
 	},
+	{
+		SPA_VIDEO_FORMAT_NV12,
+		DRM_FORMAT_NV12,
+		GS_UNKNOWN,
+		VIDEO_FORMAT_NV12,
+		false,
+		2,
+		"NV12",
+	},
 #if PW_CHECK_VERSION(0, 3, 41)
 	{
 		SPA_VIDEO_FORMAT_ABGR_210LE,