public class Packet extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Packet.FrameType |
Modifier and Type | Field and Description |
---|---|
ByteBuffer |
data |
int |
displayOrder |
long |
duration |
static Comparator<Packet> |
FRAME_ASC |
long |
frameNo |
Packet.FrameType |
frameType |
long |
pts |
TapeTimecode |
tapeTimecode |
int |
timescale |
Constructor and Description |
---|
Packet(ByteBuffer data,
long pts,
int timescale,
long duration,
long frameNo,
Packet.FrameType frameType,
TapeTimecode tapeTimecode,
int displayOrder) |
Modifier and Type | Method and Description |
---|---|
static Packet |
createPacket(ByteBuffer data,
long pts,
int timescale,
long duration,
long frameNo,
Packet.FrameType frameType,
TapeTimecode tapeTimecode) |
static Packet |
createPacketWithData(Packet other,
ByteBuffer data) |
ByteBuffer |
getData() |
int |
getDisplayOrder() |
long |
getDuration() |
double |
getDurationD() |
long |
getFrameNo() |
Packet.FrameType |
getFrameType() |
long |
getPts() |
double |
getPtsD() |
RationalLarge |
getPtsR() |
TapeTimecode |
getTapeTimecode() |
int |
getTimescale() |
boolean |
isKeyFrame() |
void |
setData(ByteBuffer data) |
void |
setDisplayOrder(int displayOrder) |
void |
setDuration(long duration) |
void |
setFrameType(Packet.FrameType frameType) |
void |
setPts(long pts) |
void |
setTapeTimecode(TapeTimecode tapeTimecode) |
void |
setTimescale(int timescale) |
public ByteBuffer data
public long pts
public int timescale
public long duration
public long frameNo
public Packet.FrameType frameType
public TapeTimecode tapeTimecode
public int displayOrder
public static final Comparator<Packet> FRAME_ASC
public Packet(ByteBuffer data, long pts, int timescale, long duration, long frameNo, Packet.FrameType frameType, TapeTimecode tapeTimecode, int displayOrder)
public static Packet createPacket(ByteBuffer data, long pts, int timescale, long duration, long frameNo, Packet.FrameType frameType, TapeTimecode tapeTimecode)
public static Packet createPacketWithData(Packet other, ByteBuffer data)
public ByteBuffer getData()
public long getPts()
public int getTimescale()
public long getDuration()
public long getFrameNo()
public void setTimescale(int timescale)
public TapeTimecode getTapeTimecode()
public void setTapeTimecode(TapeTimecode tapeTimecode)
public int getDisplayOrder()
public void setDisplayOrder(int displayOrder)
public Packet.FrameType getFrameType()
public void setFrameType(Packet.FrameType frameType)
public RationalLarge getPtsR()
public double getPtsD()
public double getDurationD()
public void setData(ByteBuffer data)
public void setPts(long pts)
public void setDuration(long duration)
public boolean isKeyFrame()
Copyright © 2019. All rights reserved.