gstvideo.video_info
Module for [VideoInfo] class
class VideoInfo
Types 1
classVideoInfo : gobject.boxed.Boxed
Information describing image properties. This information can be filled in from GstCaps with gstvideo.video_info.VideoInfo.fromCaps. The information is also used to store the specific video info when mapping a video frame with gstvideo.video_frame.VideoFrame.map.
Use the provided macros to access the info in this structure.
Methods
gstvideo.video_format_info.VideoFormatInfo finfo() @property nothrowGet `finfo` field. Returns: the format info of the videogstvideo.types.VideoInterlaceMode interlaceMode() @property nothrowGet `interlaceMode` field. Returns: the interlace modevoid interlaceMode(gstvideo.types.VideoInterlaceMode propval) @property nothrowSet `interlaceMode` field. Params: propval = the interlace modegstvideo.types.VideoFlags flags() @property nothrowGet `flags` field. Returns: additional video flagsvoid flags(gstvideo.types.VideoFlags propval) @property nothrowSet `flags` field. Params: propval = additional video flagsvoid width(int propval) @property nothrowSet `width` field. Params: propval = the width of the videovoid height(int propval) @property nothrowSet `height` field. Params: propval = the height of the videovoid size(size_t propval) @property nothrowSet `size` field. Params: propval = the default size of one framevoid views(int propval) @property nothrowSet `views` field. Params: propval = the number of views for multiview videogstvideo.types.VideoChromaSite chromaSite() @property nothrowGet `chromaSite` field. Returns: a #GstVideoChromaSite.void chromaSite(gstvideo.types.VideoChromaSite propval) @property nothrowSet `chromaSite` field. Params: propval = a #GstVideoChromaSite.gstvideo.video_colorimetry.VideoColorimetry colorimetry() @property nothrowGet `colorimetry` field. Returns: the colorimetry infovoid colorimetry(gstvideo.video_colorimetry.VideoColorimetry propval) @property nothrowSet `colorimetry` field. Params: propval = the colorimetry infovoid parN(int propval) @property nothrowSet `parN` field. Params: propval = the pixel-aspect-ratio numeratorvoid parD(int propval) @property nothrowSet `parD` field. Params: propval = the pixel-aspect-ratio denominatorvoid fpsD(int propval) @property nothrowSet `fpsD` field. Params: propval = the framerate denominatorgstvideo.video_info.VideoInfo newFromCaps(gst.caps.Caps caps) static nothrowParse caps to generate a #GstVideoInfo.bool align_(gstvideo.video_alignment.VideoAlignment align_) nothrowAdjust the offset and stride fields in info so that the padding and stride alignment in align is respected.bool alignFull(gstvideo.video_alignment.VideoAlignment align_, out size_t planeSize) nothrowExtra padding will be added to the right side when stride alignment padding is required and align will be updated with the new padding values.bool convert(gst.types.Format srcFormat, long srcValue, gst.types.Format destFormat, out long destValue) nothrowConverts among various #GstFormat types. This function handles GST_FORMAT_BYTES, GST_FORMAT_TIME, and GST_FORMAT_DEFAULT. For raw video, GST_FORMAT_DEFAULT corresponds to video frames. This func...gstvideo.video_info.VideoInfo copy() nothrowCopy a GstVideoInfo structure. Returns: a new #GstVideoInfo. free with gst_video_info_free.bool isEqual(gstvideo.video_info.VideoInfo other) nothrowCompares two #GstVideoInfo and returns whether they are equal or notbool setFormat(gstvideo.types.VideoFormat format, uint width, uint height) nothrowSet the default info for a video frame of format and width and height.bool setInterlacedFormat(gstvideo.types.VideoFormat format, gstvideo.types.VideoInterlaceMode mode, uint width, uint height) nothrowSame as #gst_video_info_set_format but also allowing to set the interlaced mode.gst.caps.Caps toCaps() nothrowConvert the values of info into a #GstCaps. Returns: a new #GstCaps containing the info of info.bool fromCaps(out gstvideo.video_info.VideoInfo info, gst.caps.Caps caps) static nothrowParse caps and update info.void init_(out gstvideo.video_info.VideoInfo info) static nothrowInitialize info with default values.