Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QcmpCompressionLibrary
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BioinformaticDataCompression
QcmpCompressionLibrary
Commits
3a9e86c5
Commit
3a9e86c5
authored
5 years ago
by
Vojtěch Moravec
Browse files
Options
Downloads
Patches
Plain Diff
Rename BitsPerPixel to BitsPerCodebookIndex.
parent
e8a3318b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/azgracompress/fileformat/QCMPFileHeader.java
+8
-8
8 additions, 8 deletions
src/main/java/azgracompress/fileformat/QCMPFileHeader.java
with
8 additions
and
8 deletions
src/main/java/azgracompress/fileformat/QCMPFileHeader.java
+
8
−
8
View file @
3a9e86c5
...
@@ -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
bitsPer
Pixel
;
private
byte
bitsPer
CodebookIndex
;
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
(
bitsPer
Pixel
==
0
)
if
(
bitsPer
CodebookIndex
==
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
(
bitsPer
Pixel
);
outputStream
.
writeByte
(
bitsPer
CodebookIndex
);
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
());
bitsPer
Pixel
=
inputStream
.
readByte
();
bitsPer
CodebookIndex
=
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
getBitsPer
Pixel
()
{
public
byte
getBitsPer
CodebookIndex
()
{
return
bitsPer
Pixel
;
return
bitsPer
CodebookIndex
;
}
}
public
void
setBitsPer
Pixel
(
byte
bitsPerPixel
)
{
public
void
setBitsPer
CodebookIndex
(
byte
bitsPerCodebookIndex
)
{
this
.
bitsPer
Pixel
=
bitsPerPixel
;
this
.
bitsPer
CodebookIndex
=
bitsPerCodebookIndex
;
}
}
public
boolean
isCodebookPerPlane
()
{
public
boolean
isCodebookPerPlane
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment