public class TimeCodeBox extends AbstractBox implements SampleEntry, Container
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE |
type| Constructor and Description |
|---|
TimeCodeBox() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_parseDetails(ByteBuffer content)
Parse the box's fields and child boxes if any.
|
List<Box> |
getBoxes()
Gets all child boxes.
|
<T extends Box> |
getBoxes(Class<T> clazz)
Gets all child boxes of the given type.
|
<T extends Box> |
getBoxes(Class<T> clazz,
boolean recursive)
Gets all child boxes of the given type.
|
ByteBuffer |
getByteBuffer(long start,
long size) |
protected void |
getContent(ByteBuffer bb)
Write the box's content into the given
ByteBuffer. |
protected long |
getContentSize()
Get the box's content size without its header.
|
int |
getDataReferenceIndex() |
long |
getFlags() |
int |
getFrameDuration() |
int |
getNumberOfFrames() |
int |
getReserved1() |
int |
getReserved2() |
byte[] |
getRest() |
int |
getTimeScale() |
void |
setBoxes(List<Box> boxes)
Sets all boxes and removes all previous child boxes.
|
void |
setDataReferenceIndex(int dataReferenceIndex) |
void |
setFlags(long flags) |
void |
setFrameDuration(int frameDuration) |
void |
setNumberOfFrames(int numberOfFrames) |
void |
setReserved1(int reserved1) |
void |
setReserved2(int reserved2) |
void |
setRest(byte[] rest) |
void |
setTimeScale(int timeScale) |
String |
toString() |
void |
writeContainer(WritableByteChannel bb) |
getBox, getOffset, getParent, getPath, getSize, getType, getUserType, isParsed, parse, parseDetails, setParentpublic static final String TYPE
protected long getContentSize()
AbstractBoxgetContent(ByteBuffer) writes.getContentSize in class AbstractBoxAbstractBox.getContent(java.nio.ByteBuffer)protected void getContent(ByteBuffer bb)
AbstractBoxByteBuffer. This must include flags
and version in case of a full box. byteBuffer has been initialized with
getSize() bytes.getContent in class AbstractBoxbb - the sink for the box's contentprotected void _parseDetails(ByteBuffer content)
AbstractBox_parseDetails in class AbstractBoxcontent - the box's raw content beginning after the 4-cc field.public int getDataReferenceIndex()
getDataReferenceIndex in interface SampleEntrypublic void setDataReferenceIndex(int dataReferenceIndex)
setDataReferenceIndex in interface SampleEntrypublic int getTimeScale()
public void setTimeScale(int timeScale)
public int getFrameDuration()
public void setFrameDuration(int frameDuration)
public int getNumberOfFrames()
public void setNumberOfFrames(int numberOfFrames)
public int getReserved1()
public void setReserved1(int reserved1)
public int getReserved2()
public void setReserved2(int reserved2)
public long getFlags()
public void setFlags(long flags)
public byte[] getRest()
public void setRest(byte[] rest)
public List<Box> getBoxes()
Containernull.public void setBoxes(List<Box> boxes)
Containerpublic <T extends Box> List<T> getBoxes(Class<T> clazz)
Containernull.public <T extends Box> List<T> getBoxes(Class<T> clazz, boolean recursive)
Containernull.public ByteBuffer getByteBuffer(long start, long size) throws IOException
getByteBuffer in interface ContainerIOExceptionpublic void writeContainer(WritableByteChannel bb) throws IOException
writeContainer in interface ContainerIOExceptionCopyright © 2016. All rights reserved.