gstreamermm
1.10.0
|
Information describing image properties. More...
#include <gstreamermm/videoinfo.h>
Public Member Functions | |
VideoInfo () | |
VideoInfo (const VideoInfo& other) | |
VideoInfo& | operator= (const VideoInfo& other) |
VideoInfo (GstVideoInfo* castitem, bool take_ownership) | |
This constructor allows to wrap both dynamic and static allocated GstVideoInfo object. More... | |
~VideoInfo () | |
GstVideoInfo* | gobj () |
const GstVideoInfo* | gobj () const |
void | init () |
Initialize info with default values. More... | |
void | set_format (Gst::VideoFormat format, guint width, guint height) |
Set the default info for a video frame of format and width and height. More... | |
bool | from_caps (const Glib::RefPtr< const Gst::Caps >& caps) |
Parse caps and update info. More... | |
Glib::RefPtr< Gst::Caps > | to_caps () const |
Convert the values of info into a Gst::Caps. More... | |
bool | convert (Gst::Format src_format, gint64 src_value, Gst::Format dest_format, gint64& dest_value) |
Converts among various Gst::Format types. More... | |
bool | is_equal (const Gst::VideoInfo& other) const |
Compares two Gst::VideoInfo and returns whether they are equal or not. More... | |
const VideoFormatInfo | get_finfo () const |
Gst::VideoInterlaceMode | get_interlace_mode () const |
void | set_interlace_mode (const Gst::VideoInterlaceMode& value) |
Gst::VideoFlags | get_flags () const |
void | set_flags (const Gst::VideoFlags& value) |
gint | get_width () const |
void | set_width (const gint& value) |
gint | get_height () const |
void | set_height (const gint& value) |
gsize | get_size () const |
void | set_size (const gsize& value) |
gint | get_views () const |
void | set_views (const gint& value) |
Gst::VideoChromaSite | get_chroma_site () const |
void | set_chroma_site (const Gst::VideoChromaSite& value) |
gint | get_par_n () const |
void | set_par_n (const gint& value) |
gint | get_par_d () const |
void | set_par_d (const gint& value) |
gint | get_fps_n () const |
void | set_fps_n (const gint& value) |
gint | get_fps_d () const |
void | set_fps_d (const gint& value) |
Gst::VideoMultiviewMode | get_multiview_mode () const |
void | set_multiview_mode (const Gst::VideoMultiviewMode& value) |
Gst::VideoMultiviewFlags | get_multiview_flags () const |
void | set_multiview_flags (const Gst::VideoMultiviewFlags& value) |
Information describing image properties.
This information can be filled in from Gst::Caps with from_caps(). The information is also used to store the specific video info when mapping a video frame with VideoFrame::map().
Last reviewed on 2016-09-14 (1.8.0).
Gst::VideoInfo::VideoInfo | ( | ) |
Gst::VideoInfo::VideoInfo | ( | const VideoInfo& | other | ) |
Gst::VideoInfo::VideoInfo | ( | GstVideoInfo * | castitem, |
bool | take_ownership | ||
) |
This constructor allows to wrap both dynamic and static allocated GstVideoInfo object.
If castitem is either static allocated or dynamic allocated, but will be freed somewhere else, take_ownership should be set to false. If take_ownership is set to true, castitem is freed in VideoInfo destructor.
Gst::VideoInfo::~VideoInfo | ( | ) |
bool Gst::VideoInfo::convert | ( | Gst::Format | src_format, |
gint64 | src_value, | ||
Gst::Format | dest_format, | ||
gint64 & | dest_value | ||
) |
Converts among various Gst::Format 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.
src_format | Gst::Format of the src_value. |
src_value | Value to convert. |
dest_format | Gst::Format of the dest_value. |
dest_value | Pointer to destination value. |
true
if the conversion was successful. bool Gst::VideoInfo::from_caps | ( | const Glib::RefPtr< const Gst::Caps >& | caps | ) |
Gst::VideoChromaSite Gst::VideoInfo::get_chroma_site | ( | ) | const |
const VideoFormatInfo Gst::VideoInfo::get_finfo | ( | ) | const |
Gst::VideoFlags Gst::VideoInfo::get_flags | ( | ) | const |
gint Gst::VideoInfo::get_fps_d | ( | ) | const |
gint Gst::VideoInfo::get_fps_n | ( | ) | const |
gint Gst::VideoInfo::get_height | ( | ) | const |
Gst::VideoInterlaceMode Gst::VideoInfo::get_interlace_mode | ( | ) | const |
Gst::VideoMultiviewFlags Gst::VideoInfo::get_multiview_flags | ( | ) | const |
Gst::VideoMultiviewMode Gst::VideoInfo::get_multiview_mode | ( | ) | const |
gint Gst::VideoInfo::get_par_d | ( | ) | const |
gint Gst::VideoInfo::get_par_n | ( | ) | const |
gsize Gst::VideoInfo::get_size | ( | ) | const |
gint Gst::VideoInfo::get_views | ( | ) | const |
gint Gst::VideoInfo::get_width | ( | ) | const |
|
inline |
|
inline |
void Gst::VideoInfo::init | ( | ) |
Initialize info with default values.
bool Gst::VideoInfo::is_equal | ( | const Gst::VideoInfo& | other | ) | const |
Compares two Gst::VideoInfo and returns whether they are equal or not.
other | A Gst::VideoInfo. |
true
if info and other are equal, else false
. void Gst::VideoInfo::set_chroma_site | ( | const Gst::VideoChromaSite& | value | ) |
void Gst::VideoInfo::set_flags | ( | const Gst::VideoFlags& | value | ) |
void Gst::VideoInfo::set_format | ( | Gst::VideoFormat | format, |
guint | width, | ||
guint | height | ||
) |
Set the default info for a video frame of format and width and height.
format | The format. |
width | A width. |
height | A height. |
void Gst::VideoInfo::set_fps_d | ( | const gint & | value | ) |
void Gst::VideoInfo::set_fps_n | ( | const gint & | value | ) |
void Gst::VideoInfo::set_height | ( | const gint & | value | ) |
void Gst::VideoInfo::set_interlace_mode | ( | const Gst::VideoInterlaceMode& | value | ) |
void Gst::VideoInfo::set_multiview_flags | ( | const Gst::VideoMultiviewFlags& | value | ) |
void Gst::VideoInfo::set_multiview_mode | ( | const Gst::VideoMultiviewMode& | value | ) |
void Gst::VideoInfo::set_par_d | ( | const gint & | value | ) |
void Gst::VideoInfo::set_par_n | ( | const gint & | value | ) |
void Gst::VideoInfo::set_size | ( | const gsize & | value | ) |
void Gst::VideoInfo::set_views | ( | const gint & | value | ) |
void Gst::VideoInfo::set_width | ( | const gint & | value | ) |