vkvideoutils: add video capabilities structure

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4850>
This commit is contained in:
Víctor Manuel Jáquez Leal 2023-06-23 17:50:16 +02:00 committed by GStreamer Marge Bot
parent 8023e3c19a
commit bf7a01f3fd
2 changed files with 21 additions and 0 deletions

View file

@ -47,6 +47,26 @@ struct _GstVulkanVideoProfile
gpointer _reserved[GST_PADDING];
};
/**
* GstVulkanVideoCapabilities:
*
* Since: 1.24
*/
struct _GstVulkanVideoCapabilities
{
/*< private >*/
#if GST_VULKAN_HAVE_VIDEO_EXTENSIONS
VkVideoCapabilitiesKHR caps;
union
{
VkBaseInStructure base;
VkVideoDecodeH264CapabilitiesKHR h264dec;
VkVideoDecodeH265CapabilitiesKHR h265dec;
} codec;
#endif
gpointer _reserved[GST_PADDING];
};
GST_VULKAN_API
GstCaps * gst_vulkan_video_profile_to_caps (const GstVulkanVideoProfile * profile);
GST_VULKAN_API

View file

@ -113,6 +113,7 @@ typedef struct _GstVulkanFullScreenQuadPrivate GstVulkanFullScreenQuadPrivate;
typedef struct _GstVulkanQueueFamilyOps GstVulkanQueueFamilyOps;
typedef struct _GstVulkanVideoProfile GstVulkanVideoProfile;
typedef struct _GstVulkanVideoCapabilities GstVulkanVideoCapabilities;
typedef struct _GstVulkanOperation GstVulkanOperation;
typedef struct _GstVulkanOperationClass GstVulkanOperationClass;