fi.helsinki.cs.ohtu.mpeg2
Class VideoStream.VideoAccessUnit
java.lang.Object
fi.helsinki.cs.ohtu.mpeg2.AccessUnit
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
iframe
private final boolean iframe
true
if the access unit represents an I-frame.
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 clockdts
- the DTS for the access unit,
in ticks of the 90kHz clockdata
- the data for the access unitdiscont
- true
if decoding discontinuity
precedes the access unitiframe
- true
if the access unit represents
an I-frame
isIFrame
public boolean isIFrame()
- Gets whether the access unit represents an I-frame.
- Returns:
true
if the access unit represents an I-frame