org.jcodec.common.model
Class Packet

java.lang.Object
  extended by 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

Field Summary
static Comparator<Packet> FRAME_ASC
           
 
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)
           
 
Method Summary
 ByteBuffer getData()
           
 int getDisplayOrder()
           
 long getDuration()
           
 double getDurationD()
           
 long getFrameNo()
           
 long getPts()
           
 double getPtsD()
           
 RationalLarge getPtsR()
           
 TapeTimecode getTapeTimecode()
           
 long getTimescale()
           
 boolean isKeyFrame()
           
 void setData(ByteBuffer data)
           
 void setDisplayOrder(int displayOrder)
           
 void setTapeTimecode(TapeTimecode tapeTimecode)
           
 void setTimescale(int timescale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FRAME_ASC

public static final Comparator<Packet> FRAME_ASC
Constructor Detail

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)
Method Detail

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.