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.

class VideoInfo : Boxed {}

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

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

Members

Functions

_cPtr
void* _cPtr(Flag!"Dup" dup)
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

self
VideoInfo self()

Returns this, for use in with statements.

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.

Properties

_gType
GType _gType [@property getter]
chromaSite
gstvideo.types.VideoChromaSite chromaSite [@property getter]

Get chromaSite field.

chromaSite
gstvideo.types.VideoChromaSite chromaSite [@property setter]

Set chromaSite field.

colorimetry
gstvideo.video_colorimetry.VideoColorimetry colorimetry [@property getter]

Get colorimetry field.

finfo
gstvideo.video_format_info.VideoFormatInfo finfo [@property getter]

Get finfo field.

flags
gstvideo.types.VideoFlags flags [@property getter]

Get flags field.

flags
gstvideo.types.VideoFlags flags [@property setter]

Set flags field.

fpsD
int fpsD [@property getter]

Get fpsD field.

fpsD
int fpsD [@property setter]

Set fpsD field.

fpsN
int fpsN [@property getter]

Get fpsN field.

fpsN
int fpsN [@property setter]

Set fpsN field.

height
int height [@property getter]

Get height field.

height
int height [@property setter]

Set height field.

interlaceMode
gstvideo.types.VideoInterlaceMode interlaceMode [@property getter]

Get interlaceMode field.

interlaceMode
gstvideo.types.VideoInterlaceMode interlaceMode [@property setter]

Set interlaceMode field.

parD
int parD [@property getter]

Get parD field.

parD
int parD [@property setter]

Set parD field.

parN
int parN [@property getter]

Get parN field.

parN
int parN [@property setter]

Set parN field.

size
size_t size [@property getter]

Get size field.

size
size_t size [@property setter]

Set size field.

views
int views [@property getter]

Get views field.

views
int views [@property setter]

Set views field.

width
int width [@property getter]

Get width field.

width
int width [@property setter]

Set width field.

Static functions

_getGType
GType _getGType()
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

_getGType
GType _getGType()

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.