Methods Summary |
---|
public void | _parseDetails(java.nio.ByteBuffer content)
parseVersionAndFlags(content);
sampleSize = IsoTypeReader.readUInt32(content);
sampleCount = l2i(IsoTypeReader.readUInt32(content));
if (sampleSize == 0) {
sampleSizes = new long[(int) sampleCount];
for (int i = 0; i < sampleCount; i++) {
sampleSizes[i] = IsoTypeReader.readUInt32(content);
}
}
|
protected void | getContent(java.nio.ByteBuffer byteBuffer)
writeVersionAndFlags(byteBuffer);
IsoTypeWriter.writeUInt32(byteBuffer, sampleSize);
if (sampleSize == 0) {
IsoTypeWriter.writeUInt32(byteBuffer, sampleSizes.length);
for (long sampleSize1 : sampleSizes) {
IsoTypeWriter.writeUInt32(byteBuffer, sampleSize1);
}
} else {
IsoTypeWriter.writeUInt32(byteBuffer, sampleCount);
}
|
protected long | getContentSize()
return 12 + (sampleSize == 0 ? sampleSizes.length * 4 : 0);
|
public long | getSampleCount()
if (sampleSize > 0) {
return sampleCount;
} else {
return sampleSizes.length;
}
|
public long | getSampleSize()Returns the field sample size.
If sampleSize > 0 every sample has the same size.
If sampleSize == 0 the samples have different size as stated in the sampleSizes field.
return sampleSize;
|
public long | getSampleSizeAtIndex(int index)
if (sampleSize > 0) {
return sampleSize;
} else {
return sampleSizes[index];
}
|
public long[] | getSampleSizes()
return sampleSizes;
|
public void | setSampleSize(long sampleSize)
this.sampleSize = sampleSize;
|
public void | setSampleSizes(long[] sampleSizes)
this.sampleSizes = sampleSizes;
|
public java.lang.String | toString()
return "SampleSizeBox[sampleSize=" + getSampleSize() + ";sampleCount=" + getSampleCount() + "]";
|