public class TimeCodeBox extends AbstractBox implements SampleEntry, Container
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE |
content, type| Constructor and Description |
|---|
TimeCodeBox() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_parseDetails(java.nio.ByteBuffer content)
Parse the box's fields and child boxes if any.
|
java.util.List<Box> |
getBoxes()
Gets all child boxes.
|
<T extends Box> |
getBoxes(java.lang.Class<T> clazz)
Gets all child boxes of the given type.
|
<T extends Box> |
getBoxes(java.lang.Class<T> clazz,
boolean recursive)
Gets all child boxes of the given type.
|
protected void |
getContent(java.nio.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(java.util.List<? extends 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) |
java.lang.String |
toString() |
void |
writeContainer(java.nio.channels.WritableByteChannel bb) |
getBox, getSize, getType, getUserType, isParsed, parse, parseDetailsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitparsepublic static final java.lang.String TYPE
protected long getContentSize()
AbstractBoxgetContent(ByteBuffer) writes.getContentSize in class AbstractBoxAbstractBox.getContent(java.nio.ByteBuffer)protected void getContent(java.nio.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(java.nio.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 java.lang.String toString()
toString in class java.lang.Objectpublic 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 java.util.List<Box> getBoxes()
Containernull.public void setBoxes(java.util.List<? extends Box> boxes)
Containerpublic <T extends Box> java.util.List<T> getBoxes(java.lang.Class<T> clazz)
Containernull.public <T extends Box> java.util.List<T> getBoxes(java.lang.Class<T> clazz, boolean recursive)
Containernull.public void writeContainer(java.nio.channels.WritableByteChannel bb)
throws java.io.IOException
writeContainer in interface Containerjava.io.IOExceptionCopyright © 2020. All rights reserved.