org.jnetstream.capture
Enum CaptureDevice.TimestampResolution

java.lang.Object
  extended by java.lang.Enum<CaptureDevice.TimestampResolution>
      extended by org.jnetstream.capture.CaptureDevice.TimestampResolution
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CaptureDevice.TimestampResolution>
Enclosing interface:
CaptureDevice

public static enum CaptureDevice.TimestampResolution
extends java.lang.Enum<CaptureDevice.TimestampResolution>

Specified the maximum supported timestamp resolution of the capture device. Since all timestamps are always recorded with NanoSecond precision even when the capturing device is only capable of MicroSecond precision, this constant provides the actual capability of the device, regardless of the precision recorded.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Enum Constant Summary
MicroSecond
          Timestamp has microsecond resolution
MilliSecond
          Timestamp has milli second resolution
NanoSecond
          Timestamp has nanosecond resolution
 
Method Summary
static CaptureDevice.TimestampResolution valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CaptureDevice.TimestampResolution[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MicroSecond

public static final CaptureDevice.TimestampResolution MicroSecond
Timestamp has microsecond resolution


MilliSecond

public static final CaptureDevice.TimestampResolution MilliSecond
Timestamp has milli second resolution


NanoSecond

public static final CaptureDevice.TimestampResolution NanoSecond
Timestamp has nanosecond resolution

Method Detail

values

public static final CaptureDevice.TimestampResolution[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(CaptureDevice.TimestampResolution c : CaptureDevice.TimestampResolution.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static CaptureDevice.TimestampResolution valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name