fi.helsinki.cs.ohtu.mpeg2.video
Enum ExtensionHeaderIdentifier

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

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

Identifies an MPEG extension header. Many headers in MPEG-2 are syntactically defined in terms of MPEG-1 extension headers. This enum identifies the types of these headers.


Enum Constant Summary
CAMERA_PARAMETERS
          Camera parameters extension header.
COPYRIGHT
          Copyright extension header.
ITU_T
          ITU-T extension header.
PICTURE_CODING
          Picture coding extension header.
PICTURE_DISPLAY
          Picture display extension header.
PICTURE_SPATIAL_SCALABILITY
          Picture spatial scalability extension header.
PICTURE_TEMPORAL_SCALABILITY
          Picture temporal scalability extension header.
QUANTIZATION_MATRIX
          Quantization matrix extension header.
SEQUENCE
          Sequence extension header.
SEQUENCE_DISPLAY
          Sequence display extension header.
SEQUENCE_SCALABILITY
          Sequence scalability extension header.
 
Field Summary
private  int encodedValue
           
 
Method Summary
static ExtensionHeaderIdentifier valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ExtensionHeaderIdentifier[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 void writeTo(BitOutputStream stream)
          Writes the identifier 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

SEQUENCE

public static final ExtensionHeaderIdentifier SEQUENCE
Sequence extension header.


SEQUENCE_DISPLAY

public static final ExtensionHeaderIdentifier SEQUENCE_DISPLAY
Sequence display extension header.


QUANTIZATION_MATRIX

public static final ExtensionHeaderIdentifier QUANTIZATION_MATRIX
Quantization matrix extension header.


COPYRIGHT

public static final ExtensionHeaderIdentifier COPYRIGHT
Copyright extension header.


SEQUENCE_SCALABILITY

public static final ExtensionHeaderIdentifier SEQUENCE_SCALABILITY
Sequence scalability extension header.


PICTURE_DISPLAY

public static final ExtensionHeaderIdentifier PICTURE_DISPLAY
Picture display extension header.


PICTURE_CODING

public static final ExtensionHeaderIdentifier PICTURE_CODING
Picture coding extension header.


PICTURE_SPATIAL_SCALABILITY

public static final ExtensionHeaderIdentifier PICTURE_SPATIAL_SCALABILITY
Picture spatial scalability extension header.


PICTURE_TEMPORAL_SCALABILITY

public static final ExtensionHeaderIdentifier PICTURE_TEMPORAL_SCALABILITY
Picture temporal scalability extension header.


CAMERA_PARAMETERS

public static final ExtensionHeaderIdentifier CAMERA_PARAMETERS
Camera parameters extension header.


ITU_T

public static final ExtensionHeaderIdentifier ITU_T
ITU-T extension header.

Field Detail

encodedValue

private int encodedValue
Method Detail

values

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

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

valueOf

public static ExtensionHeaderIdentifier 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 identifier to a bit stream.

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