35             typename in_t::pixtype convTarget;
 
   38             const int W = in.getWidth(), H = in.getHeight();
 
   41                 if (in() == convTarget) {
 
   64                 out = 
pixint1{ 255 * ((
x / cellSize + 
y / cellSize) % 2) };
 
   95     BitmapProcessing::write<Kernels::ChessboardRendering>(*chess, 
width, 
height, cellSize);
 
  108         for (
int y = area.
a.
y; 
y <= area.
b.
y; ++
y) {
 
  110             for (
int x = area.
a.
x; 
x <= area.
b.
x; ++
x)
 
  111                 for (
int i = 0; i < 
n; ++i, ++
p)
 
  112                     *
p = (
float)std::rand() / RAND_MAX;
 
  116         for (
int y = area.
a.
y; 
y <= area.
b.
y; ++
y) {
 
  118             for (
int x = area.
a.
x; 
x <= area.
b.
x; ++
x)
 
  119                 for (
int i = 0; i < 
n; ++i, ++
p)
 
  120                     *
p = std::rand() % 256;
 
  136         for (
int y = area.
a.
y; 
y <= area.
b.
y; ++
y) {
 
  140             for (
int x = area.
a.
x + 1; 
x <= area.
b.
x; ++
x)
 
  145         for (
int y = area.
a.
y; 
y <= area.
b.
y; ++
y) {
 
  149             for (
int x = area.
a.
x + 1; 
x <= area.
b.
x; ++
x)
 
  157         "Input size does not fit output size");
 
  159         "Input/output pixel formats mismatch");
 
  172             *(po++) = 1 - *(
pi++);
 
  198     BitmapProcessing::read<Kernels::ScanlineSearch>(source, 
val, startFrom, 
result);
 
  206     BitmapProcessing::read<Kernels::ScanlineSearch>(source, 
val, startFrom, 
result);
 
Locks a bitmap for reading on CPU.
 
Makes a bitmap writable for a specific target device.
 
A very basic class for any image.
 
static const unsigned char BITS_PER_PIXEL[NUM_PIXEL_FORMATS]
number of bits per pixel for each pixel format
 
const unsigned char getNumberOfChannels() const
Returns number of bytes per pixel stored in each bitmap.
 
Context & getContext() const
 
virtual const PixelFormat getPixelFormat() const =0
Pixel format of the bitmap.
 
const ImageResolution getSize() const
Returns the bitmap resolution within ImageResolution object.
 
bool isInteger() const
Returns true if the bitmap contains integer values, false otherwise.
 
bool isMask() const
Returns true if the bitmap is a mask, false otherwise.
 
bool isFloat() const
Returns true if the bitmap contains floating point values, false otherwise.
 
virtual const pixbyte * getData(int x, int y) const =0
Returns a pointer to given pixel.
 
static const unsigned char CHANNELS_PER_PIXEL[NUM_PIXEL_FORMATS]
number of channels for each pixel format
 
Basic class: task and memory management, any kind of static data.
 
float performTask(AbstractTask &task, const PoolIndex pool=DEFAULT_POOL)
Performs a given task.
 
virtual const int getHeight() const =0
Height of the texture in pixels.
 
virtual const int getWidth() const =0
Width of the texture in pixels.
 
Exception thrown when an implementation restriction is encountered.
 
Bitmap whose memory is managed by the Beatmup engine.
 
const pixbyte * getData(int x, int y) const
Returns a pointer to given pixel.
 
const int getHeight() const
Height of the texture in pixels.
 
const int getWidth() const
Width of the texture in pixels.
 
const PixelFormat getPixelFormat() const
Pixel format of the bitmap.
 
static void check(const bool condition, const std::string &message)
 
static void process(AbstractBitmap &bitmap, int width, int height, int cellSize)
 
static void process(AbstractBitmap &bitmap, const typename in_t::pixtype &target, const IntPoint &start, IntPoint &result)
 
CustomRectangle< int > IntRectangle
 
@ QuadFloat
4 channels of 32 bits per pixel, single precision floating point values,
 
@ QuadByte
4 channels of 8 bits per pixel (like RGBA), unsigned integer values
 
static const struct Beatmup::@1 CHANNELS_4
 
4-channel floating point arithmetic
 
Monochromatic integer arithmetic.
 
4-channel integer arithmetic
 
Beatmup::AbstractBitmap * copy
 
jlong jint jint jint jint pixelFormat
 
jobject jlong jint jint y
 
jobject jlong jint jint jint r
 
return(jlong) new Beatmup jlong jstring jint val
 
Beatmup::InternalBitmap * bitmap
 
Beatmup::IntPoint p((int) x,(int) y)