fi.helsinki.cs.ohtu.mpeg2.video
Enum SequenceHeader.FrameRateCode

java.lang.Object
  extended by java.lang.Enum<SequenceHeader.FrameRateCode>
      extended by fi.helsinki.cs.ohtu.mpeg2.video.SequenceHeader.FrameRateCode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SequenceHeader.FrameRateCode>
Enclosing class:
SequenceHeader

public static enum SequenceHeader.FrameRateCode
extends java.lang.Enum<SequenceHeader.FrameRateCode>

Represents the allowed values for the frame rate code field.


Enum Constant Summary
RATE_23_976
          24 000 frames per 1001 seconds (~23.976 fps)
RATE_24
          24 frames per second
RATE_25
          25 frames per second
RATE_29_97
          30 000 frames per 1001 seconds (~29.97 fps)
RATE_30
          30 frames per second
RATE_50
          50 frames per second
RATE_59_94
          60 000 frames per 1001 seconds (~59.94 fps)
RATE_60
          60 frames per second
 
Field Summary
private  UnsignedIntegerField field
           
 
Method Summary
static SequenceHeader.FrameRateCode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SequenceHeader.FrameRateCode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 void writeTo(BitOutputStream stream)
           
 
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

RATE_23_976

public static final SequenceHeader.FrameRateCode RATE_23_976
24 000 frames per 1001 seconds (~23.976 fps)


RATE_24

public static final SequenceHeader.FrameRateCode RATE_24
24 frames per second


RATE_25

public static final SequenceHeader.FrameRateCode RATE_25
25 frames per second


RATE_29_97

public static final SequenceHeader.FrameRateCode RATE_29_97
30 000 frames per 1001 seconds (~29.97 fps)


RATE_30

public static final SequenceHeader.FrameRateCode RATE_30
30 frames per second


RATE_50

public static final SequenceHeader.FrameRateCode RATE_50
50 frames per second


RATE_59_94

public static final SequenceHeader.FrameRateCode RATE_59_94
60 000 frames per 1001 seconds (~59.94 fps)


RATE_60

public static final SequenceHeader.FrameRateCode RATE_60
60 frames per second

Field Detail

field

private UnsignedIntegerField field
Method Detail

values

public static SequenceHeader.FrameRateCode[] 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 (SequenceHeader.FrameRateCode c : SequenceHeader.FrameRateCode.values())
    System.out.println(c);

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

valueOf

public static SequenceHeader.FrameRateCode 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

writeTo

public void writeTo(BitOutputStream stream)
             throws java.io.IOException
Throws:
java.io.IOException