com.googlecode.mp4parser.boxes.apple
Class QuicktimeTextSampleEntry

java.lang.Object
  extended by com.googlecode.mp4parser.AbstractBox
      extended by com.coremedia.iso.boxes.sampleentry.SampleEntry
          extended by 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).


Field Summary
static String TYPE
           
 
Fields inherited from class com.coremedia.iso.boxes.sampleentry.SampleEntry
boxes
 
Fields inherited from class com.googlecode.mp4parser.AbstractBox
type
 
Constructor Summary
QuicktimeTextSampleEntry()
           
 
Method Summary
 void _parseDetails(ByteBuffer content)
          Parse the box's fields and child boxes if any.
 int getBackgroundB()
           
 int getBackgroundG()
           
 int getBackgroundR()
           
protected  void getContent(ByteBuffer byteBuffer)
          Write the box's content into the given ByteBuffer.
protected  long getContentSize()
          Get the box's content size without its header.
 long getDefaultTextBox()
           
 int getDisplayFlags()
           
 short getFontFace()
           
 String getFontName()
           
 short getFontNumber()
           
 int getForegroundB()
           
 int getForegroundG()
           
 int getForegroundR()
           
 long getReserved1()
           
 byte getReserved2()
           
 short getReserved3()
           
 int getTextJustification()
           
 void setBackgroundB(int backgroundB)
           
 void setBackgroundG(int backgroundG)
           
 void setBackgroundR(int backgroundR)
           
 void setDefaultTextBox(long defaultTextBox)
           
 void setDisplayFlags(int displayFlags)
           
 void setFontFace(short fontFace)
           
 void setFontName(String fontName)
           
 void setFontNumber(short fontNumber)
           
 void setForegroundB(int foregroundB)
           
 void setForegroundG(int foregroundG)
           
 void setForegroundR(int foregroundR)
           
 void setReserved1(long reserved1)
           
 void setReserved2(byte reserved2)
           
 void setReserved3(short reserved3)
           
 void setTextJustification(int textJustification)
           
 
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 com.googlecode.mp4parser.AbstractBox
getBox, getIsoFile, getParent, getSize, getType, getUserType, isParsed, setDeadBytes, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.coremedia.iso.boxes.ContainerBox
getIsoFile, getParent
 
Methods inherited from interface com.coremedia.iso.boxes.Box
getBox, getSize, getType, setParent
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

QuicktimeTextSampleEntry

public QuicktimeTextSampleEntry()
Method Detail

_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.