Beatmup
|
A generic to access sub-byte mask bitmap data. More...
#include <mask_bitmap_access.h>
Public Member Functions | |
unsigned char | getValue () const |
Returns 0..MAX_UNNORM_VALUE value at current position. More... | |
unsigned char | getValue (int x, int y) const |
Returns 0..MAX_UNNORM_VALUE value at (x,y) position. More... | |
unsigned char | getValue (int i) const |
Returns 0..MAX_UNNORM_VALUE value at position shifted by i pixels in scanline order with respect to the current position. More... | |
pixint1 | operator() () const |
Returns 0..255 value at current position. More... | |
pixint1 | operator() (int x, int y) const |
Returns 0..255 value at (x,y) position. More... | |
const pixint1 | operator[] (int i) const |
Returns 0..255 value at position shifted by i pixels in scanline order with respect to the current position. More... | |
void | operator++ (int) |
Move the current position ONE PIXEL forward. More... | |
void | operator+= (const int N) |
Move the current position N pixels forward. More... | |
void | goTo (int x, int y) |
Changes current position. More... | |
LookupMaskScanner (const AbstractBitmap &bitmap, int x=0, int y=0) | |
Public Member Functions inherited from Beatmup::MaskScanner< num_bits > | |
bool | operator< (const MaskScanner &another) const |
pixtype * | operator* () const |
int | getWidth () const |
Returns bitmap width in pixels. More... | |
int | getHeight () const |
Returns bitmap height in pixels. More... | |
Protected Attributes | |
const int | pointsPerByte = 8 / num_bits |
Protected Attributes inherited from Beatmup::MaskScanner< num_bits > | |
unsigned char * | data |
all bitmap data More... | |
unsigned char * | ptr |
pointer to current pixel More... | |
unsigned char | bit |
current position bit More... | |
int | width |
int | height |
bitmap size in pixels More... | |
Additional Inherited Members | |
Public Types inherited from Beatmup::MaskScanner< num_bits > | |
typedef unsigned char | pixvaltype |
typedef pixint1 | pixtype |
Public Attributes inherited from Beatmup::MaskScanner< num_bits > | |
const int | NUMBER_OF_CHANNELS = 1 |
const int | NUMBER_OF_BITS = num_bits |
const int | MAX_VALUE = 255 |
const int | MAX_UNNORM_VALUE = (1 << num_bits) - 1 |
Protected Member Functions inherited from Beatmup::MaskScanner< num_bits > | |
MaskScanner (const AbstractBitmap &bitmap) | |
A generic to access sub-byte mask bitmap data.
Definition at line 83 of file mask_bitmap_access.h.
|
inline |
Definition at line 171 of file mask_bitmap_access.h.
|
inline |
Returns 0..MAX_UNNORM_VALUE value at current position.
Definition at line 90 of file mask_bitmap_access.h.
|
inline |
Returns 0..MAX_UNNORM_VALUE value at (x,y) position.
Definition at line 97 of file mask_bitmap_access.h.
|
inline |
Returns 0..MAX_UNNORM_VALUE value at position shifted by i pixels in scanline order with respect to the current position.
Definition at line 109 of file mask_bitmap_access.h.
|
inline |
Returns 0..255 value at current position.
Definition at line 120 of file mask_bitmap_access.h.
|
inline |
Returns 0..255 value at (x,y) position.
Definition at line 127 of file mask_bitmap_access.h.
|
inline |
Returns 0..255 value at position shifted by i pixels in scanline order with respect to the current position.
Definition at line 134 of file mask_bitmap_access.h.
|
inline |
Move the current position ONE PIXEL forward.
Definition at line 141 of file mask_bitmap_access.h.
|
inline |
|
inline |
|
protected |
Definition at line 85 of file mask_bitmap_access.h.