org.gstreamer
Class ClockID
java.lang.Object
org.gstreamer.lowlevel.NativeValue
org.gstreamer.lowlevel.Handle
org.gstreamer.lowlevel.NativeObject
org.gstreamer.lowlevel.RefCountedObject
org.gstreamer.ClockID
- All Implemented Interfaces:
- java.lang.Comparable<ClockID>
public class ClockID
- extends RefCountedObject
- implements java.lang.Comparable<ClockID>
A datatype to hold the handle to an outstanding sync or async clock callback.
Methods inherited from class org.gstreamer.lowlevel.NativeObject |
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, invalidate, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectFor, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
ClockID
public ClockID(NativeObject.Initializer init)
disposeNativeHandle
protected void disposeNativeHandle(com.sun.jna.Pointer ptr)
- Specified by:
disposeNativeHandle
in class NativeObject
ref
protected void ref()
- Specified by:
ref
in class RefCountedObject
unref
protected void unref()
- Specified by:
unref
in class RefCountedObject
unschedule
public void unschedule()
- Cancel an outstanding request. This can either
be an outstanding async notification or a pending sync notification.
After this call, @id cannot be used anymore to receive sync or
async notifications, you need to create a new #GstClockID.
getTime
public ClockTime getTime()
- Gets the time of the clock ID
Thread safe.
- Returns:
- The time of this clock id.
compareTo
public int compareTo(ClockID other)
- Compares this ClockID to another.
- Specified by:
compareTo
in interface java.lang.Comparable<ClockID>
- Parameters:
other
- The other ClockID to compare to
- Returns:
- negative value if a < b; zero if a = b; positive value if a > b