edu.umd.cfar.lamp.mpeg1
Class Mpeg1VideoStream

java.lang.Object
  extended byedu.umd.cfar.lamp.mpeg1.Mpeg1VideoStream

public class Mpeg1VideoStream
extends java.lang.Object


Constructor Summary
Mpeg1VideoStream(VideoSource videoSource)
           
 
Method Summary
 int getBitRate()
           
 int getFrameHeight()
           
 float getFrameRate()
           
 int getFrameWidth()
           
 java.awt.Image getImage()
           
 int getNumFrames()
           
 int getPictureCodingType()
           
 PelAspectRatio getPixelAspectRatio()
           
 long getPosition()
           
 int getStreamID()
           
 VideoDecoder getVideoDecoder()
          Gets the video decoder for this stream.
 void index()
           
 boolean isVariableBitRate()
           
 void readIndex(java.io.File file)
           
 void readIndex(java.io.InputStream in)
           
 void seek(int frame)
           
 void writeIndex(java.io.File file)
           
 void writeIndex(java.io.OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mpeg1VideoStream

public Mpeg1VideoStream(VideoSource videoSource)
                 throws java.io.IOException,
                        MpegException
Method Detail

getStreamID

public int getStreamID()

writeIndex

public void writeIndex(java.io.File file)
                throws java.io.IOException,
                       MpegException
Throws:
java.io.IOException
MpegException

readIndex

public void readIndex(java.io.File file)
               throws java.io.IOException,
                      MpegException
Throws:
java.io.IOException
MpegException

writeIndex

public void writeIndex(java.io.OutputStream out)
                throws java.io.IOException,
                       MpegException
Throws:
java.io.IOException
MpegException

readIndex

public void readIndex(java.io.InputStream in)
               throws java.io.IOException,
                      MpegException
Throws:
java.io.IOException
MpegException

index

public void index()
           throws java.io.IOException,
                  MpegException
Throws:
java.io.IOException
MpegException

seek

public void seek(int frame)
          throws java.io.IOException,
                 MpegException
Throws:
java.io.IOException
MpegException

getFrameWidth

public int getFrameWidth()
                  throws java.io.IOException,
                         MpegException
Throws:
java.io.IOException
MpegException

getFrameHeight

public int getFrameHeight()
                   throws java.io.IOException,
                          MpegException
Throws:
java.io.IOException
MpegException

getBitRate

public int getBitRate()
               throws java.io.IOException,
                      MpegException
Throws:
java.io.IOException
MpegException

isVariableBitRate

public boolean isVariableBitRate()
                          throws java.io.IOException,
                                 MpegException
Throws:
java.io.IOException
MpegException

getPixelAspectRatio

public PelAspectRatio getPixelAspectRatio()
                                   throws java.io.IOException,
                                          MpegException
Throws:
java.io.IOException
MpegException

getFrameRate

public float getFrameRate()
                   throws java.io.IOException,
                          MpegException
Throws:
java.io.IOException
MpegException

getNumFrames

public int getNumFrames()
                 throws java.io.IOException,
                        MpegException
Throws:
java.io.IOException
MpegException

getPosition

public long getPosition()
                 throws java.io.IOException,
                        MpegException
Throws:
java.io.IOException
MpegException

getPictureCodingType

public int getPictureCodingType()
                         throws java.io.IOException,
                                MpegException
Throws:
java.io.IOException
MpegException

getImage

public java.awt.Image getImage()
                        throws java.io.IOException,
                               MpegException
Throws:
java.io.IOException
MpegException

getVideoDecoder

public VideoDecoder getVideoDecoder()
Gets the video decoder for this stream.

Returns:
Returns the videoDecoder.