gstvideo.video_info

Module for [VideoInfo] class

class VideoInfo

Types 1

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
void * _cPtr(Flag!"Dup" dup = No.Dup)
GType _gType() @property
VideoInfo self()Returns `this`, for use in `with` statements.
gstvideo.video_format_info.VideoFormatInfo finfo() @propertyGet `finfo` field. Returns: the format info of the video
gstvideo.types.VideoInterlaceMode interlaceMode() @propertyGet `interlaceMode` field. Returns: the interlace mode
void interlaceMode(gstvideo.types.VideoInterlaceMode propval) @propertySet `interlaceMode` field. Params: propval = the interlace mode
gstvideo.types.VideoFlags flags() @propertyGet `flags` field. Returns: additional video flags
void flags(gstvideo.types.VideoFlags propval) @propertySet `flags` field. Params: propval = additional video flags
int width() @propertyGet `width` field. Returns: the width of the video
void width(int propval) @propertySet `width` field. Params: propval = the width of the video
int height() @propertyGet `height` field. Returns: the height of the video
void height(int propval) @propertySet `height` field. Params: propval = the height of the video
size_t size() @propertyGet `size` field. Returns: the default size of one frame
void size(size_t propval) @propertySet `size` field. Params: propval = the default size of one frame
int views() @propertyGet `views` field. Returns: the number of views for multiview video
void views(int propval) @propertySet `views` field. Params: propval = the number of views for multiview video
gstvideo.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 info
void colorimetry(gstvideo.video_colorimetry.VideoColorimetry propval) @propertySet `colorimetry` field. Params: propval = the colorimetry info
int parN() @propertyGet `parN` field. Returns: the pixel-aspect-ratio numerator
void parN(int propval) @propertySet `parN` field. Params: propval = the pixel-aspect-ratio numerator
int parD() @propertyGet `parD` field. Returns: the pixel-aspect-ratio denominator
void parD(int propval) @propertySet `parD` field. Params: propval = the pixel-aspect-ratio denominator
int fpsN() @propertyGet `fpsN` field. Returns: the framerate numerator
void fpsN(int propval) @propertySet `fpsN` field. Params: propval = the framerate numerator
int fpsD() @propertyGet `fpsD` field. Returns: the framerate denominator
void fpsD(int propval) @propertySet `fpsD` field. Params: propval = the framerate denominator
gstvideo.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 GSTFORMATBYTES, GSTFORMATTIME, and GSTFORMATDEFAULT. For raw video, GSTFORMATDEFAULT corresponds to video frames. This function can...
gstvideo.video_info.VideoInfo copy()Copy a GstVideoInfo structure. Returns: a new #GstVideoInfo. free with gstvideoinfo_free.
bool isEqual(gstvideo.video_info.VideoInfo other)Compares two #GstVideoInfo and returns whether they are equal or not
bool 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 #gstvideoinfosetformat 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.
Constructors
this(void * ptr, Flag!"Take" take)
this()Allocate a new #GstVideoInfo that is also initialized with [gstvideo.videoinfo.VideoInfo.init]. Returns: a new #GstVideoInfo. free with [gstvideo.video_info.VideoInfo.free].