Vulkan Utils

Functions

gst_vulkan_create_shader

GstVulkanHandle *
gst_vulkan_create_shader (GstVulkanDevice * device,
                          const gchar * code,
                          gsize size,
                          GError ** error)

Parameters:

device

a GstVulkanDevice

code

the SPIR-V shader byte code

size

length of code. Must be a multiple of 4

error ( [out][optional])

a GError to fill on failure

Returns ( [transfer: full])

a GstVulkanHandle for image matching the original layout and format of image or NULL

Since : 1.18


gst_vulkan_ensure_element_data

gboolean
gst_vulkan_ensure_element_data (GstElement * element,
                                GstVulkanDisplay ** display_ptr,
                                GstVulkanInstance ** instance_ptr)

Perform the steps necessary for retrieving a GstVulkanInstance and (optionally) an GstVulkanDisplay from the surrounding elements or from the application using the GstContext mechanism.

If the contents of display_ptr or instance_ptr are not NULL, then no GstContext query is necessary and no GstVulkanInstance or GstVulkanDisplay retrieval is performed.

Parameters:

element

a GstElement

display_ptr ( [inout][optional])

the resulting GstVulkanDisplay

instance_ptr ( [inout])

the resulting GstVulkanInstance

Returns

whether a GstVulkanInstance exists in instance_ptr and if display_ptr is not NULL, whether a GstVulkanDisplay exists in display_ptr

Since : 1.18


gst_vulkan_ensure_element_device

gboolean
gst_vulkan_ensure_element_device (GstElement * element,
                                  GstVulkanInstance * instance,
                                  GstVulkanDevice ** device_ptr,
                                  guint device_id)

Perform the steps necessary for retrieving a GstVulkanDevice from the surrounding elements or create a new device according to the device_id.

If the contents of device_ptr is not NULL, then no GstContext query is necessary and no GstVulkanDevice retrieval is performed.

Parameters:

element

a GstElement

instance

the GstVulkanInstance

device_ptr ( [inout][optional])

the resulting GstVulkanDevice

device_id

The device number to use, 0 is default.

Returns

whether a GstVulkanDevice exists in device_ptr

Since : 1.26


gst_vulkan_get_or_create_image_view

GstVulkanImageView *
gst_vulkan_get_or_create_image_view (GstVulkanImageMemory * image)

Parameters:

image

a GstVulkanImageMemory

Returns ( [transfer: full])

a GstVulkanImageView for image matching the original layout and format of image

Since : 1.18


gst_vulkan_get_or_create_image_view_with_info

GstVulkanImageView *
gst_vulkan_get_or_create_image_view_with_info (GstVulkanImageMemory * image,
                                               const VkImageViewCreateInfo* create_info)

Create a new GstVulkanImageView with a specific create_info.

Parameters:

image

a GstVulkanImageMemory

create_info ( [nullable])

a VkImageViewCreateInfo

Returns ( [transfer: full])

a GstVulkanImageView for image matching the original layout and format of image

Since : 1.24


gst_vulkan_global_context_query

gst_vulkan_global_context_query (GstElement * element,
                                 const gchar * context_type)

Performs the steps necessary for executing a context query including posting a message for the application to respond.

Parameters:

element

a GstElement

context_type

the context type to query for

Since : 1.18


gst_vulkan_local_context_query

GstQuery *
gst_vulkan_local_context_query (GstElement * element,
                                const gchar * context_type)

Performs the steps necessary for executing a context query between only other elements in the pipeline

Parameters:

element

a GstElement

context_type

the context type to query for

Returns
No description available

Since : 1.18


gst_vulkan_run_query

gboolean
gst_vulkan_run_query (GstElement * element,
                      GstQuery * query,
                      GstPadDirection direction)

Parameters:

element

a GstElement

query

the GstQuery to perform

direction

the GstPadDirection to perform query on

Returns

whether query was answered successfully

Since : 1.18


The results of the search are