com.googlecode.mp4parser.boxes.apple
Class QuicktimeTextSampleEntry
java.lang.Object
com.googlecode.mp4parser.AbstractBox
com.coremedia.iso.boxes.sampleentry.SampleEntry
com.googlecode.mp4parser.boxes.apple.QuicktimeTextSampleEntry
- All Implemented Interfaces:
- Box, ContainerBox
public class QuicktimeTextSampleEntry
- extends SampleEntry
Entry type for timed text samples defined in the timed text specification (ISO/IEC 14496-17).
Fields inherited from class com.coremedia.iso.boxes.sampleentry.SampleEntry |
boxes |
Methods inherited from class com.coremedia.iso.boxes.sampleentry.SampleEntry |
_parseChildBoxes, _parseReservedAndDataReferenceIndex, _writeChildBoxes, _writeReservedAndDataReferenceIndex, addBox, getBoxes, getBoxes, getBoxes, getDataReferenceIndex, getNumOfBytesToFirstChild, parse, removeBox, setBoxes, setDataReferenceIndex, setType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
QuicktimeTextSampleEntry
public QuicktimeTextSampleEntry()
_parseDetails
public void _parseDetails(ByteBuffer content)
- Description copied from class:
AbstractBox
- Parse the box's fields and child boxes if any.
- Specified by:
_parseDetails
in class AbstractBox
- Parameters:
content
- the box's raw content beginning after the 4-cc field.
getContentSize
protected long getContentSize()
- Description copied from class:
AbstractBox
- Get the box's content size without its header. This must be the exact number of bytes
that
getContent(ByteBuffer)
writes.
- Specified by:
getContentSize
in class AbstractBox
- Returns:
- Gets the box's content size in bytes
- See Also:
AbstractBox.getContent(java.nio.ByteBuffer)
getDisplayFlags
public int getDisplayFlags()
setDisplayFlags
public void setDisplayFlags(int displayFlags)
getTextJustification
public int getTextJustification()
setTextJustification
public void setTextJustification(int textJustification)
getBackgroundR
public int getBackgroundR()
setBackgroundR
public void setBackgroundR(int backgroundR)
getBackgroundG
public int getBackgroundG()
setBackgroundG
public void setBackgroundG(int backgroundG)
getBackgroundB
public int getBackgroundB()
setBackgroundB
public void setBackgroundB(int backgroundB)
getDefaultTextBox
public long getDefaultTextBox()
setDefaultTextBox
public void setDefaultTextBox(long defaultTextBox)
getReserved1
public long getReserved1()
setReserved1
public void setReserved1(long reserved1)
getFontNumber
public short getFontNumber()
setFontNumber
public void setFontNumber(short fontNumber)
getFontFace
public short getFontFace()
setFontFace
public void setFontFace(short fontFace)
getReserved2
public byte getReserved2()
setReserved2
public void setReserved2(byte reserved2)
getReserved3
public short getReserved3()
setReserved3
public void setReserved3(short reserved3)
getForegroundR
public int getForegroundR()
setForegroundR
public void setForegroundR(int foregroundR)
getForegroundG
public int getForegroundG()
setForegroundG
public void setForegroundG(int foregroundG)
getForegroundB
public int getForegroundB()
setForegroundB
public void setForegroundB(int foregroundB)
getFontName
public String getFontName()
setFontName
public void setFontName(String fontName)
getContent
protected void getContent(ByteBuffer byteBuffer)
- Description copied from class:
AbstractBox
- Write the box's content into the given
ByteBuffer
. This must include flags
and version in case of a full box. byteBuffer
has been initialized with
getSize()
bytes.
- Specified by:
getContent
in class AbstractBox
- Parameters:
byteBuffer
- the sink for the box's content
Copyright © 2012. All Rights Reserved.