gstvideo.video_format_info

Module for [VideoFormatInfo] class

Types 1

Information for a video format.

Fields
Methods
void * _cPtr()
gstvideo.types.VideoFormat format() @propertyGet `format` field. Returns: #GstVideoFormat
void format(gstvideo.types.VideoFormat propval) @propertySet `format` field. Params: propval = #GstVideoFormat
string name() @propertyGet `name` field. Returns: string representation of the format
void name(string propval) @propertySet `name` field. Params: propval = string representation of the format
string description() @propertyGet `description` field. Returns: use readable description of the format
void description(string propval) @propertySet `description` field. Params: propval = use readable description of the format
gstvideo.types.VideoFormatFlags flags() @propertyGet `flags` field. Returns: #GstVideoFormatFlags
void flags(gstvideo.types.VideoFormatFlags propval) @propertySet `flags` field. Params: propval = #GstVideoFormatFlags
uint bits() @propertyGet `bits` field. Returns: 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 t...
void bits(uint propval) @propertySet `bits` field. Params: propval = 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 accor...
uint nComponents() @propertyGet `nComponents` field. Returns: the number of components in the video format.
void nComponents(uint propval) @propertySet `nComponents` field. Params: propval = the number of components in the video format.
uint nPlanes() @propertyGet `nPlanes` field. Returns: 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.
void nPlanes(uint propval) @propertySet `nPlanes` field. Params: propval = 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.
gstvideo.types.VideoFormat unpackFormat() @propertyGet `unpackFormat` field. Returns: the format of the unpacked pixels. This format must have the #GSTVIDEOFORMATFLAGUNPACK flag set.
void unpackFormat(gstvideo.types.VideoFormat propval) @propertySet `unpackFormat` field. Params: propval = the format of the unpacked pixels. This format must have the #GSTVIDEOFORMATFLAGUNPACK flag set.
int packLines() @propertyGet `packLines` field. Returns: the amount of lines that will be packed
void packLines(int propval) @propertySet `packLines` field. Params: propval = the amount of lines that will be packed
gstvideo.types.VideoTileMode tileMode() @propertyGet `tileMode` field. Returns: The tiling mode
void tileMode(gstvideo.types.VideoTileMode propval) @propertySet `tileMode` field. Params: propval = The tiling mode
uint tileWs() @propertyGet `tileWs` field. Returns: The width of a tile, in bytes, represented as a shift. DEPRECATED, use tile_info[] array instead.
void tileWs(uint propval) @propertySet `tileWs` field. Params: propval = The width of a tile, in bytes, represented as a shift. DEPRECATED, use tile_info[] array instead.
uint tileHs() @propertyGet `tileHs` field. Returns: The height of a tile, in bytes, represented as a shift. DEPREACTED, use tile_info[] array instead.
void tileHs(uint propval) @propertySet `tileHs` field. Params: propval = The height of a tile, in bytes, represented as a shift. DEPREACTED, use tile_info[] array instead.
void component(uint plane, out int components)Fill components with the number of all the components packed in plane p for the format info. A value of -1 in components indicates that no more components are packed in the plane.
int extrapolateStride(int plane, int stride)Extrapolate plane stride from the first stride of an image. This helper is useful to support legacy API were only one stride is supported.
Constructors
this(void * ptr, Flag!"Take" take)