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

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.

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

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

Get field chromaSite.

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

Set field chromaSite.

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

Get field colorimetry.

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

Get field finfo.

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

Get field flags.

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

Set field flags.

fpsD
int fpsD [@property getter]

Get field fpsD.

fpsD
int fpsD [@property setter]

Set field fpsD.

fpsN
int fpsN [@property getter]

Get field fpsN.

fpsN
int fpsN [@property setter]

Set field fpsN.

gType
GType gType [@property getter]
height
int height [@property getter]

Get field height.

height
int height [@property setter]

Set field height.

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

Get field interlaceMode.

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

Set field interlaceMode.

parD
int parD [@property getter]

Get field parD.

parD
int parD [@property setter]

Set field parD.

parN
int parN [@property getter]

Get field parN.

parN
int parN [@property setter]

Set field parN.

size
size_t size [@property getter]

Get field size.

size
size_t size [@property setter]

Set field size.

views
int views [@property getter]

Get field views.

views
int views [@property setter]

Set field views.

width
int width [@property getter]

Get field width.

width
int width [@property setter]

Set field width.

Static functions

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

Parse caps and update info.

getGType
GType getGType()
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.