gstreamermm
0.10.11
|
A stream duration query object. More...
Public Member Functions | |
QueryDuration (GstQuery* query) | |
void | set (Format format, gint64 duration) |
Answer a duration query by setting the requested value in the given format. | |
void | parse (Format& format, gint64& duration) const |
Parse a duration query answer. | |
gint64 | parse () const |
Parse a duration query answer, returning the duration. | |
Format | parse_format () const |
Parse a duration query answer, returning the format of the duration. | |
Static Public Member Functions | |
static Glib::RefPtr < Gst::QueryDuration > | create (Format format) |
Constructs a new stream duration query object to query in the given format. |
A stream duration query object.
See create() for more details.
Gst::QueryDuration::QueryDuration | ( | GstQuery * | query | ) | [explicit] |
static Glib::RefPtr<Gst::QueryDuration> Gst::QueryDuration::create | ( | Format | format | ) | [static] |
Constructs a new stream duration query object to query in the given format.
A duration query will give the total length of the stream.
format | The Gst::Format for this duration query. |
void Gst::QueryDuration::parse | ( | Format& | format, |
gint64 & | duration | ||
) | const |
Parse a duration query answer.
Write the format of the duration into format, and the value into duration. Use the other parse() methods for parsing individual values.
format | The storage for the Gst::Format of the duration value. |
duration | The storage for the total duration. |
gint64 Gst::QueryDuration::parse | ( | ) | const |
Parse a duration query answer, returning the duration.
Format Gst::QueryDuration::parse_format | ( | ) | const |
Parse a duration query answer, returning the format of the duration.
void Gst::QueryDuration::set | ( | Format | format, |
gint64 | duration | ||
) |
Answer a duration query by setting the requested value in the given format.
format | The Gst::Format for the duration. |
duration | The duration of the stream. |