fi.helsinki.cs.ohtu.mpeg2
Class VideoStream.VideoAccessUnit

java.lang.Object
  extended by fi.helsinki.cs.ohtu.mpeg2.AccessUnit
      extended by fi.helsinki.cs.ohtu.mpeg2.VideoStream.VideoAccessUnit
Enclosing class:
VideoStream

private static class VideoStream.VideoAccessUnit
extends AccessUnit

Represents an access unit of a video stream. This class adds some additional information on top of the plain AccessUnit.

See Also:
AccessUnit

Field Summary
private  boolean iframe
          true if the access unit represents an I-frame.
 
Constructor Summary
VideoStream.VideoAccessUnit(long pts, long dts, byte[] data, boolean discont, boolean iframe)
          Creates a new VideoAccessUnit instance.
 
Method Summary
 boolean isIFrame()
          Gets whether the access unit represents an I-frame.
 
Methods inherited from class fi.helsinki.cs.ohtu.mpeg2.AccessUnit
byteAt, getDts, getLength, getPts, isDiscontinuous
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iframe

private final boolean iframe
true if the access unit represents an I-frame.

Constructor Detail

VideoStream.VideoAccessUnit

public VideoStream.VideoAccessUnit(long pts,
                                   long dts,
                                   byte[] data,
                                   boolean discont,
                                   boolean iframe)
Creates a new VideoAccessUnit instance.

Parameters:
pts - the PTS for the access unit, in ticks of the 90kHz clock
dts - the DTS for the access unit, in ticks of the 90kHz clock
data - the data for the access unit
discont - true if decoding discontinuity precedes the access unit
iframe - true if the access unit represents an I-frame
Method Detail

isIFrame

public boolean isIFrame()
Gets whether the access unit represents an I-frame.

Returns:
true if the access unit represents an I-frame