Methods Summary |
---|
public void | _parseDetails(java.nio.ByteBuffer content)
_parseReservedAndDataReferenceIndex(content);
long tmp = IsoTypeReader.readUInt16(content);
assert 0 == tmp : "reserved byte not 0";
tmp = IsoTypeReader.readUInt16(content);
assert 0 == tmp : "reserved byte not 0";
predefined[0] = IsoTypeReader.readUInt32(content); // should be zero
predefined[1] = IsoTypeReader.readUInt32(content); // should be zero
predefined[2] = IsoTypeReader.readUInt32(content); // should be zero
width = IsoTypeReader.readUInt16(content);
height = IsoTypeReader.readUInt16(content);
horizresolution = IsoTypeReader.readFixedPoint1616(content);
vertresolution = IsoTypeReader.readFixedPoint1616(content);
tmp = IsoTypeReader.readUInt32(content);
assert 0 == tmp : "reserved byte not 0";
frameCount = IsoTypeReader.readUInt16(content);
int compressornameDisplayAbleData = IsoTypeReader.readUInt8(content);
if (compressornameDisplayAbleData > 31) {
System.out.println("invalid compressor name displayable data: " + compressornameDisplayAbleData);
compressornameDisplayAbleData = 31;
}
byte[] bytes = new byte[compressornameDisplayAbleData];
content.get(bytes);
compressorname = Utf8.convert(bytes);
if (compressornameDisplayAbleData < 31) {
byte[] zeros = new byte[31 - compressornameDisplayAbleData];
content.get(zeros);
//assert Arrays.equals(zeros, new byte[zeros.length]) : "The compressor name length was not filled up with zeros";
}
depth = IsoTypeReader.readUInt16(content);
tmp = IsoTypeReader.readUInt16(content);
assert 0xFFFF == tmp;
_parseChildBoxes(content);
|
public java.lang.String | getCompressorname()
return compressorname;
|
protected void | getContent(java.nio.ByteBuffer byteBuffer)
_writeReservedAndDataReferenceIndex(byteBuffer);
IsoTypeWriter.writeUInt16(byteBuffer, 0);
IsoTypeWriter.writeUInt16(byteBuffer, 0);
IsoTypeWriter.writeUInt32(byteBuffer, predefined[0]);
IsoTypeWriter.writeUInt32(byteBuffer, predefined[1]);
IsoTypeWriter.writeUInt32(byteBuffer, predefined[2]);
IsoTypeWriter.writeUInt16(byteBuffer, getWidth());
IsoTypeWriter.writeUInt16(byteBuffer, getHeight());
IsoTypeWriter.writeFixedPoint1616(byteBuffer, getHorizresolution());
IsoTypeWriter.writeFixedPoint1616(byteBuffer, getVertresolution());
IsoTypeWriter.writeUInt32(byteBuffer, 0);
IsoTypeWriter.writeUInt16(byteBuffer, getFrameCount());
IsoTypeWriter.writeUInt8(byteBuffer, Utf8.utf8StringLengthInBytes(getCompressorname()));
byteBuffer.put(Utf8.convert(getCompressorname()));
int a = Utf8.utf8StringLengthInBytes(getCompressorname());
while (a < 31) {
a++;
byteBuffer.put((byte) 0);
}
IsoTypeWriter.writeUInt16(byteBuffer, getDepth());
IsoTypeWriter.writeUInt16(byteBuffer, 0xFFFF);
_writeChildBoxes(byteBuffer);
|
protected long | getContentSize()
long contentSize = 78;
for (Box boxe : boxes) {
contentSize += boxe.getSize();
}
return contentSize;
|
public int | getDepth()
return depth;
|
public int | getFrameCount()
return frameCount;
|
public int | getHeight()
return height;
|
public double | getHorizresolution()
return horizresolution;
|
public double | getVertresolution()
return vertresolution;
|
public int | getWidth()
return width;
|
public void | setCompressorname(java.lang.String compressorname)
this.compressorname = compressorname;
|
public void | setDepth(int depth)
this.depth = depth;
|
public void | setFrameCount(int frameCount)
this.frameCount = frameCount;
|
public void | setHeight(int height)
this.height = height;
|
public void | setHorizresolution(double horizresolution)
this.horizresolution = horizresolution;
|
public void | setVertresolution(double vertresolution)
this.vertresolution = vertresolution;
|
public void | setWidth(int width)
this.width = width;
|