Package org.mp4parser.boxes.apple
Class TimeCodeBox
java.lang.Object
org.mp4parser.support.AbstractBox
org.mp4parser.boxes.apple.TimeCodeBox
- All Implemented Interfaces:
Box,SampleEntry,Container,ParsableBox
4cc = ""tmcd""
-
Field Summary
FieldsFields inherited from class org.mp4parser.support.AbstractBox
content, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_parseDetails(ByteBuffer content) Parse the box's fields and child boxes if any.getBoxes()Gets all child boxes.Gets all child boxes of the given type.Gets all child boxes of the given type.protected voidgetContent(ByteBuffer bb) Write the box's content into the givenByteBuffer.protected longGet the box's content size without its header.intlonggetFlags()intintintintbyte[]getRest()intvoidSets all boxes and removes all previous child boxes.voidsetDataReferenceIndex(int dataReferenceIndex) voidsetFlags(long flags) voidsetFrameDuration(int frameDuration) voidsetNumberOfFrames(int numberOfFrames) voidsetReserved1(int reserved1) voidsetReserved2(int reserved2) voidsetRest(byte[] rest) voidsetTimeScale(int timeScale) toString()voidMethods inherited from class org.mp4parser.support.AbstractBox
getBox, getSize, getType, getUserType, isParsed, parse, parseDetailsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.mp4parser.ParsableBox
parse
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
TimeCodeBox
public TimeCodeBox()
-
-
Method Details
-
getContentSize
protected long getContentSize()Description copied from class:AbstractBoxGet the box's content size without its header. This must be the exact number of bytes thatgetContent(ByteBuffer)writes.- Specified by:
getContentSizein classAbstractBox- Returns:
- Gets the box's content size in bytes
- See Also:
-
getContent
Description copied from class:AbstractBoxWrite the box's content into the givenByteBuffer. This must include flags and version in case of a full box.byteBufferhas been initialized withgetSize()bytes.- Specified by:
getContentin classAbstractBox- Parameters:
bb- the sink for the box's content
-
_parseDetails
Description copied from class:AbstractBoxParse the box's fields and child boxes if any.- Specified by:
_parseDetailsin classAbstractBox- Parameters:
content- the box's raw content beginning after the 4-cc field.
-
getDataReferenceIndex
public int getDataReferenceIndex()- Specified by:
getDataReferenceIndexin interfaceSampleEntry
-
setDataReferenceIndex
public void setDataReferenceIndex(int dataReferenceIndex) - Specified by:
setDataReferenceIndexin interfaceSampleEntry
-
toString
-
getTimeScale
public int getTimeScale() -
setTimeScale
public void setTimeScale(int timeScale) -
getFrameDuration
public int getFrameDuration() -
setFrameDuration
public void setFrameDuration(int frameDuration) -
getNumberOfFrames
public int getNumberOfFrames() -
setNumberOfFrames
public void setNumberOfFrames(int numberOfFrames) -
getReserved1
public int getReserved1() -
setReserved1
public void setReserved1(int reserved1) -
getReserved2
public int getReserved2() -
setReserved2
public void setReserved2(int reserved2) -
getFlags
public long getFlags() -
setFlags
public void setFlags(long flags) -
getRest
public byte[] getRest() -
setRest
public void setRest(byte[] rest) -
getBoxes
Description copied from interface:ContainerGets all child boxes. May not returnnull. -
setBoxes
Description copied from interface:ContainerSets all boxes and removes all previous child boxes. -
getBoxes
Description copied from interface:ContainerGets all child boxes of the given type. May not returnnull. -
getBoxes
Description copied from interface:ContainerGets all child boxes of the given type. May not returnnull. -
writeContainer
- Specified by:
writeContainerin interfaceContainer- Throws:
IOException
-