|
void | reference () const |
| Increment the reference count for this object.
|
|
void | unreference () const |
| Decrement the reference count for this object.
|
|
GstContext* | gobj () |
| Provides access to the underlying C instance.
|
|
const GstContext* | gobj () const |
| Provides access to the underlying C instance.
|
|
GstContext* | gobj_copy () const |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
|
| Context ()=delete |
|
| Context (const Context&)=delete |
|
Context& | operator= (const Context&)=delete |
|
Glib::RefPtr< Gst::Context > | copy () const |
| Creates a copy of the context.
|
|
Glib::ustring | get_context_type () const |
| Get the type of context.
|
|
bool | has_context_type (const Glib::ustring& context_type) const |
| Checks if context has context_type.
|
|
bool | is_persistent () const |
| Check if context is persistent.
|
|
Gst::Structure | writable_structure () const |
| Get a writable version of the structure.
|
|
void | reference () const |
| Increment the reference count for this object.
|
|
void | unreference () const |
| Decrement the reference count for this object.
|
|
GstMiniObject* | gobj () |
| Provides access to the underlying C instance.
|
|
const GstMiniObject* | gobj () const |
| Provides access to the underlying C instance.
|
|
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.
|
|
| 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.
|
|
void | unlock (LockFlags flags) |
| Unlock the mini-object with the specified access mode in flags.
|
|
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.
|
|
Glib::RefPtr< MiniObject > | create_writable () |
| Checks if a mini-object is writable.
|
|
void | set_qdata (GQuark quark, QuarkData* data) |
| This sets an opaque, named pointer on a miniobject.
|
|
QuarkData* | get_qdata (GQuark quark) const |
| This function gets back user data pointers stored via set_qdata().
|
|
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).
|
|
void | add_finalize_notifier (const SlotFinalizer& slot) |
| Adds notifier when mini object is finalized.
|
|
void | remove_finalize_notifier () |
| Remove finalize notifier.
|
|
Lightweight objects to represent element contexts.
Gst::Context is a container object used to store contexts like a device context, a display server connection and similar concepts that should be shared between multiple elements.
Applications can set a context on a complete pipeline by using Gst::Element::set_context(), which will then be propagated to all child elements. Elements can handle these in Gst::Element::set_context_vfunc() and merge them with the context information they already have.
When an element needs a context it will do the following actions in this order until one step succeeds:
- Check if the element already has a context
- Query downstream with Gst::QUERY_CONTEXT for the context
- Query upstream with Gst::QUERY_CONTEXT for the context
- Post a Gst::MESSAGE_NEED_CONTEXT message on the bus with the required context types and afterwards check if a usable context was set now
- Create a context by itself and post a Gst::MESSAGE_HAVE_CONTEXT message on the bus.
Bins will catch Gst::MESSAGE_NEED_CONTEXT messages and will set any previously known context on the element that asks for it if possible. Otherwise the application should provide one if it can.
Last reviewed on 2016-05-16 (1.8.0)
Since: 1.2