org.jcodec.movtool.streaming.tracks
Class VirtualPacketWrapper

java.lang.Object
  extended by org.jcodec.movtool.streaming.tracks.VirtualPacketWrapper
All Implemented Interfaces:
VirtualPacket
Direct Known Subclasses:
CachingTrack.CachingPacket, EditedFramesTrack.EditedFramesPacket

public class VirtualPacketWrapper
extends Object
implements VirtualPacket

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License Wraps virtual packet for easy proxy creation

Author:
The JCodec project

Field Summary
protected  VirtualPacket src
           
 
Constructor Summary
VirtualPacketWrapper(VirtualPacket src)
           
 
Method Summary
 ByteBuffer getData()
           
 int getDataLen()
           
 double getDuration()
           
 int getFrameNo()
           
 double getPts()
           
 boolean isKeyframe()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

src

protected VirtualPacket src
Constructor Detail

VirtualPacketWrapper

public VirtualPacketWrapper(VirtualPacket src)
Method Detail

getData

public ByteBuffer getData()
                   throws IOException
Specified by:
getData in interface VirtualPacket
Throws:
IOException

getDataLen

public int getDataLen()
               throws IOException
Specified by:
getDataLen in interface VirtualPacket
Throws:
IOException

getPts

public double getPts()
Specified by:
getPts in interface VirtualPacket

getDuration

public double getDuration()
Specified by:
getDuration in interface VirtualPacket

isKeyframe

public boolean isKeyframe()
Specified by:
isKeyframe in interface VirtualPacket

getFrameNo

public int getFrameNo()
Specified by:
getFrameNo in interface VirtualPacket


Copyright © 2013. All Rights Reserved.