|
void | set (double rate, Format format, gint64 start_value, gint64 stop_value) |
| Answer a segment query by setting the requested values. More...
|
|
void | parse (double& rate, Format& format, gint64& start_value, gint64& stop_value) const |
| Parse a segment query answer. More...
|
|
double | parse_rate () const |
| Parse a segment query answer, returning the rate. More...
|
|
Format | parse_format () const |
| Parse a segment query answer, returning the format. More...
|
|
gint64 | parse_start () const |
| Parse a segment query answer, returning the start value. More...
|
|
gint64 | parse_stop () const |
| Parse a segment query answer, returning the stop value. 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...
|
|
| Query ()=delete |
|
| Query (const Query&)=delete |
|
Query& | operator= (const Query&)=delete |
|
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...
|
|
Glib::RefPtr< Gst::Query > | copy () |
| Copies the given query using the copy function of the parent Gst::Structure. 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 ()=delete |
|
| MiniObject (const MiniObject&)=delete |
|
MiniObject& | operator= (const MiniObject&)=delete |
|
| ~MiniObject () |
|
guint | get_flags () const |
|
void | set_flags (const guint& value) |
|
gint | get_refcount () const |
|
gint | get_lockstate () const |
|
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...
|
|
void | set_qdata (GQuark quark, QuarkData* data) |
| This sets an opaque, named pointer on a miniobject. More...
|
|
QuarkData* | get_qdata (GQuark quark) const |
| This function gets back user data pointers stored via set_qdata(). More...
|
|
QuarkData* | steal_qdata (GQuark quark) |
| This function gets back user data pointers stored via set_qdata() and removes the data from object without invoking its destroy() function (if any was set). More...
|
|
void | add_finalize_notifier (const SlotFinalizer& slot) |
| Adds notifier when mini object is finalized. More...
|
|
void | remove_finalize_notifier () |
| Remove finalize notifier. More...
|
|
A new segment query object.
See create() for more details.
void Gst::QuerySegment::set |
( |
double |
rate, |
|
|
Format |
format, |
|
|
gint64 |
start_value, |
|
|
gint64 |
stop_value |
|
) |
| |
Answer a segment query by setting the requested values.
The normal playback segment of a pipeline is 0 to duration at the default rate of 1.0. If a seek was performed on the pipeline to play a different segment, this query will return the range specified in the last seek.
start_value and stop_value will respectively contain the configured playback range start and stop values expressed in format. The values are always between 0 and the duration of the media and start_value <= stop_value. rate will contain the playback rate. For negative rates, playback will actually happen from stop_value to start_value.
- Parameters
-
rate | The rate of the segment. |
format | The Gst::Format of the segment values (start_value and stop_value). |
start_value | The start value. |
stop_value | The stop value. |