#include <query.h>
Public Member Functions | |
QueryConvert (GstQuery* query) | |
void | set (Format src_format, gint64 src_value, Format dest_format, gint64 dest_value) |
Answer a convert query by setting the requested values. | |
void | parse (Format& src_format, gint64& src_value, Format& dest_format, gint64& dest_value) |
Parse a convert query answer. | |
void | parse (Format& dest_format, gint64& dest_value) |
Parse the destination format and value of a convert query answer. | |
Format | parse_src_format () |
Parse the source format of a convert query answer, returning the format. | |
gint64 | parse_src_value () |
Parse the source value of a convert query answer returning, the value. | |
Format | parse_dest_format () |
Parse the destination format of a convert query answer, returning the format. | |
gint64 | parse_dest_value () |
Parse the destination value of a convert query answer, returning the value. | |
Static Public Member Functions | |
static Glib::RefPtr<Gst::Query> | create (Format src_format, gint64 value, Format dest_format) |
Constructs a new convert query object. |
See create() for more details.
Gst::QueryConvert::QueryConvert | ( | GstQuery * | query | ) | [explicit] |
static Glib::RefPtr<Gst::Query> Gst::QueryConvert::create | ( | Format | src_format, | |
gint64 | value, | |||
Format | dest_format | |||
) | [static] |
Constructs a new convert query object.
A convert query is used to ask for a conversion between one format and another.
src_format | The source Gst::Format for the new query. | |
value | The value to convert. | |
dest_format | The target Gst::Format. |
void Gst::QueryConvert::parse | ( | Format& | dest_format, | |
gint64 & | dest_value | |||
) |
Parse the destination format and value of a convert query answer.
dest_format | The storage for the Gst::Format of the destination value. | |
dest_value | The storage for the destination value. |
void Gst::QueryConvert::parse | ( | Format& | src_format, | |
gint64 & | src_value, | |||
Format& | dest_format, | |||
gint64 & | dest_value | |||
) |
Parse a convert query answer.
Use the other parse() methods for parsing individual values.
src_format | The storage for the Gst::Format of the source value. | |
src_value | The storage for the source value. | |
dest_format | The storage for the Gst::Format of the destination. value. | |
dest_value | The storage for the destination value. |
Format Gst::QueryConvert::parse_dest_format | ( | ) |
Parse the destination format of a convert query answer, returning the format.
gint64 Gst::QueryConvert::parse_dest_value | ( | ) |
Parse the destination value of a convert query answer, returning the value.
Format Gst::QueryConvert::parse_src_format | ( | ) |
Parse the source format of a convert query answer, returning the format.
gint64 Gst::QueryConvert::parse_src_value | ( | ) |
void Gst::QueryConvert::set | ( | Format | src_format, | |
gint64 | src_value, | |||
Format | dest_format, | |||
gint64 | dest_value | |||
) |
Answer a convert query by setting the requested values.
src_format | The source Gst::Format. | |
src_value | The source value. | |
dest_format | The destination Gst::Format. | |
dest_value | The destination value. |