fi.helsinki.cs.ohtu.mpeg2.video
Enum PictureCodingExtensionHeader.Flag

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

public static enum PictureCodingExtensionHeader.Flag
extends java.lang.Enum<PictureCodingExtensionHeader.Flag>

Represents the different non-frame-structure flags possibly specified by this header. The valid combinations of the frame structure flags are specified using the FrameStructure enum.


Enum Constant Summary
ALTERNATE_INTRA_VLC
          Specifies that the alternate table is used for the variable length coding of intra blocks in the picture.
ALTERNATE_SCAN_PATTERN
          Specifies that the alternate scanning pattern is used for converting the DCT coefficients table for the picture to a one-dimensional array.
CHROMA_FORMAT_420
          Should be set when the enclosing video sequence's chroma format is Y:Cb:Cr 4:2:0.
CONCEALMENT_MOTION_VECTORS
          Intra macroblocks can also contain motion vectors.
FRAME_PREDICTION_AND_DCT
          Only frame-based DCT and frame-based prediction are used (no field variants).
NON_LINEAR_QUANTISER_SCALE
          Specifies that the alternate non-linear quantiser scale ramp should be used for decoding the picture.
 
Method Summary
static PictureCodingExtensionHeader.Flag valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PictureCodingExtensionHeader.Flag[] 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

FRAME_PREDICTION_AND_DCT

public static final PictureCodingExtensionHeader.Flag FRAME_PREDICTION_AND_DCT
Only frame-based DCT and frame-based prediction are used (no field variants). If not present, also field-based variants can be used. The presence of this flag is ignored for field-based frame structures when writing the header.


CONCEALMENT_MOTION_VECTORS

public static final PictureCodingExtensionHeader.Flag CONCEALMENT_MOTION_VECTORS
Intra macroblocks can also contain motion vectors. If not present, motion vectors are not allowed inside intra macroblocks.


NON_LINEAR_QUANTISER_SCALE

public static final PictureCodingExtensionHeader.Flag NON_LINEAR_QUANTISER_SCALE
Specifies that the alternate non-linear quantiser scale ramp should be used for decoding the picture. If not present, a linear quantiser scale ramp is used.


ALTERNATE_INTRA_VLC

public static final PictureCodingExtensionHeader.Flag ALTERNATE_INTRA_VLC
Specifies that the alternate table is used for the variable length coding of intra blocks in the picture. If not present, the same table is be used for both the intra and non-intra blocks. The presence of this flag doesn't affect the decoding of non-intra blocks.


ALTERNATE_SCAN_PATTERN

public static final PictureCodingExtensionHeader.Flag ALTERNATE_SCAN_PATTERN
Specifies that the alternate scanning pattern is used for converting the DCT coefficients table for the picture to a one-dimensional array. If not present, the standard scanning pattern is used.


CHROMA_FORMAT_420

public static final PictureCodingExtensionHeader.Flag CHROMA_FORMAT_420
Should be set when the enclosing video sequence's chroma format is Y:Cb:Cr 4:2:0. If not present, another chroma format is assumed. However, the flag only affects the written bitstream if the progressive flag is set.

Method Detail

values

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

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

valueOf

public static PictureCodingExtensionHeader.Flag 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