GstVulkanSwapper

GstVulkanSwapper is a helper object for rendering to a surface exposed by GstVulkanWindow.

GstVulkanSwapper

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstVulkanSwapper

Members

parent (GstObject) –

parent GstObject

device (GstVulkanDevice *) –

the GstVulkanDevice

window (GstVulkanWindow *) –

the GstVulkanWindow to display into

queue (GstVulkanQueue *) –

the GstVulkanQueue to display with

cmd_pool (GstVulkanCommandPool *) –

the GstVulkanCommandPool to allocate command buffers from

Since : 1.18


Class structure

GstVulkanSwapperClass

Fields
parent_class (GstObjectClass) –

parent GstObjectClass

Since : 1.18


Constructors

gst_vulkan_swapper_new

GstVulkanSwapper *
gst_vulkan_swapper_new (GstVulkanDevice * device,
                        GstVulkanWindow * window)

Parameters:

device
No description available
window
No description available
Returns
No description available

Methods

gst_vulkan_swapper_choose_queue

gboolean
gst_vulkan_swapper_choose_queue (GstVulkanSwapper * swapper,
                                 GstVulkanQueue * available_queue,
                                 GError ** error)

Parameters:

swapper

a GstVulkanSwapper

available_queue ( [transfer: none][nullable])

a GstVulkanQueue chosen elsewhere

error

a GError

Returns
No description available

gst_vulkan_swapper_get_supported_caps

GstCaps *
gst_vulkan_swapper_get_supported_caps (GstVulkanSwapper * swapper,
                                       GError ** error)

Parameters:

swapper
No description available
error
No description available
Returns
No description available

gst_vulkan_swapper_get_surface_rectangles

gst_vulkan_swapper_get_surface_rectangles (GstVulkanSwapper * swapper,
                                           GstVideoRectangle * input_image,
                                           GstVideoRectangle * surface_location,
                                           GstVideoRectangle * display_rect)

Parameters:

swapper

a GstVulkanSwapper

input_image ( [out][nullable])

The GstVideoRectangle for the configured caps modified for DAR.

surface_location ( [out][nullable])

The GstVideoRectangle for where the output surface is located relative to its parent

display_rect ( [out][nullable])

The GstVideoRectangle for where the input images are placed inside surface_location

Since : 1.18


gst_vulkan_swapper_render_buffer

gboolean
gst_vulkan_swapper_render_buffer (GstVulkanSwapper * swapper,
                                  GstBuffer * buffer,
                                  GError ** error)

Parameters:

swapper
No description available
buffer
No description available
error
No description available
Returns
No description available

gst_vulkan_swapper_set_caps

gboolean
gst_vulkan_swapper_set_caps (GstVulkanSwapper * swapper,
                             GstCaps * caps,
                             GError ** error)

Parameters:

swapper
No description available
caps
No description available
error
No description available
Returns
No description available

Properties

force-aspect-ratio

“force-aspect-ratio” gboolean

Flags : Read / Write


pixel-aspect-ratio

“pixel-aspect-ratio” GstFraction *

Flags : Read / Write


Constants

GST_VULKAN_SWAPPER_VIDEO_FORMATS

#define GST_VULKAN_SWAPPER_VIDEO_FORMATS " { RGBA, BGRA, RGB, BGR } "

Since : 1.18


The results of the search are