public class GstObject extends GObject
See upstream documentation at https://gstreamer.freedesktop.org/data/doc/gstreamer/stable/gstreamer/html/GstObject.html
GstObject provides a root for the object hierarchy tree filed in by the
GStreamer library. It is currently a thin wrapper on top of GObject
.
It is an abstract class that is not very usable on its own.
Modifier and Type | Class and Description |
---|---|
protected static class |
GstObject.Handle |
GObject.GCallback, GObject.GInterface
NativeObject.Initializer, NativeObject.TypeProvider, NativeObject.TypeRegistration<T extends NativeObject>
Modifier | Constructor and Description |
---|---|
protected |
GstObject(GstObject.Handle handle,
boolean needRef) |
protected |
GstObject(NativeObject.Initializer init)
Wraps an underlying C GstObject with a Java proxy
|
Modifier and Type | Method and Description |
---|---|
void |
addControlBinding(ControlBinding binding)
Attach a
ControlBinding to this object. |
ControlBinding |
getControlBinding(String propertyName)
Gets the corresponding
ControlBinding for the property. |
String |
getName()
Returns a copy of the name of this object.
|
GstObject |
getParent()
Returns this object's parent, if there is one.
|
boolean |
hasActiveControlBindings()
Check if this object has active controlled properties.
|
boolean |
removeControlBinding(ControlBinding binding)
Removes the corresponding
ControlBinding . |
void |
setControlBindingDisabled(String propertyName,
boolean disabled)
This function is used to disable the control bindings on a property for
some time, i.e.
|
void |
setControlBindingsDisabled(boolean disabled)
This function is used to disable all controlled properties of the object
for some time, i.e.
|
boolean |
setName(String name)
Sets the name of this object, or gives this object a guaranteed unique
name (if name is null).
|
long |
suggestNextSync()
Returns a suggestion for timestamps where buffers should be split to get
best controller results.
|
boolean |
syncValues(long timestamp)
Sets the properties of the object, according to the
ControlSource
that (maybe) handle them and for the given timestamp. |
String |
toString() |
addCallback, connect, connect, disconnect, dispose, emit, emit, get, getPropertyDefaultValue, getPropertyMaximumValue, getPropertyMinimumValue, getRefCount, getTypeName, invalidate, listPropertyNames, removeCallback, set
close, disown, equals, getPointer, getRawPointer, hashCode
protected GstObject(NativeObject.Initializer init)
init
- Initialization dataprotected GstObject(GstObject.Handle handle, boolean needRef)
public boolean setName(String name)
name
- new name of objectpublic String getName()
public GstObject getParent()
null
public long suggestNextSync()
ClockTime.NONE
if no
control-rate was set.public boolean syncValues(long timestamp)
ControlSource
that (maybe) handle them and for the given timestamp.
If this function fails, it is most likely the application developers fault. Most probably the control sources are not setup correctly.
timestamp
- the time that should be processedpublic boolean hasActiveControlBindings()
public void setControlBindingsDisabled(boolean disabled)
syncValues(long)
will do nothing.disabled
- whether to disable the controllers or notpublic void setControlBindingDisabled(String propertyName, boolean disabled)
syncValues(long)
will do nothing for the
property.propertyName
- property to disabledisabled
- whether to disable the controller or notpublic void addControlBinding(ControlBinding binding)
ControlBinding
to this object. If there was already a
binding for this property it will be replaced.binding
- the ControlBinding that should be usedIllegalStateException
- if the binding has not been setup for this
objectpublic ControlBinding getControlBinding(String propertyName)
ControlBinding
for the property.propertyName
- name of the propertypublic boolean removeControlBinding(ControlBinding binding)
ControlBinding
.binding
- the binding to removepublic String toString()
toString
in class NativeObject
Copyright © 2019 gstreamer-java. All rights reserved.