edu.umd.cfar.lamp.mpeg1.video
Class PelAspectRatio
java.lang.Object
edu.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 .
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RATIONAL_PEL_RATIOS
public static final Rational[] RATIONAL_PEL_RATIOS
PEL_RATIOS
public static final float[] PEL_RATIOS
PelAspectRatio
public PelAspectRatio()
PelAspectRatio
public PelAspectRatio(int i)
- Parameters:
i
-
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.