public class RoughScaler extends java.lang.Object implements PushbroomScaler
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
colPositions |
protected java.nio.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 |
|---|---|
java.nio.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 java.nio.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 heightjava.lang.IllegalArgumentException - if any of the parameters is non-positive.public java.nio.ByteBuffer getDestination()
getDestination in interface PushbroomScalerpublic boolean putSourceScanline(byte[] scanline,
int off)
putSourceScanline in interface PushbroomScalerscanline - One scanline of source data.off - The offset into the buffer.java.lang.IllegalArgumentException - if off < 0.