Methods Summary |
---|
public void | _parseDetails(java.nio.ByteBuffer content)
parseVersionAndFlags(content);
if ((getFlags() & 1) == 1) {
auxInfoType = IsoTypeReader.read4cc(content);
auxInfoTypeParameter = IsoTypeReader.read4cc(content);
}
defaultSampleInfoSize = (short) IsoTypeReader.readUInt8(content);
sampleCount = l2i(IsoTypeReader.readUInt32(content));
sampleInfoSizes.clear();
if (defaultSampleInfoSize == 0) {
for (int i = 0; i < sampleCount; i++) {
sampleInfoSizes.add((short) IsoTypeReader.readUInt8(content));
}
}
|
public java.lang.String | getAuxInfoType()
return auxInfoType;
|
public java.lang.String | getAuxInfoTypeParameter()
return auxInfoTypeParameter;
|
protected void | getContent(java.nio.ByteBuffer byteBuffer)
writeVersionAndFlags(byteBuffer);
if ((getFlags() & 1) == 1) {
byteBuffer.put(IsoFile.fourCCtoBytes(auxInfoType));
byteBuffer.put(IsoFile.fourCCtoBytes(auxInfoTypeParameter));
}
IsoTypeWriter.writeUInt8(byteBuffer, defaultSampleInfoSize);
if (defaultSampleInfoSize == 0) {
IsoTypeWriter.writeUInt32(byteBuffer, sampleInfoSizes.size());
for (short sampleInfoSize : sampleInfoSizes) {
IsoTypeWriter.writeUInt8(byteBuffer, sampleInfoSize);
}
} else {
IsoTypeWriter.writeUInt32(byteBuffer, sampleCount);
}
|
protected long | getContentSize()
int size = 4;
if ((getFlags() & 1) == 1) {
size += 8;
}
size += 5;
size += defaultSampleInfoSize == 0 ? sampleInfoSizes.size() : 0;
return size;
|
public int | getDefaultSampleInfoSize()
return defaultSampleInfoSize;
|
public int | getSampleCount()
return sampleCount;
|
public java.util.List | getSampleInfoSizes()
return sampleInfoSizes;
|
public void | setAuxInfoType(java.lang.String auxInfoType)
this.auxInfoType = auxInfoType;
|
public void | setAuxInfoTypeParameter(java.lang.String auxInfoTypeParameter)
this.auxInfoTypeParameter = auxInfoTypeParameter;
|
public void | setDefaultSampleInfoSize(int defaultSampleInfoSize)
assert defaultSampleInfoSize <= 255;
this.defaultSampleInfoSize = defaultSampleInfoSize;
|
public void | setSampleCount(int sampleCount)
this.sampleCount = sampleCount;
|
public void | setSampleInfoSizes(java.util.List sampleInfoSizes)
this.sampleInfoSizes = sampleInfoSizes;
|
public java.lang.String | toString()
return "SampleAuxiliaryInformationSizesBox{" +
"defaultSampleInfoSize=" + defaultSampleInfoSize +
", sampleCount=" + sampleCount +
", auxInfoType='" + auxInfoType + '\'" +
", auxInfoTypeParameter='" + auxInfoTypeParameter + '\'" +
'}";
|