public abstract class MiniObject extends RefCountedObject
See upstream documentation at https://gstreamer.freedesktop.org/data/doc/gstreamer/stable/gstreamer/html/gstreamer-GstMiniObject.html
MiniObject is a simple structure that can be used to implement refcounted types.
NativeObject.Initializer, NativeObject.TypeProvider, NativeObject.TypeRegistration<T extends NativeObject>
Modifier | Constructor and Description |
---|---|
protected |
MiniObject(org.freedesktop.gstreamer.MiniObject.Handle handle,
boolean needRef) |
protected |
MiniObject(NativeObject.Initializer init)
Creates a new instance of MiniObject
|
Modifier and Type | Method and Description |
---|---|
<T extends MiniObject> |
copy()
Create a new MiniObject as a copy of the this instance.
|
int |
getRefCount() |
boolean |
isWritable()
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.
|
protected <T extends MiniObject> |
makeWritable()
Makes a writable instance of this MiniObject.
|
close, disown, dispose, equals, getPointer, getRawPointer, hashCode, invalidate, toString
protected MiniObject(NativeObject.Initializer init)
protected MiniObject(org.freedesktop.gstreamer.MiniObject.Handle handle, boolean needRef)
public boolean isWritable()
If the LOCKABLE flag is not set, check if the refcount of mini_object is exactly 1, meaning that no other reference exists to the object and that the object is therefore writable.
Modification of a mini-object should only be done after verifying that it is writable.
protected <T extends MiniObject> T makeWritable()
The result is cast to subclass.
public <T extends MiniObject> T copy()
public int getRefCount()
Copyright © 2019 gstreamer-java. All rights reserved.