net.sf.jack4j
Enum JackPositionBit

java.lang.Object
  extended by java.lang.Enum<JackPositionBit>
      extended by net.sf.jack4j.JackPositionBit
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<JackPositionBit>

public enum JackPositionBit
extends java.lang.Enum<JackPositionBit>

Java version of Jack enum jack_position_bits_t.

Author:
repa

Enum Constant Summary
AUDIO_VIDEO_RATIO
           
BBT_FRAME_OFFSET
           
POSITION_BBT
           
POSITION_TIMECODE
           
VIDEO_FRAME_OFFSET
           
 
Method Summary
static java.util.EnumSet<JackPositionBit> decode(int value)
          Decodes int value as set of enum values.
static int encode(java.util.Set<JackPositionBit> flags)
          Encodes set of enum constants as int, by ORing their values together.
 int intValue()
          Returns integer value of native constant corresponding to this enum value.
protected abstract  int nativeIntValue()
           
static JackPositionBit valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static JackPositionBit[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

POSITION_BBT

public static final JackPositionBit POSITION_BBT

POSITION_TIMECODE

public static final JackPositionBit POSITION_TIMECODE

BBT_FRAME_OFFSET

public static final JackPositionBit BBT_FRAME_OFFSET

AUDIO_VIDEO_RATIO

public static final JackPositionBit AUDIO_VIDEO_RATIO

VIDEO_FRAME_OFFSET

public static final JackPositionBit VIDEO_FRAME_OFFSET
Method Detail

values

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

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

valueOf

public static JackPositionBit 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
java.lang.NullPointerException - if the argument is null

nativeIntValue

protected abstract int nativeIntValue()

intValue

public int intValue()
Returns integer value of native constant corresponding to this enum value.


encode

public static int encode(java.util.Set<JackPositionBit> flags)
Encodes set of enum constants as int, by ORing their values together.


decode

public static java.util.EnumSet<JackPositionBit> decode(int value)
Decodes int value as set of enum values.

The value must be a result of ORing values of native enum constants.

Throws:
java.lang.IllegalArgumentException - if the value contains unrecognized bits


Copyright © 2008 Ondrej Par. All Rights Reserved.