edu.umd.cfar.lamp.mpeg1.video
Class PelAspectRatio

java.lang.Object
  extended byedu.umd.cfar.lamp.mpeg1.video.PelAspectRatio
All Implemented Interfaces:
Parsable

public class PelAspectRatio
extends java.lang.Object
implements Parsable

Parses and interprets the pixel aspect ratio of an MPEG-1 file. For more information, see the MPEG-1 spec or http://www.mir.com/DMG/aspect.html .


Field Summary
static float[] PEL_RATIOS
           
static Rational[] RATIONAL_PEL_RATIOS
           
 
Constructor Summary
PelAspectRatio()
           
PelAspectRatio(int i)
           
 
Method Summary
 float getFloatValue()
           
 Rational getRationalValue()
           
 int getValue()
          Gets the index of the pel aspect ratio.
 void parse(Bitstream bitstream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RATIONAL_PEL_RATIOS

public static final Rational[] RATIONAL_PEL_RATIOS

PEL_RATIOS

public static final float[] PEL_RATIOS
Constructor Detail

PelAspectRatio

public PelAspectRatio()

PelAspectRatio

public PelAspectRatio(int i)
Parameters:
i -
Method Detail

parse

public void parse(Bitstream bitstream)
           throws java.io.IOException
Specified by:
parse in interface Parsable
Throws:
java.io.IOException

getFloatValue

public float getFloatValue()

getRationalValue

public Rational getRationalValue()

getValue

public int getValue()
Gets the index of the pel aspect ratio.

Returns:
Returns the ratio index.