gstreamermm
1.0.10
|
A new buffering query object. More...
Public Member Functions | |
void | set (bool busy, int percent) |
Set the percentage of buffered data. More... | |
void | parse (bool& busy, int& percent) const |
Get the busy flag and percentage of the buffered data. More... | |
bool | parse_busy () const |
Get the busy flag of the buffered data. More... | |
int | parse_percent () const |
Get the percentage of the buffered data. More... | |
void | set (BufferingMode mode, int avg_in, int avg_out, gint64 buffering_left) |
Configures the buffering stats values in query. More... | |
void | parse (BufferingMode& mode, int& avg_in, int& avg_out, gint64 buffering_left) const |
Extracts the buffering stats values from the query. More... | |
BufferingMode | parse_mode () const |
Extracts the buffering mode from the query. More... | |
int | parse_input_rate () const |
Extracts the average input rate from the query. More... | |
int | parse_output_rate () const |
Extracts the average output rate from the query. More... | |
gint64 | parse_time_left () const |
Extracts the buffering time left from the query. More... | |
void | set (Format format, gint64 start, gint64 stop, gint64 estimated_total) |
Set the available query result fields in query. More... | |
void | parse (Format& format, gint64& start, gint64& stop, gint64& estimated_total) const |
Parse the query, writing the format into format, and other results into the passed parameters. More... | |
Format | parse_format () const |
Parse the query, returning the format. More... | |
gint64 | parse_start () const |
Parse the query, returning the start range value. More... | |
gint64 | parse_stop () const |
Parse the query, returning the stop range value. More... | |
gint64 | parse_total_time () const |
Parse the query, returning the estimated total amount of download time. More... | |
![]() | |
void | reference () const |
Increment the reference count for this object. More... | |
void | unreference () const |
Decrement the reference count for this object. More... | |
GstQuery* | gobj () |
Provides access to the underlying C instance. More... | |
const GstQuery* | gobj () const |
Provides access to the underlying C instance. More... | |
GstQuery* | gobj_copy () const |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More... | |
Glib::RefPtr< Gst::Query > | create_writable () |
Makes a writable query from the given query. More... | |
Gst::Structure | get_structure () const |
Get the structure of a query. More... | |
QueryType | get_query_type () const |
Get the Gst::QueryType of the query. More... | |
void | set_caps_result (Glib::RefPtr< Gst::Caps > caps) |
Set the caps result in query. More... | |
void | set_accept_caps_result (bool res) |
Set result as the result for the query. More... | |
![]() | |
void | reference () const |
Increment the reference count for this object. More... | |
void | unreference () const |
Decrement the reference count for this object. More... | |
GstMiniObject* | gobj () |
Provides access to the underlying C instance. More... | |
const GstMiniObject* | gobj () const |
Provides access to the underlying C instance. More... | |
GstMiniObject* | gobj_copy () const |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More... | |
~MiniObject () | |
guint | get_flags () const |
void | set_flags (const guint& value) |
bool | lock (LockFlags flags) |
Lock the mini-object with the specified access mode in flags. More... | |
void | unlock (LockFlags flags) |
Unlock the mini-object with the specified access mode in flags. More... | |
bool | is_writable () const |
If mini_object has the LOCKABLE flag set, check if the current EXCLUSIVE lock on object is the only one, this means that changes to the object will not be visible to any other object. More... | |
Glib::RefPtr< MiniObject > | create_writable () |
Checks if a mini-object is writable. More... | |
Static Public Member Functions | |
static Glib::RefPtr < Gst::QueryBuffering > | create (Format format) |
Constructs a new query object for querying the buffering status of a stream. More... | |
![]() | |
static Glib::RefPtr< Gst::Query > | create_buffering (Gst::Format format) |
Constructs a new query object for querying the buffering status of a stream. More... | |
static Glib::RefPtr< Gst::Query > | create_allocation (Glib::RefPtr< Gst::Caps > caps, bool need_pool) |
Constructs a new query object for querying the allocation properties. More... | |
static Glib::RefPtr< Gst::Query > | create_uri () |
Constructs a new query URI query object. More... | |
static Glib::RefPtr< Gst::Query > | create_scheduling () |
Constructs a new query object for querying the scheduling properties. More... | |
static Glib::RefPtr< Gst::Query > | create_drain () |
Constructs a new query object for querying the drain state. More... | |
static Glib::RefPtr< Gst::Query > | create_convert (Gst::Format format, gint64 value, Gst::Format dest_format) |
Constructs a new convert query object. More... | |
static Glib::RefPtr< Gst::Query > | create_position (Gst::Format format) |
Constructs a new query stream position query object. More... | |
static Glib::RefPtr< Gst::Query > | create_duration (Gst::Format format) |
Constructs a new stream duration query object to query in the given format. More... | |
static Glib::RefPtr< Gst::Query > | create_latency () |
Constructs a new latency query object. More... | |
static Glib::RefPtr< Gst::Query > | create_seeking (Gst::Format format) |
Constructs a new query object for querying seeking properties of the stream. More... | |
static Glib::RefPtr< Gst::Query > | create_formats () |
Constructs a new query object for querying formats of the stream. More... | |
static Glib::RefPtr< Gst::Query > | create_segment (Gst::Format format) |
Constructs a new segment query object. More... | |
static Glib::RefPtr< Gst::Query > | create_caps (Glib::RefPtr< Gst::Caps > filter) |
Constructs a new query object for querying the caps. More... | |
static Glib::RefPtr< Gst::Query > | create_accept_caps (Glib::RefPtr< Gst::Caps > filter) |
Constructs a new query object for querying if caps are accepted. More... | |
Additional Inherited Members | |
![]() | |
Query () | |
void | operator delete (void*, std::size_t) |
![]() | |
MiniObject () | |
void | operator delete (void*, std::size_t) |
![]() | |
template<class QueryType > | |
static Glib::RefPtr< QueryType > | wrap (GstQuery* query, bool take_copy=false) |
![]() | |
Glib::RefPtr< Gst::Query > | wrap (GstQuery* object, bool take_copy=false) |
A Glib::wrap() method for this object. More... | |
![]() | |
Glib::RefPtr< Gst::MiniObject > | wrap (GstMiniObject* object, bool take_copy=false) |
A Glib::wrap() method for this object. More... | |
A new buffering query object.
See create() for more details.
|
static |
Constructs a new query object for querying the buffering status of a stream.
format | The default Gst::Format for the new query. |
void Gst::QueryBuffering::parse | ( | bool & | busy, |
int & | percent | ||
) | const |
Get the busy flag and percentage of the buffered data.
The percent is a value between 0 and 100. The busy indicator is true when the buffering is in progress. Use the other parse() methods to parse individual values.
busy | The location to store the buffering busy flag. |
percent | The location to store the buffering percent. |
void Gst::QueryBuffering::parse | ( | BufferingMode& | mode, |
int & | avg_in, | ||
int & | avg_out, | ||
gint64 | buffering_left | ||
) | const |
Extracts the buffering stats values from the query.
Use the other parse() methods to parse individual values.
mode | The location to store the buffering mode. |
avg_in | The location to store the average input rate. |
avg_out | The location to store the average output rate. |
buffering_left | The location to store the amount of buffering time left. |
void Gst::QueryBuffering::parse | ( | Format& | format, |
gint64 & | start, | ||
gint64 & | stop, | ||
gint64 & | estimated_total | ||
) | const |
Parse the query, writing the format into format, and other results into the passed parameters.
Use the other parse() methods to parse individual values.
format | The location to store the format. |
start | The location to store the start. |
stop | The location to store the stop. |
estimated_total | The location to store the estimated total amount of download time. |
bool Gst::QueryBuffering::parse_busy | ( | ) | const |
Get the busy flag of the buffered data.
The busy indicator is true when the buffering is in progress.
Format Gst::QueryBuffering::parse_format | ( | ) | const |
Parse the query, returning the format.
int Gst::QueryBuffering::parse_input_rate | ( | ) | const |
Extracts the average input rate from the query.
BufferingMode Gst::QueryBuffering::parse_mode | ( | ) | const |
Extracts the buffering mode from the query.
int Gst::QueryBuffering::parse_output_rate | ( | ) | const |
Extracts the average output rate from the query.
int Gst::QueryBuffering::parse_percent | ( | ) | const |
Get the percentage of the buffered data.
The percent is a value between 0 and 100.
gint64 Gst::QueryBuffering::parse_start | ( | ) | const |
Parse the query, returning the start range value.
gint64 Gst::QueryBuffering::parse_stop | ( | ) | const |
Parse the query, returning the stop range value.
gint64 Gst::QueryBuffering::parse_time_left | ( | ) | const |
Extracts the buffering time left from the query.
gint64 Gst::QueryBuffering::parse_total_time | ( | ) | const |
Parse the query, returning the estimated total amount of download time.
void Gst::QueryBuffering::set | ( | bool | busy, |
int | percent | ||
) |
Set the percentage of buffered data.
This is a value between 0 and 100. The busy indicator is true when the buffering is in progress.
busy | If buffering is busy. |
percent | A buffering percent. |
void Gst::QueryBuffering::set | ( | BufferingMode | mode, |
int | avg_in, | ||
int | avg_out, | ||
gint64 | buffering_left | ||
) |
Configures the buffering stats values in query.
mode | A buffering mode. |
avg_in | The average input rate. |
avg_out | The average output rate. |
buffering_left | Amount of buffering time left. |
void Gst::QueryBuffering::set | ( | Format | format, |
gint64 | start, | ||
gint64 | stop, | ||
gint64 | estimated_total | ||
) |
Set the available query result fields in query.
format | The format to set for the start and stop values. |
start | The start to set. |
stop | The stop to set. |
estimated_total | Estimated total amount of download time. |