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.VulkanQueue
) –- Raises:
- Return type:
- get_supported_caps()¶
- Raises:
- Return type:
- get_surface_rectangles()¶
- Returns:
- input_image:
The
GstVideo.VideoRectangle
for the configured caps modified for DAR.- surface_location:
The
GstVideo.VideoRectangle
for where the output surface is located relative to its parent- display_rect:
The
GstVideo.VideoRectangle
for where the input images are placed inside surface_location
- Return type:
(input_image:
GstVideo.VideoRectangle
orNone
, surface_location:GstVideo.VideoRectangle
orNone
, display_rect:GstVideo.VideoRectangle
orNone
)
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