GstVulkan.VulkanSwapper¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
- Inherited:
 
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
When enabled, scaling will respect original aspect ratio  | 
||
r/w  | 
The pixel aspect ratio of the device  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
cmd_pool  | 
r  | 
the   | 
|
device  | 
r  | 
||
parent  | 
r  | 
parent   | 
|
queue  | 
r  | 
the   | 
|
window  | 
r  | 
the   | 
Class Details¶
- class GstVulkan.VulkanSwapper(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
New in version 1.18.
- classmethod new(device, window)¶
 - Parameters:
 device (
GstVulkan.VulkanDevice) –window (
GstVulkan.VulkanWindow) –
- Return type:
 
- choose_queue(available_queue)¶
 - Parameters:
 available_queue (
GstVulkan.VulkanQueueorNone) – aGstVulkan.VulkanQueuechosen elsewhere- Raises:
 - Return type:
 
- get_supported_caps()¶
 - Raises:
 - Return type:
 
- get_surface_rectangles()¶
 - Returns:
 - input_image:
 The
GstVideo.VideoRectanglefor the configured caps modified for DAR.- surface_location:
 The
GstVideo.VideoRectanglefor where the output surface is located relative to its parent- display_rect:
 The
GstVideo.VideoRectanglefor where the input images are placed inside surface_location
- Return type:
 (input_image:
GstVideo.VideoRectangleorNone, surface_location:GstVideo.VideoRectangleorNone, display_rect:GstVideo.VideoRectangleorNone)
New in version 1.18.
- render_buffer(buffer)¶
 - Parameters:
 buffer (
Gst.Buffer) –- Raises:
 - Return type:
 
Property Details¶
- GstVulkan.VulkanSwapper.props.force_aspect_ratio¶
 - 
When enabled, scaling will respect original aspect ratio
 
- GstVulkan.VulkanSwapper.props.pixel_aspect_ratio¶
 - Name:
 pixel-aspect-ratio- Type:
 - Default Value:
 - Flags:
 
The pixel aspect ratio of the device