Package fi.helsinki.cs.ohtu.mpeg2.video

Provides classes for MPEG-2 video encoding.

See:
          Description

Interface Summary
Block This is the common interface for all types of blocks.
DiscreteCosineTransform This is an interface for implementations of the forward discrete cosine transform.
InverseDiscreteCosineTransform This is an interface for implementations of the inverse discrete cosine transform.
 

Class Summary
ChromaSubsampler Performs chromacity subsampling on byte values.
DiscreteCosineTransformUtils This class contains simple auxiliary functions used in the process of encoding blocks.
IntraBlock Represents a block in an intra type macroblock.
IntraBlock.Predictors Encapsulates the predictors used in the encoding of intra blocks.
IntraMacroblock IntraMacroblock A macroblock contains a section of the luminance component and the spatially corresponding chrominance components.
MacroblockHeader Represents the continuous purely header fields in a MPEG-2 macroblock.
MotionVector Represents a motion vector.
MotionVector.Predictors Preserves that context of previously written motion vectors to determine correct binary encoding when writing motion vectors.
NonIntraBlock Represents a block in a P- or B-type macroblock.
PictureCodingExtensionHeader Represents the picture coding extension header.
PictureHeader Represents the baseline picture header.
Quantizer Contains the quantization functionality used in MPEG-2.
RGBToYCbCrConverter A converter from RGB ro YCbCr colour space.
SequenceExtensionHeader Represents extension part of the mandatory headers in a MPEG-2 video sequence.
SequenceHeader Represents the first part of the headers in a MPEG-2 video sequence.
SimpleDiscreteCosineTransform The algorithms in this class are the trivial algorithms directly based on the definitions of the transforms.
SliceHeader Represents the slice header.
VLC VLC contains methods for writing to a BitOutputStream the various variable length codes used in MPEG-2 encoding.
VLCTables The tables in this class are from T-REC-H.262-200002-I annex B.
YCbCrToRGBConverter A converter from YCbCr to RGB.
ZigZagScanner The zig-zag scanning pattern for run-length coding of the quantized DCT coefficients.
 

Enum Summary
ExtensionHeaderIdentifier Identifies an MPEG extension header.
IntraBlock.ColourComponent The possible types of intra blocks.
PictureCodingExtensionHeader.Flag Represents the different non-frame-structure flags possibly specified by this header.
PictureCodingExtensionHeader.FrameStructure Represents the allowed combinations of values for the picture structure, top field first, repeat first field and progressive frame fields.
PictureHeader.CodingType Represents the allowed values for the coding type field.
Quantizer.ScaleType This enumeration contains the two quantizer scale mappings used in MPEG-2.
SequenceExtensionHeader.ChromaFormat Represents the allowed values for the chroma format field.
SequenceExtensionHeader.Level Represents the allowed values for the level field.
SequenceExtensionHeader.Profile Represents the allowed values for the profile field.
SequenceExtensionHeader.SpecialProfileAndLevel Represents the allowed values for the special profile and level field.
SequenceHeader.AspectRatioInformation Represents the allowed values for the aspect ratio information field.
SequenceHeader.FrameRateCode Represents the allowed values for the frame rate code field.
VLC.DCTCoefficientTable These are the two variable length code tables used for coding DCT coefficients.
VLC.IntraVLCFormat These are the two intra VLC format options.
 

Package fi.helsinki.cs.ohtu.mpeg2.video Description

Provides classes for MPEG-2 video encoding.

MPEG-2 video encoding

The package does not contain a ready, 'out-of-box' video encoder. However, it provides essential parts to build a fully working encoder. See for examples in the package examples.