31 return scanner::operator()();
58 int ix = (int)
x, iy = (
int)
y;
91 ix = (int)
x, iy = (
int)
y,
99 w0 = (1 - fx) * (1 - fy),
143 ix = (int)
x, iy = (
int)
y,
151 w0 = (1 - fx) * (1 - fy),
174 float fy =
y - iy,
w = 1 - fy;
195 return scanner::operator()();
199 int ix = (int)
x, iy = (
int)
y;
200 pixel*
p = (pixel*)scanner::jump(ix, iy);
208 return p[0] * (1 - fx) +
p[1] * fx;
A very basic class for any image.
pixbyte * jump(int x, int y) const
Retrieves pixel address at a given position;.
int height
bitmap sizes in pixels
Floating point bitmap bilinear interpolation, implemented using pixel arithmetics.
FloatBilinearInterpolator(const AbstractBitmap &bitmap, int x=0, int y=0)
pixel operator()(float x, float y) const
Nearest neighbour bitmap interpolation.
NearestNeighborInterpolator(const AbstractBitmap &bitmap, int x=0, int y=0)
pixel operator()(float x, float y) const
Quad byte bitmap bilinear interpolation.
pixint4 operator()() const
QuadByteBilinearInterpolator(const AbstractBitmap &bitmap, int x=0, int y=0)
pixint4 operator()(float x, float y) const
pixint4 operator()() const
Single byte bitmap bilinear interpolation.
pixint1 operator()() const
pixint1 operator()(float x, float y) const
SingleByteBilinearInterpolator(const AbstractBitmap &bitmap, int x=0, int y=0)
Single byte bitmap reader.
pixint1 operator()() const
Returns value at current position.
Triple byte bitmap bilinear interpolation.
TripleByteBilinearInterpolator(const AbstractBitmap &bitmap, int x=0, int y=0)
pixint3 operator()() const
pixint3 operator()(float x, float y) const
Triple byte bitmap reader.
pixint3 operator()() const
NearestNeighborInterpolator< QuadByteBitmapReader, pixint4 > QuadByteNearestNeighborInterpolator
FloatBilinearInterpolator< SingleFloatBitmapReader, pixfloat1 > SingleFloatBilinearInterpolator
NearestNeighborInterpolator< SingleByteBitmapReader, pixint1 > SingleByteNearestNeighborInterpolator
FloatBilinearInterpolator< QuadFloatBitmapReader, pixfloat4 > QuadFloatBilinearInterpolator
NearestNeighborInterpolator< QuadFloatBitmapReader, pixfloat4 > QuadFloatNearestNeighborInterpolator
FloatBilinearInterpolator< TripleFloatBitmapReader, pixfloat3 > TripleFloatBilinearInterpolator
NearestNeighborInterpolator< TripleFloatBitmapReader, pixfloat3 > TripleFloatNearestNeighborInterpolator
NearestNeighborInterpolator< SingleFloatBitmapReader, pixfloat1 > SingleFloatNearestNeighborInterpolator
NearestNeighborInterpolator< TripleByteBitmapReader, pixint3 > TripleByteNearestNeighborInterpolator
Monochromatic integer arithmetic.
Trichromatic integer arithmetic.
4-channel integer arithmetic
#define roundf_fast(X)
rounding (nearest integer)
jobject jlong jint jint y
jlong jstring jint jint jint jint w
Beatmup::InternalBitmap * bitmap
Beatmup::IntPoint p((int) x,(int) y)