gstvideo.video_format_info
Module for [VideoFormatInfo] class
class VideoFormatInfo
Types 1
classVideoFormatInfo
Information for a video format.
Fields
GstVideoFormatInfo _cInstanceMethods
void * _cPtr() nothrowvoid format(gstvideo.types.VideoFormat propval) @property nothrowSet `format` field. Params: propval = #GstVideoFormatvoid name(string propval) @property nothrowSet `name` field. Params: propval = string representation of the formatstring description() @property nothrowGet `description` field. Returns: use readable description of the formatvoid description(string propval) @property nothrowSet `description` field. Params: propval = use readable description of the formatgstvideo.types.VideoFormatFlags flags() @property nothrowGet `flags` field. Returns: #GstVideoFormatFlagsvoid flags(gstvideo.types.VideoFormatFlags propval) @property nothrowSet `flags` field. Params: propval = #GstVideoFormatFlagsuint bits() @property nothrowGet `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) @property nothrowSet `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() @property nothrowGet `nComponents` field. Returns: the number of components in the video format.void nComponents(uint propval) @property nothrowSet `nComponents` field. Params: propval = the number of components in the video format.uint nPlanes() @property nothrowGet `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) @property nothrowSet `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() @property nothrowGet `unpackFormat` field. Returns: the format of the unpacked pixels. This format must have the #GST_VIDEO_FORMAT_FLAG_UNPACK flag set.void unpackFormat(gstvideo.types.VideoFormat propval) @property nothrowSet `unpackFormat` field. Params: propval = the format of the unpacked pixels. This format must have the #GST_VIDEO_FORMAT_FLAG_UNPACK flag set.int packLines() @property nothrowGet `packLines` field. Returns: the amount of lines that will be packedvoid packLines(int propval) @property nothrowSet `packLines` field. Params: propval = the amount of lines that will be packedgstvideo.types.VideoTileMode tileMode() @property nothrowGet `tileMode` field. Returns: The tiling modevoid tileMode(gstvideo.types.VideoTileMode propval) @property nothrowSet `tileMode` field. Params: propval = The tiling modeuint tileWs() @property nothrowGet `tileWs` field. Returns: The width of a tile, in bytes, represented as a shift. DEPRECATED, use tile_info[] array instead.void tileWs(uint propval) @property nothrowSet `tileWs` field. Params: propval = The width of a tile, in bytes, represented as a shift. DEPRECATED, use tile_info[] array instead.uint tileHs() @property nothrowGet `tileHs` field. Returns: The height of a tile, in bytes, represented as a shift. DEPREACTED, use tile_info[] array instead.void tileHs(uint propval) @property nothrowSet `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) nothrowFill 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) nothrowExtrapolate plane stride from the first stride of an image. This helper is useful to support legacy API were only one stride is supported.