VideoInfoDmaDrm

Information describing a DMABuf image properties. It wraps #GstVideoInfo and adds DRM information such as drm-fourcc and drm-modifier, required for negotiation and mapping.

Constructors

this
this()

Allocate a new #GstVideoInfoDmaDrm that is also initialized with gstvideo.video_info_dma_drm.VideoInfoDmaDrm.init_.

Members

Functions

toCaps
gst.caps.Caps toCaps()

Convert the values of drm_info into a #GstCaps. Please note that the caps returned will be a dma drm caps which sets format field to DMA_DRM, and contains a new drm-format field. The value of drm-format field is composed of a drm fourcc and a modifier, such as NV12:0x0100000000000002.

toVideoInfo
bool toVideoInfo(gstvideo.video_info.VideoInfo info)

Convert the #GstVideoInfoDmaDrm into a traditional #GstVideoInfo with recognized video format. For DMA kind memory, the non linear DMA format should be recognized as #GST_VIDEO_FORMAT_DMA_DRM. This helper function sets info's video format into the default value according to drm_info's drm_fourcc field.

Static functions

fromCaps
bool fromCaps(gstvideo.video_info_dma_drm.VideoInfoDmaDrm drmInfo, gst.caps.Caps caps)

Parse caps and update info. Please note that the caps should be a dma drm caps. The gstvideo.global.videoIsDmaDrmCaps can be used to verify it before calling this function.

fromVideoInfo
bool fromVideoInfo(gstvideo.video_info_dma_drm.VideoInfoDmaDrm drmInfo, gstvideo.video_info.VideoInfo info, ulong modifier)

Fills drm_info if info's format has a valid drm format and modifier is also valid

init_
void init_(gstvideo.video_info_dma_drm.VideoInfoDmaDrm drmInfo)

Initialize drm_info with default values.

newFromCaps
gstvideo.video_info_dma_drm.VideoInfoDmaDrm newFromCaps(gst.caps.Caps caps)

Parse caps to generate a #GstVideoInfoDmaDrm. Please note that the caps should be a dma drm caps. The gstvideo.global.videoIsDmaDrmCaps can be used to verify it before calling this function.

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.