GstVulkan.VulkanFormatInfo

Fields

Name

Type

Access

Description

aspect

Vulkan.ImageAspectFlags

r/w

image aspect of this format

bits

int

r/w

The number of bits used to pack data items. This can be less than 8 when multiple pixels are stored in a byte. for values > 8 multiple bytes should be read according to the endianness flag before applying the shift and mask. n_components; number of components in this format

depth

bytes

r/w

the depth in bits for each component

flags

GstVulkan.VulkanFormatFlags

r/w

flags that apply to this format

format

Vulkan.Format

r/w

the Vulkan format being described

h_sub

bytes

r/w

subsampling factor of the height for the component. Use GST_VIDEO_SUB_SCALE to scale a height.

n_components

int

r/w

n_planes

int

r/w

the number of planes for this format. The number of planes can be less than the amount of components when multiple components are packed into one plane.

name

str

r/w

name of this format

pixel_stride

[int]

r/w

plane

bytes

r/w

the plane number where a component can be found

poffset

bytes

r/w

the offset in the plane where the first pixel of the components can be found.

scaling

GstVulkan.VulkanFormatScaling

r/w

how raw data is interpreted and scaled

shift

bytes

r/w

the number of bits to shift away to get the component data

w_sub

bytes

r/w

subsampling factor of the width for the component. Use GST_VIDEO_SUB_SCALE to scale a width.

Methods

None

Details

class GstVulkan.VulkanFormatInfo

New in version 1.18.