Skip to content
Snippets Groups Projects
Commit 3a9e86c5 authored by Vojtěch Moravec's avatar Vojtěch Moravec
Browse files

Rename BitsPerPixel to BitsPerCodebookIndex.

parent e8a3318b
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ public class QCMPFileHeader { ...@@ -14,7 +14,7 @@ public class QCMPFileHeader {
private String magicValue = QCMP_MAGIC_VALUE; private String magicValue = QCMP_MAGIC_VALUE;
private QuantizationType quantizationType; private QuantizationType quantizationType;
private byte bitsPerPixel; private byte bitsPerCodebookIndex;
private boolean codebookPerPlane; private boolean codebookPerPlane;
private int imageSizeX; private int imageSizeX;
...@@ -37,7 +37,7 @@ public class QCMPFileHeader { ...@@ -37,7 +37,7 @@ public class QCMPFileHeader {
if (!magicValue.equals(QCMP_MAGIC_VALUE)) if (!magicValue.equals(QCMP_MAGIC_VALUE))
return false; return false;
if (bitsPerPixel == 0) if (bitsPerCodebookIndex == 0)
return false; return false;
if (!U16.isInRange(imageSizeX)) if (!U16.isInRange(imageSizeX))
...@@ -61,7 +61,7 @@ public class QCMPFileHeader { ...@@ -61,7 +61,7 @@ public class QCMPFileHeader {
outputStream.writeBytes(QCMP_MAGIC_VALUE); outputStream.writeBytes(QCMP_MAGIC_VALUE);
outputStream.writeByte(quantizationType.getValue()); outputStream.writeByte(quantizationType.getValue());
outputStream.writeByte(bitsPerPixel); outputStream.writeByte(bitsPerCodebookIndex);
outputStream.writeBoolean(codebookPerPlane); outputStream.writeBoolean(codebookPerPlane);
outputStream.writeShort(imageSizeX); outputStream.writeShort(imageSizeX);
...@@ -98,7 +98,7 @@ public class QCMPFileHeader { ...@@ -98,7 +98,7 @@ public class QCMPFileHeader {
} }
quantizationType = QuantizationType.fromByte(inputStream.readByte()); quantizationType = QuantizationType.fromByte(inputStream.readByte());
bitsPerPixel = inputStream.readByte(); bitsPerCodebookIndex = inputStream.readByte();
codebookPerPlane = inputStream.readBoolean(); codebookPerPlane = inputStream.readBoolean();
imageSizeX = inputStream.readUnsignedShort(); imageSizeX = inputStream.readUnsignedShort();
...@@ -126,12 +126,12 @@ public class QCMPFileHeader { ...@@ -126,12 +126,12 @@ public class QCMPFileHeader {
this.quantizationType = quantizationType; this.quantizationType = quantizationType;
} }
public byte getBitsPerPixel() { public byte getBitsPerCodebookIndex() {
return bitsPerPixel; return bitsPerCodebookIndex;
} }
public void setBitsPerPixel(byte bitsPerPixel) { public void setBitsPerCodebookIndex(byte bitsPerCodebookIndex) {
this.bitsPerPixel = bitsPerPixel; this.bitsPerCodebookIndex = bitsPerCodebookIndex;
} }
public boolean isCodebookPerPlane() { public boolean isCodebookPerPlane() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment