public class RandomIterFallbackShort extends Object implements javax.media.jai.iterator.RandomIter
RandomIterFallbackNoCacheNoArray
that uses short vectors to handle indexes rather than int vector. This way we use 2x2
times less memory in the iteratorModifier and Type | Field and Description |
---|---|
protected Rectangle |
boundsRect |
protected int |
boundsX |
protected int |
boundsY |
protected DataBuffer |
dataBuffer |
protected RenderedImage |
im |
protected SampleModel |
sampleModel |
protected int |
sampleModelTranslateX |
protected int |
sampleModelTranslateY |
protected int |
xID |
protected short[] |
xTiles |
protected int |
yID |
protected short[] |
yTiles |
Constructor and Description |
---|
RandomIterFallbackShort(RenderedImage im,
Rectangle bounds) |
Modifier and Type | Method and Description |
---|---|
void |
done() |
double[] |
getPixel(int x,
int y,
double[] dArray) |
float[] |
getPixel(int x,
int y,
float[] fArray) |
int[] |
getPixel(int x,
int y,
int[] iArray) |
int |
getSample(int x,
int y,
int b) |
double |
getSampleDouble(int x,
int y,
int b) |
float |
getSampleFloat(int x,
int y,
int b) |
protected RenderedImage im
protected Rectangle boundsRect
protected SampleModel sampleModel
protected int xID
protected int yID
protected int sampleModelTranslateX
protected int sampleModelTranslateY
protected DataBuffer dataBuffer
protected int boundsX
protected int boundsY
protected short[] xTiles
protected short[] yTiles
public RandomIterFallbackShort(RenderedImage im, Rectangle bounds)
public int getSample(int x, int y, int b)
getSample
in interface javax.media.jai.iterator.RandomIter
public float getSampleFloat(int x, int y, int b)
getSampleFloat
in interface javax.media.jai.iterator.RandomIter
public double getSampleDouble(int x, int y, int b)
getSampleDouble
in interface javax.media.jai.iterator.RandomIter
public int[] getPixel(int x, int y, int[] iArray)
getPixel
in interface javax.media.jai.iterator.RandomIter
public float[] getPixel(int x, int y, float[] fArray)
getPixel
in interface javax.media.jai.iterator.RandomIter
public double[] getPixel(int x, int y, double[] dArray)
getPixel
in interface javax.media.jai.iterator.RandomIter
public void done()
done
in interface javax.media.jai.iterator.RandomIter
Copyright © 2006–2017 GeoSolutions. All rights reserved.