fi.helsinki.cs.ohtu.mpeg2
Class ElementaryStream

java.lang.Object
  extended by fi.helsinki.cs.ohtu.mpeg2.ElementaryStream
Direct Known Subclasses:
AudioStream, VideoStream

public abstract class ElementaryStream
extends java.lang.Object

The base class for elementary stream handling classes.


Constructor Summary
ElementaryStream()
          The default constructor.
 
Method Summary
 void close()
          Closes this ElementaryStream.
abstract  void flush()
          Flushes buffered data, if any, to the packetizers.
abstract  AVPacketizer getPacketizer(int sid)
          Adds and returns a new packetizer for this ElementaryStream.
abstract  void releasePacketizer(AVPacketizer avp)
          Releases a packetizer for this ElementaryStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementaryStream

public ElementaryStream()
The default constructor.

Method Detail

getPacketizer

public abstract AVPacketizer getPacketizer(int sid)
Adds and returns a new packetizer for this ElementaryStream.

Parameters:
sid - the stream number for the packetizer

releasePacketizer

public abstract void releasePacketizer(AVPacketizer avp)
Releases a packetizer for this ElementaryStream. After releasing the packetizer will not receive more data from this stream.

Parameters:
avp - the packetizer to release

flush

public abstract void flush()
Flushes buffered data, if any, to the packetizers.


close

public void close()
Closes this ElementaryStream. After this call no more data shall be written into this stream.