VideoFrame

A video frame obtained from gstvideo.video_frame.VideoFrame.map

Constructors

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

Members

Functions

cPtr
void* cPtr()
copy
bool copy(gstvideo.video_frame.VideoFrame src)

Copy the contents from src to dest.

copyPlane
bool copyPlane(gstvideo.video_frame.VideoFrame src, uint plane)

Copy the plane with index plane from src to dest.

unmap
void unmap()

Unmap the memory previously mapped with gst_video_frame_map.

Properties

buffer
gst.buffer.Buffer buffer [@property getter]

Get field buffer.

buffer
gst.buffer.Buffer buffer [@property setter]

Set field buffer.

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

Get field flags.

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

Set field flags.

id
int id [@property getter]

Get field id.

id
int id [@property setter]

Set field id.

info
gstvideo.video_info.VideoInfo info [@property getter]

Get field info.

Static functions

map
bool map(gstvideo.video_frame.VideoFrame frame, gstvideo.video_info.VideoInfo info, gst.buffer.Buffer buffer, gst.types.MapFlags flags)

Use info and buffer to fill in the values of frame. frame is usually allocated on the stack, and you will pass the address to the #GstVideoFrame structure allocated on the stack; gstvideo.video_frame.VideoFrame.map will then fill in the structures with the various video-specific information you need to access the pixels of the video buffer. You can then use accessor macros such as GST_VIDEO_FRAME_COMP_DATA(), GST_VIDEO_FRAME_PLANE_DATA(), GST_VIDEO_FRAME_COMP_STRIDE(), GST_VIDEO_FRAME_PLANE_STRIDE() etc. to get to the pixels.

mapId
bool mapId(gstvideo.video_frame.VideoFrame frame, gstvideo.video_info.VideoInfo info, gst.buffer.Buffer buffer, int id, gst.types.MapFlags flags)

Use info and buffer to fill in the values of frame with the video frame information of frame id.