org.jcodec.common.model
Class Packet
java.lang.Object
org.jcodec.common.model.Packet
- Direct Known Subclasses:
- MP4Packet, MPSDemuxer.MPEGPacket, MXFDemuxer.MXFPacket
public class Packet
- extends Object
This class is part of JCodec ( www.jcodec.org ) This software is distributed
under FreeBSD License
Encoded stream packet
- Author:
- The JCodec project
|
Constructor Summary |
Packet(ByteBuffer data,
long pts,
long timescale,
long duration,
long frameNo,
boolean keyFrame,
TapeTimecode tapeTimecode)
|
Packet(ByteBuffer data,
long pts,
long timescale,
long duration,
long frameNo,
boolean keyFrame,
TapeTimecode tapeTimecode,
int displayOrder)
|
Packet(Packet other)
|
Packet(Packet other,
ByteBuffer data)
|
Packet(Packet other,
TapeTimecode timecode)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FRAME_ASC
public static final Comparator<Packet> FRAME_ASC
Packet
public Packet(ByteBuffer data,
long pts,
long timescale,
long duration,
long frameNo,
boolean keyFrame,
TapeTimecode tapeTimecode)
Packet
public Packet(Packet other)
Packet
public Packet(Packet other,
ByteBuffer data)
Packet
public Packet(Packet other,
TapeTimecode timecode)
Packet
public Packet(ByteBuffer data,
long pts,
long timescale,
long duration,
long frameNo,
boolean keyFrame,
TapeTimecode tapeTimecode,
int displayOrder)
getData
public ByteBuffer getData()
getPts
public long getPts()
getTimescale
public long getTimescale()
getDuration
public long getDuration()
getFrameNo
public long getFrameNo()
setTimescale
public void setTimescale(int timescale)
getTapeTimecode
public TapeTimecode getTapeTimecode()
setTapeTimecode
public void setTapeTimecode(TapeTimecode tapeTimecode)
getDisplayOrder
public int getDisplayOrder()
setDisplayOrder
public void setDisplayOrder(int displayOrder)
isKeyFrame
public boolean isKeyFrame()
getPtsR
public RationalLarge getPtsR()
getPtsD
public double getPtsD()
getDurationD
public double getDurationD()
setData
public void setData(ByteBuffer data)
Copyright © 2013. All Rights Reserved.