org.jcodec.containers.mp4.boxes
Class TimecodeSampleEntry

java.lang.Object
  extended by org.jcodec.containers.mp4.boxes.Box
      extended by org.jcodec.containers.mp4.boxes.NodeBox
          extended by org.jcodec.containers.mp4.boxes.SampleEntry
              extended by org.jcodec.containers.mp4.boxes.TimecodeSampleEntry

public class TimecodeSampleEntry
extends SampleEntry

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License Describes timecode payload sample

Author:
The JCodec project

Nested Class Summary
static class TimecodeSampleEntry.MyFactory
           
 
Field Summary
static int FLAG_24HOURMAX
           
static int FLAG_COUNTER
           
static int FLAG_DROPFRAME
           
static int FLAG_NEGATIVETIMEOK
           
 
Fields inherited from class org.jcodec.containers.mp4.boxes.NodeBox
boxes, factory
 
Fields inherited from class org.jcodec.containers.mp4.boxes.Box
header
 
Constructor Summary
TimecodeSampleEntry()
           
TimecodeSampleEntry(Header header)
           
TimecodeSampleEntry(int flags, int timescale, int frameDuration, int numFrames)
           
 
Method Summary
protected  void doWrite(ByteBuffer out)
           
 void dump(StringBuilder sb)
           
 int getFlags()
           
 int getFrameDuration()
           
 byte getNumFrames()
           
 int getTimescale()
           
 boolean isDropFrame()
           
 void parse(ByteBuffer input)
           
 
Methods inherited from class org.jcodec.containers.mp4.boxes.SampleEntry
getDrefInd, parseExtensions, setDrefInd, setMediaType, writeExtensions
 
Methods inherited from class org.jcodec.containers.mp4.boxes.NodeBox
add, addFirst, dumpBoxes, getBoxes, newBox, parseBox, parseChildBox, removeChildren, replace
 
Methods inherited from class org.jcodec.containers.mp4.boxes.Box
as, findAll, findAll, findFirst, findFirst, getFourcc, getHeader, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FLAG_DROPFRAME

public static final int FLAG_DROPFRAME
See Also:
Constant Field Values

FLAG_24HOURMAX

public static final int FLAG_24HOURMAX
See Also:
Constant Field Values

FLAG_NEGATIVETIMEOK

public static final int FLAG_NEGATIVETIMEOK
See Also:
Constant Field Values

FLAG_COUNTER

public static final int FLAG_COUNTER
See Also:
Constant Field Values
Constructor Detail

TimecodeSampleEntry

public TimecodeSampleEntry(Header header)

TimecodeSampleEntry

public TimecodeSampleEntry()

TimecodeSampleEntry

public TimecodeSampleEntry(int flags,
                           int timescale,
                           int frameDuration,
                           int numFrames)
Method Detail

parse

public void parse(ByteBuffer input)
Overrides:
parse in class SampleEntry

doWrite

protected void doWrite(ByteBuffer out)
Overrides:
doWrite in class SampleEntry

getFlags

public int getFlags()

getTimescale

public int getTimescale()

getFrameDuration

public int getFrameDuration()

getNumFrames

public byte getNumFrames()

isDropFrame

public boolean isDropFrame()

dump

public void dump(StringBuilder sb)
Overrides:
dump in class NodeBox


Copyright © 2013. All Rights Reserved.