gstreamermm 0.10.10.1
|
A formats query object. More...
Public Member Functions | |
QueryFormats (GstQuery* query) | |
void | set (const Glib::ArrayHandle< Format >& formats) |
Set the formats query result fields. | |
void | set (int n_formats, const Glib::ArrayHandle< Format >& formats) |
Set the formats query result fields using only n_formats from formats. | |
guint | parse_length () const |
Parse and return the number of formats in the formats query. | |
Format | parse (guint nth) const |
Parse the format query and return the nth format from it. | |
Static Public Member Functions | |
static Glib::RefPtr< Gst::Query > | create () |
Constructs a new query object for querying formats of the stream. |
A formats query object.
See create() for more details.
Gst::QueryFormats::QueryFormats | ( | GstQuery * | query | ) | [explicit] |
static Glib::RefPtr<Gst::Query> Gst::QueryFormats::create | ( | ) | [static] |
Constructs a new query object for querying formats of the stream.
Format Gst::QueryFormats::parse | ( | guint | nth | ) | const |
Parse the format query and return the nth format from it.
If the list contains less elements than nth, Gst::FORMAT_UNDEFINED will be returned.
nth | The index of the format to return. |
guint Gst::QueryFormats::parse_length | ( | ) | const |
Parse and return the number of formats in the formats query.
void Gst::QueryFormats::set | ( | int | n_formats, |
const Glib::ArrayHandle< Format >& | formats | ||
) |
Set the formats query result fields using only n_formats from formats.
The number of formats passed in the formats array must be greater than or equal to n_formats.
n_formats | The number of formats to set. |
formats | An array containing at least n_formats Gst::Format values. |
void Gst::QueryFormats::set | ( | const Glib::ArrayHandle< Format >& | formats | ) |
Set the formats query result fields.
All the formats in the array are used.
formats | An array containing Gst::Format values. |