mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-04 12:05:29 -04:00
PCX: Minor clean up
(cherry picked from commit d87b80deeab3e08bdf392fcbc863724385d9e6b6)
This commit is contained in:
parent
e0c7edebbd
commit
87cd506fdd
@ -213,14 +213,12 @@ public final class PCXImageReader extends ImageReaderBase {
|
||||
byte[] rowDataByte = ((DataBufferByte) rowRaster.getDataBuffer()).getData();
|
||||
|
||||
for (int y = 0; y < height; y++) {
|
||||
switch (header.getBitsPerPixel()) {
|
||||
case 1:
|
||||
readRowByte(input, srcRegion, xSub, ySub, planeData, 0, planeWidth * header.getChannels(), destRaster, clippedRow, y);
|
||||
break;
|
||||
default:
|
||||
throw new AssertionError();
|
||||
if (header.getBitsPerPixel() != 1) {
|
||||
throw new AssertionError();
|
||||
}
|
||||
|
||||
readRowByte(input, srcRegion, xSub, ySub, planeData, 0, planeWidth * header.getChannels(), destRaster, clippedRow, y);
|
||||
|
||||
int pixelPos = 0;
|
||||
for (int planePos = 0; planePos < planeWidth; planePos++) {
|
||||
BitRotator.bitRotateCW(planeData, planePos, planeWidth, rowDataByte, pixelPos, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user