org.gstreamer
Class ClockID

java.lang.Object
  extended by org.gstreamer.lowlevel.NativeValue
      extended by org.gstreamer.lowlevel.Handle
          extended by org.gstreamer.lowlevel.NativeObject
              extended by org.gstreamer.lowlevel.RefCountedObject
                  extended by org.gstreamer.ClockID
All Implemented Interfaces:
java.lang.Comparable<ClockID>

public class ClockID
extends org.gstreamer.lowlevel.RefCountedObject
implements java.lang.Comparable<ClockID>

A datatype to hold the handle to an outstanding sync or async clock callback.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.gstreamer.lowlevel.NativeObject
org.gstreamer.lowlevel.NativeObject.Initializer
 
Field Summary
 
Fields inherited from class org.gstreamer.lowlevel.NativeObject
defaultInit, LIFECYCLE, ownsHandle
 
Constructor Summary
ClockID(org.gstreamer.lowlevel.NativeObject.Initializer init)
           
 
Method Summary
 int compareTo(ClockID other)
          Compares this ClockID to another.
protected  void disposeNativeHandle(com.sun.jna.Pointer ptr)
           
 ClockTime getTime()
          Gets the time of the clock ID
protected  void ref()
           
protected  void unref()
           
 void unschedule()
          Cancel an outstanding request.
 
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, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClockID

public ClockID(org.gstreamer.lowlevel.NativeObject.Initializer init)
Method Detail

disposeNativeHandle

protected void disposeNativeHandle(com.sun.jna.Pointer ptr)
Specified by:
disposeNativeHandle in class org.gstreamer.lowlevel.NativeObject

ref

protected void ref()
Specified by:
ref in class org.gstreamer.lowlevel.RefCountedObject

unref

protected void unref()
Specified by:
unref in class org.gstreamer.lowlevel.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