public class RoughScaler extends Object implements PushbroomScaler
Modifier and Type | Field and Description |
---|---|
protected int[] |
colPositions |
protected ByteBuffer |
destBuf |
protected int |
destHeight |
protected int |
destLine |
protected int |
destWidth |
protected int |
nextSourceLine |
protected int |
numBands |
protected double |
scaleY |
protected int |
sourceLine |
Constructor and Description |
---|
RoughScaler(int sourceWidth,
int sourceHeight,
int numBands,
int destWidth,
int destHeight)
Instantiates a new
RoughScaler object. |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
getDestination()
Retrieves the destination buffer.
|
boolean |
putSourceScanline(byte[] scanline,
int off)
Push one scanline of source pixels into the scaling engine.
|
protected int numBands
protected int destWidth
protected int destHeight
protected double scaleY
protected ByteBuffer destBuf
protected int[] colPositions
protected int sourceLine
protected int nextSourceLine
protected int destLine
public RoughScaler(int sourceWidth, int sourceHeight, int numBands, int destWidth, int destHeight)
RoughScaler
object.sourceWidth
- The source image widthsourceHeight
- The source image heightnumBands
- The number of components per pixel in the imagesdestWidth
- The destination image widthdestHeight
- The destination image heightIllegalArgumentException
- if any of the parameters is non-positive.public ByteBuffer getDestination()
getDestination
in interface PushbroomScaler
public boolean putSourceScanline(byte[] scanline, int off)
putSourceScanline
in interface PushbroomScaler
scanline
- One scanline of source data.off
- The offset into the buffer.IllegalArgumentException
- if off < 0
.Copyright © 2020. All rights reserved.