Package ch.bailu.gtk.gst
Klasse Context
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gst.Context
- Alle implementierten Schnittstellen:
PointerInterface
#GstContext 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 #GstElementClass::set_context
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:
1. Check if the element already has a context
2. Query downstream with %GST_QUERY_CONTEXT for the context
3. Query upstream with %GST_QUERY_CONTEXT for the context
4. 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
5. 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.
#GstContext can be persistent.
A persistent #GstContext is kept in elements when they reach
%GST_STATE_NULL, non-persistent ones will be removed.
Also, a non-persistent context won't override a previous persistent
context set to an element.
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 #GstElementClass::set_context
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:
1. Check if the element already has a context
2. Query downstream with %GST_QUERY_CONTEXT for the context
3. Query upstream with %GST_QUERY_CONTEXT for the context
4. 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
5. 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.
#GstContext can be persistent.
A persistent #GstContext is kept in elements when they reach
%GST_STATE_NULL, non-persistent ones will be removed.
Also, a non-persistent context won't override a previous persistent
context set to an element.
https://gstreamer.freedesktop.org/documentation/gstreamer/gi-index.html
-
Feldübersicht
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ClassHandler
Gets the type of @context.static int
static long
static TypeSystem.TypeSize
Accesses the structure of the context.static long
static TypeSystem.TypeSize
boolean
hasContextType
(Str context_type) Checks if @context has @context_type.boolean
hasContextType
(String context_type) Checks if @context has @context_type.boolean
Checks if @context is persistent.Gets a writable version of the structure.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
Context
-
Context
Creates a new context.- Parameter:
context_type
- Context typepersistent
- Persistent context
-
Context
Creates a new context.- Parameter:
context_type
- Context typepersistent
- Persistent context
-
-
Methodendetails
-
getClassHandler
-
getContextType
Gets the type of @context.- Gibt zurück:
- The type of the context.
-
getStructure
Accesses the structure of the context.- Gibt zurück:
- The structure of the context. The structure is still owned by the context, which means that you should not modify it, free it and that the pointer becomes invalid when you free the context.
-
hasContextType
Checks if @context has @context_type.- Parameter:
context_type
- Context type to check.- Gibt zurück:
- %TRUE if @context has @context_type.
-
hasContextType
Checks if @context has @context_type.- Parameter:
context_type
- Context type to check.- Gibt zurück:
- %TRUE if @context has @context_type.
-
isPersistent
public boolean isPersistent()Checks if @context is persistent.- Gibt zurück:
- %TRUE if the context is persistent.
-
writableStructure
Gets a writable version of the structure.- Gibt zurück:
- The structure of the context. The structure is still owned by the context, which means that you should not free it and that the pointer becomes invalid when you free the context. This function checks if @context is writable.
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-