vulkanoverlaycompositor: also support RGBA vulkan images

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4184>
This commit is contained in:
Matthew Waters 2023-03-10 17:37:46 +11:00
parent 84e08a377b
commit ba81f3597d
2 changed files with 3 additions and 3 deletions

View file

@ -235927,12 +235927,12 @@
"long-name": "Vulkan Overlay Compositor", "long-name": "Vulkan Overlay Compositor",
"pad-templates": { "pad-templates": {
"sink": { "sink": {
"caps": "video/x-raw(memory:VulkanImage, meta:GstVideoOverlayComposition):\n format: { BGRA }\n width: [ 1, 2147483647 ]\n height: [ 1, 2147483647 ]\n framerate: [ 0/1, 2147483647/1 ]\n\nvideo/x-raw(memory:VulkanImage):\n format: { BGRA }\n width: [ 1, 2147483647 ]\n height: [ 1, 2147483647 ]\n framerate: [ 0/1, 2147483647/1 ]\n\nvideo/x-raw(ANY):\n format: { BGRA }\n width: [ 1, 2147483647 ]\n height: [ 1, 2147483647 ]\n framerate: [ 0/1, 2147483647/1 ]\n", "caps": "video/x-raw(memory:VulkanImage, meta:GstVideoOverlayComposition):\n format: { BGRA, RGBA }\n width: [ 1, 2147483647 ]\n height: [ 1, 2147483647 ]\n framerate: [ 0/1, 2147483647/1 ]\n\nvideo/x-raw(memory:VulkanImage):\n format: { BGRA, RGBA }\n width: [ 1, 2147483647 ]\n height: [ 1, 2147483647 ]\n framerate: [ 0/1, 2147483647/1 ]\n\nvideo/x-raw(ANY):\n format: { BGRA, RGBA }\n width: [ 1, 2147483647 ]\n height: [ 1, 2147483647 ]\n framerate: [ 0/1, 2147483647/1 ]\n",
"direction": "sink", "direction": "sink",
"presence": "always" "presence": "always"
}, },
"src": { "src": {
"caps": "video/x-raw(memory:VulkanImage, meta:GstVideoOverlayComposition):\n format: { BGRA }\n width: [ 1, 2147483647 ]\n height: [ 1, 2147483647 ]\n framerate: [ 0/1, 2147483647/1 ]\n\nvideo/x-raw(memory:VulkanImage):\n format: { BGRA }\n width: [ 1, 2147483647 ]\n height: [ 1, 2147483647 ]\n framerate: [ 0/1, 2147483647/1 ]\n\nvideo/x-raw(ANY):\n format: { BGRA }\n width: [ 1, 2147483647 ]\n height: [ 1, 2147483647 ]\n framerate: [ 0/1, 2147483647/1 ]\n", "caps": "video/x-raw(memory:VulkanImage, meta:GstVideoOverlayComposition):\n format: { BGRA, RGBA }\n width: [ 1, 2147483647 ]\n height: [ 1, 2147483647 ]\n framerate: [ 0/1, 2147483647/1 ]\n\nvideo/x-raw(memory:VulkanImage):\n format: { BGRA, RGBA }\n width: [ 1, 2147483647 ]\n height: [ 1, 2147483647 ]\n framerate: [ 0/1, 2147483647/1 ]\n\nvideo/x-raw(ANY):\n format: { BGRA, RGBA }\n width: [ 1, 2147483647 ]\n height: [ 1, 2147483647 ]\n framerate: [ 0/1, 2147483647/1 ]\n",
"direction": "src", "direction": "src",
"presence": "always" "presence": "always"
} }

View file

@ -446,7 +446,7 @@ static GstFlowReturn
gst_vulkan_overlay_compositor_transform_ip (GstBaseTransform * bt, gst_vulkan_overlay_compositor_transform_ip (GstBaseTransform * bt,
GstBuffer * inbuf); GstBuffer * inbuf);
#define IMAGE_FORMATS " { BGRA }" #define IMAGE_FORMATS " { BGRA, RGBA }"
static GstStaticPadTemplate gst_vulkan_sink_template = static GstStaticPadTemplate gst_vulkan_sink_template =
GST_STATIC_PAD_TEMPLATE ("sink", GST_STATIC_PAD_TEMPLATE ("sink",