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

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

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

Represents the allowed values for the aspect ratio information field.


Enum Constant Summary
DISPLAY_1_2_21
          Display aspect ratio (DAR) of 1 / 2.21
DISPLAY_3_4
          Display aspect ratio (DAR) of 3 / 4
DISPLAY_9_16
          Display aspect ratio (DAR) of 9 / 16
SAMPLE_SQUARE
          Sample aspect ratio (SAR) of 1.0
 
Field Summary
private  UnsignedIntegerField field
           
 
Method Summary
static SequenceHeader.AspectRatioInformation valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SequenceHeader.AspectRatioInformation[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 void writeTo(BitOutputStream stream)
          Writes the value to a bit 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

SAMPLE_SQUARE

public static final SequenceHeader.AspectRatioInformation SAMPLE_SQUARE
Sample aspect ratio (SAR) of 1.0


DISPLAY_3_4

public static final SequenceHeader.AspectRatioInformation DISPLAY_3_4
Display aspect ratio (DAR) of 3 / 4


DISPLAY_9_16

public static final SequenceHeader.AspectRatioInformation DISPLAY_9_16
Display aspect ratio (DAR) of 9 / 16


DISPLAY_1_2_21

public static final SequenceHeader.AspectRatioInformation DISPLAY_1_2_21
Display aspect ratio (DAR) of 1 / 2.21

Field Detail

field

private UnsignedIntegerField field
Method Detail

values

public static SequenceHeader.AspectRatioInformation[] 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.AspectRatioInformation c : SequenceHeader.AspectRatioInformation.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.AspectRatioInformation 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
Writes the value to a bit stream.

Parameters:
stream - The stream to write to.
Throws:
java.io.IOException - Propagated from the stream write.