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() @propertyGet `finfo` field. Returns: the format info of the videogstvideo.types.VideoInterlaceMode interlaceMode() @propertyGet `interlaceMode` field. Returns: the interlace modevoid interlaceMode(gstvideo.types.VideoInterlaceMode propval) @propertySet `interlaceMode` field. Params: propval = the interlace modevoid flags(gstvideo.types.VideoFlags propval) @propertySet `flags` field. Params: propval = additional video flagsvoid size(size_t propval) @propertySet `size` field. Params: propval = the default size of one framevoid views(int propval) @propertySet `views` field. Params: propval = the number of views for multiview videogstvideo.types.VideoChromaSite chromaSite() @propertyGet `chromaSite` field. Returns: a #GstVideoChromaSite.void chromaSite(gstvideo.types.VideoChromaSite propval) @propertySet `chromaSite` field. Params: propval = a #GstVideoChromaSite.gstvideo.video_colorimetry.VideoColorimetry colorimetry() @propertyGet `colorimetry` field. Returns: the colorimetry infovoid colorimetry(gstvideo.video_colorimetry.VideoColorimetry propval) @propertySet `colorimetry` field. Params: propval = the colorimetry infovoid parN(int propval) @propertySet `parN` field. Params: propval = the pixel-aspect-ratio numeratorvoid parD(int propval) @propertySet `parD` field. Params: propval = the pixel-aspect-ratio denominatorgstvideo.video_info.VideoInfo newFromCaps(gst.caps.Caps caps)Parse caps to generate a #GstVideoInfo.bool align_(gstvideo.video_alignment.VideoAlignment align_)Adjust 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)Extra 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)Converts 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()Copy a GstVideoInfo structure. Returns: a new #GstVideoInfo. free with gst_video_info_free.bool isEqual(gstvideo.video_info.VideoInfo other)Compares two #GstVideoInfo and returns whether they are equal or notbool setFormat(gstvideo.types.VideoFormat format, uint width, uint height)Set 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)Same as #gst_video_info_set_format but also allowing to set the interlaced mode.gst.caps.Caps toCaps()Convert 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)Parse caps and update info.void init_(out gstvideo.video_info.VideoInfo info)Initialize info with default values.