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) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
VideoInfo self() nothrowReturns `this`, for use in `with` statements.
gstvideo.video_format_info.VideoFormatInfo finfo() @property nothrowGet `finfo` field. Returns: the format info of the video
gstvideo.types.VideoInterlaceMode interlaceMode() @property nothrowGet `interlaceMode` field. Returns: the interlace mode
void interlaceMode(gstvideo.types.VideoInterlaceMode propval) @property nothrowSet `interlaceMode` field. Params: propval = the interlace mode
gstvideo.types.VideoFlags flags() @property nothrowGet `flags` field. Returns: additional video flags
void flags(gstvideo.types.VideoFlags propval) @property nothrowSet `flags` field. Params: propval = additional video flags
int width() @property nothrowGet `width` field. Returns: the width of the video
void width(int propval) @property nothrowSet `width` field. Params: propval = the width of the video
int height() @property nothrowGet `height` field. Returns: the height of the video
void height(int propval) @property nothrowSet `height` field. Params: propval = the height of the video
size_t size() @property nothrowGet `size` field. Returns: the default size of one frame
void size(size_t propval) @property nothrowSet `size` field. Params: propval = the default size of one frame
int views() @property nothrowGet `views` field. Returns: the number of views for multiview video
void views(int propval) @property nothrowSet `views` field. Params: propval = the number of views for multiview video
gstvideo.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 info
void colorimetry(gstvideo.video_colorimetry.VideoColorimetry propval) @property nothrowSet `colorimetry` field. Params: propval = the colorimetry info
int parN() @property nothrowGet `parN` field. Returns: the pixel-aspect-ratio numerator
void parN(int propval) @property nothrowSet `parN` field. Params: propval = the pixel-aspect-ratio numerator
int parD() @property nothrowGet `parD` field. Returns: the pixel-aspect-ratio denominator
void parD(int propval) @property nothrowSet `parD` field. Params: propval = the pixel-aspect-ratio denominator
int fpsN() @property nothrowGet `fpsN` field. Returns: the framerate numerator
void fpsN(int propval) @property nothrowSet `fpsN` field. Params: propval = the framerate numerator
int fpsD() @property nothrowGet `fpsD` field. Returns: the framerate denominator
void fpsD(int propval) @property nothrowSet `fpsD` field. Params: propval = the framerate denominator
gstvideo.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 not
bool 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.
Constructors
this(void * ptr, Flag!"Take" take)
this()Allocate a new #GstVideoInfo that is also initialized with [gstvideo.video_info.VideoInfo.init_]. Returns: a new #GstVideoInfo. free with [gstvideo.video_info.VideoInfo.free].