#include <gstreamermm/videoframe.h>
◆ VideoFrame() [1/2]
Gst::VideoFrame::VideoFrame |
( |
| ) |
|
◆ VideoFrame() [2/2]
Gst::VideoFrame::VideoFrame |
( |
const GstVideoFrame * |
gobject | ) |
|
|
explicit |
◆ copy()
Copy the contents from src to dest.
- Parameters
-
- Returns
true
if the contents could be copied.
◆ copy_plane()
Copy the plane with index plane from src to dest.
- Parameters
-
- Returns
true
if the contents could be copied.
◆ get_buffer()
Glib::RefPtr<Gst::Buffer> Gst::VideoFrame::get_buffer |
( |
| ) |
const |
◆ get_flags()
◆ get_id()
gint Gst::VideoFrame::get_id |
( |
| ) |
const |
◆ get_info()
◆ get_meta()
gpointer Gst::VideoFrame::get_meta |
( |
| ) |
const |
◆ gobj() [1/2]
GstVideoFrame* Gst::VideoFrame::gobj |
( |
| ) |
|
|
inline |
Provides access to the underlying C instance.
◆ gobj() [2/2]
const GstVideoFrame* Gst::VideoFrame::gobj |
( |
| ) |
const |
|
inline |
Provides access to the underlying C instance.
◆ map()
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 Gst::VideoFrame structure allocated on the stack; 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.
[C example ellipted]
All video planes of buffer will be mapped and the pointers will be set in frame->data.
The purpose of this function is to make it easy for you to get to the video pixels in a generic way, without you having to worry too much about details such as whether the video data is allocated in one contiguous memory chunk or multiple memory chunks (e.g. one for each plane); or if custom strides and custom plane offsets are used or not (as signalled by GstVideoMeta on each buffer). This function will just fill the Gst::VideoFrame structure with the right values and if you use the accessor macros everything will just work and you can access the data easily. It also maps the underlying memory chunks for you.
- Parameters
-
- Returns
true
on success.
◆ map_id()
Use info and buffer to fill in the values of frame with the video frame information of frame id.
When id is -1, the default frame is mapped. When id != -1, this function will return false
when there is no GstVideoMeta with that id.
All video planes of buffer will be mapped and the pointers will be set in frame->data.
- Parameters
-
- Returns
true
on success.
◆ set_buffer()
void Gst::VideoFrame::set_buffer |
( |
const Glib::RefPtr< Gst::Buffer >& |
value | ) |
|
◆ set_flags()
◆ set_id()
void Gst::VideoFrame::set_id |
( |
const gint & |
value | ) |
|
◆ set_info()
◆ set_meta()
void Gst::VideoFrame::set_meta |
( |
const gpointer & |
value | ) |
|
◆ unmap()
void Gst::VideoFrame::unmap |
( |
| ) |
|
Unmap the memory previously mapped with gst_video_frame_map.
◆ gobject_
GstVideoFrame Gst::VideoFrame::gobject_ |
|
protected |