gstreamermm  0.10.10.2
Public Member Functions | Static Public Member Functions
Gst::QueryConvert Class Reference

A convert query object. More...

Inheritance diagram for Gst::QueryConvert:
Inheritance graph
[legend]
Collaboration diagram for Gst::QueryConvert:
Collaboration graph
[legend]

List of all members.

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) const
 Parse a convert query answer.
void parse (Format& dest_format, gint64& dest_value) const
 Parse the destination format and value of a convert query answer.
Format parse_src_format () const
 Parse the source format of a convert query answer, returning the format.
gint64 parse_src_value () const
 Parse the source value of a convert query answer returning, the value.
Format parse_dest_format () const
 Parse the destination format of a convert query answer, returning the format.
gint64 parse_dest_value () const
 Parse the destination value of a convert query answer, returning the value.

Static Public Member Functions

static Glib::RefPtr< Gst::Querycreate (Format src_format, gint64 value, Format dest_format)
 Constructs a new convert query object.

Detailed Description

A convert query object.

See create() for more details.


Constructor & Destructor Documentation

Gst::QueryConvert::QueryConvert ( GstQuery *  query) [explicit]

Member Function Documentation

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.

Parameters:
src_formatThe source Gst::Format for the new query.
valueThe value to convert.
dest_formatThe target Gst::Format.
Returns:
The new Gst::QueryConvert.
void Gst::QueryConvert::parse ( Format src_format,
gint64 &  src_value,
Format dest_format,
gint64 &  dest_value 
) const

Parse a convert query answer.

Use the other parse() methods for parsing individual values.

Parameters:
src_formatThe storage for the Gst::Format of the source value.
src_valueThe storage for the source value.
dest_formatThe storage for the Gst::Format of the destination. value.
dest_valueThe storage for the destination value.
void Gst::QueryConvert::parse ( Format dest_format,
gint64 &  dest_value 
) const

Parse the destination format and value of a convert query answer.

Parameters:
dest_formatThe storage for the Gst::Format of the destination value.
dest_valueThe storage for the destination value.

Parse the destination format of a convert query answer, returning the format.

Returns:
The Gst::Format of the destination value.

Parse the destination value of a convert query answer, returning the value.

Returns:
The destination value.

Parse the source format of a convert query answer, returning the format.

Returns:
The Gst::Format of the source value.

Parse the source value of a convert query answer returning, the value.

Returns:
The source 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.

Parameters:
src_formatThe source Gst::Format.
src_valueThe source value.
dest_formatThe destination Gst::Format.
dest_valueThe destination value.

The documentation for this class was generated from the following file: