Methods Summary |
---|
public void | _parseDetails(java.nio.ByteBuffer content)
parseVersionAndFlags(content);
if (getVersion() == 1) {
creationTime = IsoTypeReader.readUInt64(content);
modificationTime = IsoTypeReader.readUInt64(content);
timescale = IsoTypeReader.readUInt32(content);
duration = IsoTypeReader.readUInt64(content);
} else {
creationTime = IsoTypeReader.readUInt32(content);
modificationTime = IsoTypeReader.readUInt32(content);
timescale = IsoTypeReader.readUInt32(content);
duration = IsoTypeReader.readUInt32(content);
}
language = IsoTypeReader.readIso639(content);
IsoTypeReader.readUInt16(content);
|
protected void | getContent(java.nio.ByteBuffer byteBuffer)
writeVersionAndFlags(byteBuffer);
if (getVersion() == 1) {
IsoTypeWriter.writeUInt64(byteBuffer, creationTime);
IsoTypeWriter.writeUInt64(byteBuffer, modificationTime);
IsoTypeWriter.writeUInt32(byteBuffer, timescale);
IsoTypeWriter.writeUInt64(byteBuffer, duration);
} else {
IsoTypeWriter.writeUInt32(byteBuffer, creationTime);
IsoTypeWriter.writeUInt32(byteBuffer, modificationTime);
IsoTypeWriter.writeUInt32(byteBuffer, timescale);
IsoTypeWriter.writeUInt32(byteBuffer, duration);
}
IsoTypeWriter.writeIso639(byteBuffer, language);
IsoTypeWriter.writeUInt16(byteBuffer, 0);
|
protected long | getContentSize()
long contentSize = 4;
if (getVersion() == 1) {
contentSize += 8 + 8 + 4 + 8;
} else {
contentSize += 4 + 4 + 4 + 4;
}
contentSize += 2;
contentSize += 2;
return contentSize;
|
public long | getCreationTime()
return creationTime;
|
public long | getDuration()
return duration;
|
public java.lang.String | getLanguage()
return language;
|
public long | getModificationTime()
return modificationTime;
|
public long | getTimescale()
return timescale;
|
public void | setCreationTime(long creationTime)
this.creationTime = creationTime;
|
public void | setDuration(long duration)
this.duration = duration;
|
public void | setLanguage(java.lang.String language)
this.language = language;
|
public void | setModificationTime(long modificationTime)
this.modificationTime = modificationTime;
|
public void | setTimescale(long timescale)
this.timescale = timescale;
|
public java.lang.String | toString()
StringBuilder result = new StringBuilder();
result.append("MediaHeaderBox[");
result.append("creationTime=").append(getCreationTime());
result.append(";");
result.append("modificationTime=").append(getModificationTime());
result.append(";");
result.append("timescale=").append(getTimescale());
result.append(";");
result.append("duration=").append(getDuration());
result.append(";");
result.append("language=").append(getLanguage());
result.append("]");
return result.toString();
|