mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2026-05-01 00:00:02 -04:00
Easier subsampling with xSub == 1 as no-op
This commit is contained in:
+3
-5
@@ -171,11 +171,9 @@ final class XWDImageReader extends ImageReaderBase {
|
||||
}
|
||||
}
|
||||
|
||||
if (xSub != 1) {
|
||||
// Horizontal subsampling
|
||||
int samplesPerPixel = header.numComponents();
|
||||
subsampleRow(row, srcRegion.x * samplesPerPixel, srcRegion.width, row, srcRegion.x * samplesPerPixel, samplesPerPixel, header.bitsPerRGB, xSub);
|
||||
}
|
||||
// Horizontal subsampling
|
||||
int samplesPerPixel = header.numComponents();
|
||||
subsampleRow(row, srcRegion.x * samplesPerPixel, srcRegion.width, row, srcRegion.x * samplesPerPixel, samplesPerPixel, header.bitsPerRGB, xSub);
|
||||
|
||||
raster.setDataElements(0, (y - srcRegion.y) / ySub, rowRaster);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user