VideoInfo

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.

Constructors

this
this()

Allocate a new #GstVideoInfo that is also initialized with gstvideo.video_info.VideoInfo.init_.

Members

Functions

alignFull
bool alignFull(gstvideo.video_alignment.VideoAlignment align_, 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.

align_
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.

convert
bool convert(gst.types.Format srcFormat, long srcValue, gst.types.Format destFormat, 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 function can be used to handle pad queries of the type GST_QUERY_CONVERT.

copy
gstvideo.video_info.VideoInfo copy()

Copy a GstVideoInfo structure.

isEqual
bool isEqual(gstvideo.video_info.VideoInfo other)

Compares two #GstVideoInfo and returns whether they are equal or not

setFormat
bool setFormat(gstvideo.types.VideoFormat format, uint width, uint height)

Set the default info for a video frame of format and width and height.

setInterlacedFormat
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.

toCaps
gst.caps.Caps toCaps()

Convert the values of info into a #GstCaps.

Static functions

fromCaps
bool fromCaps(gstvideo.video_info.VideoInfo info, gst.caps.Caps caps)

Parse caps and update info.

init_
void init_(gstvideo.video_info.VideoInfo info)

Initialize info with default values.

newFromCaps
gstvideo.video_info.VideoInfo newFromCaps(gst.caps.Caps caps)

Parse caps to generate a #GstVideoInfo.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.