Methods Summary |
---|
public void | _parseDetails(java.nio.ByteBuffer content)
_parseReservedAndDataReferenceIndex(content);
displayFlags = IsoTypeReader.readUInt32(content);
horizontalJustification = IsoTypeReader.readUInt8(content);
verticalJustification = IsoTypeReader.readUInt8(content);
backgroundColorRgba = new int[4];
backgroundColorRgba[0] = IsoTypeReader.readUInt8(content);
backgroundColorRgba[1] = IsoTypeReader.readUInt8(content);
backgroundColorRgba[2] = IsoTypeReader.readUInt8(content);
backgroundColorRgba[3] = IsoTypeReader.readUInt8(content);
boxRecord = new BoxRecord();
boxRecord.parse(content);
styleRecord = new StyleRecord();
styleRecord.parse(content);
_parseChildBoxes(content);
|
public int[] | getBackgroundColorRgba()
return backgroundColorRgba;
|
public com.coremedia.iso.boxes.sampleentry.TextSampleEntry$BoxRecord | getBoxRecord()
return boxRecord;
|
protected void | getContent(java.nio.ByteBuffer byteBuffer)
_writeReservedAndDataReferenceIndex(byteBuffer);
IsoTypeWriter.writeUInt32(byteBuffer, displayFlags);
IsoTypeWriter.writeUInt8(byteBuffer, horizontalJustification);
IsoTypeWriter.writeUInt8(byteBuffer, verticalJustification);
IsoTypeWriter.writeUInt8(byteBuffer, backgroundColorRgba[0]);
IsoTypeWriter.writeUInt8(byteBuffer, backgroundColorRgba[1]);
IsoTypeWriter.writeUInt8(byteBuffer, backgroundColorRgba[2]);
IsoTypeWriter.writeUInt8(byteBuffer, backgroundColorRgba[3]);
boxRecord.getContent(byteBuffer);
styleRecord.getContent(byteBuffer);
_writeChildBoxes(byteBuffer);
|
protected long | getContentSize()
long contentSize = 18;
contentSize += boxRecord.getSize();
contentSize += styleRecord.getSize();
for (Box boxe : boxes) {
contentSize += boxe.getSize();
}
return contentSize;
|
public int | getHorizontalJustification()
return horizontalJustification;
|
public com.coremedia.iso.boxes.sampleentry.TextSampleEntry$StyleRecord | getStyleRecord()
return styleRecord;
|
public int | getVerticalJustification()
return verticalJustification;
|
public boolean | isContinuousKaraoke()
return (displayFlags & 0x00000800) == 0x00000800;
|
public boolean | isFillTextRegion()
return (displayFlags & 0x00040000) == 0x00040000;
|
public boolean | isScrollDirection()
return (displayFlags & 0x00000180) == 0x00000180;
|
public boolean | isScrollIn()
return (displayFlags & 0x00000020) == 0x00000020;
|
public boolean | isScrollOut()
return (displayFlags & 0x00000040) == 0x00000040;
|
public boolean | isWriteTextVertically()
return (displayFlags & 0x00020000) == 0x00020000;
|
public void | setBackgroundColorRgba(int[] backgroundColorRgba)
this.backgroundColorRgba = backgroundColorRgba;
|
public void | setBoxRecord(com.coremedia.iso.boxes.sampleentry.TextSampleEntry$BoxRecord boxRecord)
this.boxRecord = boxRecord;
|
public void | setContinuousKaraoke(boolean continuousKaraoke)
if (continuousKaraoke) {
displayFlags |= 0x00000800;
} else {
displayFlags &= ~0x00000800;
}
|
public void | setFillTextRegion(boolean fillTextRegion)
if (fillTextRegion) {
displayFlags |= 0x00040000;
} else {
displayFlags &= ~0x00040000;
}
|
public void | setHorizontalJustification(int horizontalJustification)
this.horizontalJustification = horizontalJustification;
|
public void | setScrollDirection(boolean scrollOutIn)
if (scrollOutIn) {
displayFlags |= 0x00000180;
} else {
displayFlags &= ~0x00000180;
}
|
public void | setScrollIn(boolean scrollIn)
if (scrollIn) {
displayFlags |= 0x00000020;
} else {
displayFlags &= ~0x00000020;
}
|
public void | setScrollOut(boolean scrollOutIn)
if (scrollOutIn) {
displayFlags |= 0x00000040;
} else {
displayFlags &= ~0x00000040;
}
|
public void | setStyleRecord(com.coremedia.iso.boxes.sampleentry.TextSampleEntry$StyleRecord styleRecord)
this.styleRecord = styleRecord;
|
public void | setVerticalJustification(int verticalJustification)
this.verticalJustification = verticalJustification;
|
public void | setWriteTextVertically(boolean writeTextVertically)
if (writeTextVertically) {
displayFlags |= 0x00020000;
} else {
displayFlags &= ~0x00020000;
}
|
public java.lang.String | toString()
return "TextSampleEntry";
|