fi.helsinki.cs.ohtu.mpeg2.video
Enum SequenceExtensionHeader.Profile

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

public static enum SequenceExtensionHeader.Profile
extends java.lang.Enum<SequenceExtensionHeader.Profile>

Represents the allowed values for the profile field.


Enum Constant Summary
HIGH
          High profile.
MAIN
          Main profile.
SIMPLE
          Simple profile.
SNR_AND_SPATIALLY_SCALABLE
          Signal-to-noise ratio and spatially scalable profile.
SNR_SCALABLE
          Signal-to-noise ratio scalable profile.
 
Field Summary
private  UnsignedIntegerField field
           
 
Method Summary
static SequenceExtensionHeader.Profile valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SequenceExtensionHeader.Profile[] 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

SIMPLE

public static final SequenceExtensionHeader.Profile SIMPLE
Simple profile. I and P frames, no scalability).


MAIN

public static final SequenceExtensionHeader.Profile MAIN
Main profile. I, P and B frames, no scalability.


SNR_SCALABLE

public static final SequenceExtensionHeader.Profile SNR_SCALABLE
Signal-to-noise ratio scalable profile. I, P and B frames, SNR scalability.


SNR_AND_SPATIALLY_SCALABLE

public static final SequenceExtensionHeader.Profile SNR_AND_SPATIALLY_SCALABLE
Signal-to-noise ratio and spatially scalable profile. I, P and B frames, both SNR and spatial scalability.


HIGH

public static final SequenceExtensionHeader.Profile HIGH
High profile. I, P and B frames, both SNR and spatial scalability, higher DC coefficient precision allowed than in SNRAndSpatiallyScalable.

Field Detail

field

private UnsignedIntegerField field
Method Detail

values

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

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

valueOf

public static SequenceExtensionHeader.Profile 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.