![]() |
GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
Generated macros and function to access pixels. More...
Go to the source code of this file.
Macros | |
#define | GP_PIXEL_ADDR_1BPP_DB(pixmap, x, y) |
A macro to get address of a starting byte for a pixel in a 1BPP_DB pixmap. | |
#define | GP_PIXEL_ADDR_SHIFT_1BPP_DB(pixmap, x) |
A macro to get bit-shift of pixel in 1BPP_DB pixmap. | |
#define | GP_PIXEL_ADDR_OFFSET_1BPP_DB(pixmap, x) |
A macro to get pixel offset in pixels. | |
#define | GP_PIXEL_ADDR_1BPP_UB(pixmap, x, y) |
A macro to get address of a starting byte for a pixel in a 1BPP_UB pixmap. | |
#define | GP_PIXEL_ADDR_SHIFT_1BPP_UB(pixmap, x) |
A macro to get bit-shift of pixel in 1BPP_UB pixmap. | |
#define | GP_PIXEL_ADDR_OFFSET_1BPP_UB(pixmap, x) |
A macro to get pixel offset in pixels. | |
#define | GP_PIXEL_ADDR_2BPP_DB(pixmap, x, y) |
A macro to get address of a starting byte for a pixel in a 2BPP_DB pixmap. | |
#define | GP_PIXEL_ADDR_SHIFT_2BPP_DB(pixmap, x) |
A macro to get bit-shift of pixel in 2BPP_DB pixmap. | |
#define | GP_PIXEL_ADDR_OFFSET_2BPP_DB(pixmap, x) |
A macro to get pixel offset in pixels. | |
#define | GP_PIXEL_ADDR_2BPP_UB(pixmap, x, y) |
A macro to get address of a starting byte for a pixel in a 2BPP_UB pixmap. | |
#define | GP_PIXEL_ADDR_SHIFT_2BPP_UB(pixmap, x) |
A macro to get bit-shift of pixel in 2BPP_UB pixmap. | |
#define | GP_PIXEL_ADDR_OFFSET_2BPP_UB(pixmap, x) |
A macro to get pixel offset in pixels. | |
#define | GP_PIXEL_ADDR_4BPP_DB(pixmap, x, y) |
A macro to get address of a starting byte for a pixel in a 4BPP_DB pixmap. | |
#define | GP_PIXEL_ADDR_SHIFT_4BPP_DB(pixmap, x) |
A macro to get bit-shift of pixel in 4BPP_DB pixmap. | |
#define | GP_PIXEL_ADDR_OFFSET_4BPP_DB(pixmap, x) |
A macro to get pixel offset in pixels. | |
#define | GP_PIXEL_ADDR_4BPP_UB(pixmap, x, y) |
A macro to get address of a starting byte for a pixel in a 4BPP_UB pixmap. | |
#define | GP_PIXEL_ADDR_SHIFT_4BPP_UB(pixmap, x) |
A macro to get bit-shift of pixel in 4BPP_UB pixmap. | |
#define | GP_PIXEL_ADDR_OFFSET_4BPP_UB(pixmap, x) |
A macro to get pixel offset in pixels. | |
#define | GP_PIXEL_ADDR_8BPP(pixmap, x, y) |
A macro to get address of a starting byte for a pixel in a 8BPP pixmap. | |
#define | GP_PIXEL_ADDR_SHIFT_8BPP(pixmap, x) |
A macro to get bit-shift of pixel in 8BPP pixmap. | |
#define | GP_PIXEL_ADDR_OFFSET_8BPP(pixmap, x) |
A macro to get pixel offset in pixels. | |
#define | GP_PIXEL_ADDR_16BPP(pixmap, x, y) |
A macro to get address of a starting byte for a pixel in a 16BPP pixmap. | |
#define | GP_PIXEL_ADDR_SHIFT_16BPP(pixmap, x) |
A macro to get bit-shift of pixel in 16BPP pixmap. | |
#define | GP_PIXEL_ADDR_OFFSET_16BPP(pixmap, x) |
A macro to get pixel offset in pixels. | |
#define | GP_PIXEL_ADDR_16BPP_BE(pixmap, x, y) |
A macro to get address of a starting byte for a pixel in a 16BPP_BE pixmap. | |
#define | GP_PIXEL_ADDR_SHIFT_16BPP_BE(pixmap, x) |
A macro to get bit-shift of pixel in 16BPP_BE pixmap. | |
#define | GP_PIXEL_ADDR_OFFSET_16BPP_BE(pixmap, x) |
A macro to get pixel offset in pixels. | |
#define | GP_PIXEL_ADDR_24BPP(pixmap, x, y) |
A macro to get address of a starting byte for a pixel in a 24BPP pixmap. | |
#define | GP_PIXEL_ADDR_SHIFT_24BPP(pixmap, x) |
A macro to get bit-shift of pixel in 24BPP pixmap. | |
#define | GP_PIXEL_ADDR_OFFSET_24BPP(pixmap, x) |
A macro to get pixel offset in pixels. | |
#define | GP_PIXEL_ADDR_32BPP(pixmap, x, y) |
A macro to get address of a starting byte for a pixel in a 32BPP pixmap. | |
#define | GP_PIXEL_ADDR_SHIFT_32BPP(pixmap, x) |
A macro to get bit-shift of pixel in 32BPP pixmap. | |
#define | GP_PIXEL_ADDR_OFFSET_32BPP(pixmap, x) |
A macro to get pixel offset in pixels. | |
#define | GP_PIXEL_ADDR_18BPP_DB(pixmap, x, y) |
A macro to get address of a starting byte for a pixel in a 18BPP_DB pixmap. | |
#define | GP_PIXEL_ADDR_SHIFT_18BPP_DB(pixmap, x) |
A macro to get bit-shift of pixel in 18BPP_DB pixmap. | |
#define | GP_PIXEL_ADDR_OFFSET_18BPP_DB(pixmap, x) |
A macro to get pixel offset in pixels. | |
Generated macros and function to access pixels.
These function and macros are generated based on the pixel defintions in gfxprim_config.py. The get and put pixel functions are build on the top of macros to manipulate bytes and bits.
The GP_PIXEL_ADDR macros return a pointer to the first byte of the pixel in the gp_pixmap buffer. If the pixel is aligned to whole bytes, we just need to fetch/write a few bytes. Otherwise we need to compute the shift, fetch a few bytes and then mask and bit shift it.
Unaligned access happens when instruction that works with multiple byte value gets an address that is not divideable by the size of the value. Eg. if 32 bit integer instruction gets an address that is not a multiple of 4. On intel cpus this type of access works and is supported however the C standard defines this as undefined behavior. This fails to work older ARM and most of the non intel cpus. So some more trickery must be done in order to write unaligned multibyte values. First of all we must compute offset and number of bytes to be accessed (which is cruicial for speed as we are going to read the pixel value byte by byte).
The offsets (starting with the first one e.g. pixel_size mod 8) forms subgroup in the mod 8 cyclic group. The maximal count of bits, from the start of the byte, then will be max from this subgroup + pixel_size. If this number is less or equal to 8 * N, we could write such pixel by writing N bytes.
For example the offsets of 16 BPP forms subgroup only with {0} so we only need 2 bytes to write it. As a matter of fact the 16 and 32 BPP are special cases that are always aligned together with the 8 BPP (which is aligned trivially). These three are coded as special cases which yields to faster operations in case of 16 and 32 BPP. The 24 BPP is not aligned as there are no instruction to operate 3 byte long numbers.
For second example take offsets of 20 BPP that forms subgroup {4, 0} so the max + pixel_size = 24 and indeed we fit into 3 bytes.
If pixel_size is coprime to 8, the offsets generates whole group and so the max + pixel_size = 7 + pixel_size. The 17 BPP fits into 24 bits and so 3 bytes are needed. The 19 BPP fits into 26 bits and because of that 4 bytes are needed.
Once we figure maximal number of bytes and the offset all that is to be done is to fetch first and last byte to combine it together with given pixel value and write the result back to the bitmap.
Definition in file gp_get_put_pixel.gen.h.
#define GP_PIXEL_ADDR_16BPP | ( | pixmap, | |
x, | |||
y ) |
A macro to get address of a starting byte for a pixel in a 16BPP pixmap.
pixmap | A pixmap. |
x | An x coordinate within the pixmap. |
y | An y coordinate within the pixmap. |
Definition at line 627 of file gp_get_put_pixel.gen.h.
Referenced by gp_getpixel_raw_16BPP(), and gp_putpixel_raw_16BPP().
#define GP_PIXEL_ADDR_16BPP_BE | ( | pixmap, | |
x, | |||
y ) |
A macro to get address of a starting byte for a pixel in a 16BPP_BE pixmap.
pixmap | A pixmap. |
x | An x coordinate within the pixmap. |
y | An y coordinate within the pixmap. |
Definition at line 699 of file gp_get_put_pixel.gen.h.
Referenced by gp_getpixel_raw_16BPP_BE(), and gp_putpixel_raw_16BPP_BE().
#define GP_PIXEL_ADDR_18BPP_DB | ( | pixmap, | |
x, | |||
y ) |
A macro to get address of a starting byte for a pixel in a 18BPP_DB pixmap.
pixmap | A pixmap. |
x | An x coordinate within the pixmap. |
y | An y coordinate within the pixmap. |
Definition at line 933 of file gp_get_put_pixel.gen.h.
Referenced by gp_getpixel_raw_18BPP_DB(), and gp_putpixel_raw_18BPP_DB().
#define GP_PIXEL_ADDR_1BPP_DB | ( | pixmap, | |
x, | |||
y ) |
A macro to get address of a starting byte for a pixel in a 1BPP_DB pixmap.
pixmap | A pixmap. |
x | An x coordinate within the pixmap. |
y | An y coordinate within the pixmap. |
Definition at line 87 of file gp_get_put_pixel.gen.h.
Referenced by gp_getpixel_raw_1BPP_DB(), and gp_putpixel_raw_1BPP_DB().
#define GP_PIXEL_ADDR_1BPP_UB | ( | pixmap, | |
x, | |||
y ) |
A macro to get address of a starting byte for a pixel in a 1BPP_UB pixmap.
pixmap | A pixmap. |
x | An x coordinate within the pixmap. |
y | An y coordinate within the pixmap. |
Definition at line 165 of file gp_get_put_pixel.gen.h.
Referenced by gp_getpixel_raw_1BPP_UB(), and gp_putpixel_raw_1BPP_UB().
#define GP_PIXEL_ADDR_24BPP | ( | pixmap, | |
x, | |||
y ) |
A macro to get address of a starting byte for a pixel in a 24BPP pixmap.
pixmap | A pixmap. |
x | An x coordinate within the pixmap. |
y | An y coordinate within the pixmap. |
Definition at line 771 of file gp_get_put_pixel.gen.h.
Referenced by gp_getpixel_raw_24BPP(), and gp_putpixel_raw_24BPP().
#define GP_PIXEL_ADDR_2BPP_DB | ( | pixmap, | |
x, | |||
y ) |
A macro to get address of a starting byte for a pixel in a 2BPP_DB pixmap.
pixmap | A pixmap. |
x | An x coordinate within the pixmap. |
y | An y coordinate within the pixmap. |
Definition at line 243 of file gp_get_put_pixel.gen.h.
Referenced by gp_getpixel_raw_2BPP_DB(), and gp_putpixel_raw_2BPP_DB().
#define GP_PIXEL_ADDR_2BPP_UB | ( | pixmap, | |
x, | |||
y ) |
A macro to get address of a starting byte for a pixel in a 2BPP_UB pixmap.
pixmap | A pixmap. |
x | An x coordinate within the pixmap. |
y | An y coordinate within the pixmap. |
Definition at line 321 of file gp_get_put_pixel.gen.h.
Referenced by gp_getpixel_raw_2BPP_UB(), and gp_putpixel_raw_2BPP_UB().
#define GP_PIXEL_ADDR_32BPP | ( | pixmap, | |
x, | |||
y ) |
A macro to get address of a starting byte for a pixel in a 32BPP pixmap.
pixmap | A pixmap. |
x | An x coordinate within the pixmap. |
y | An y coordinate within the pixmap. |
Definition at line 861 of file gp_get_put_pixel.gen.h.
Referenced by gp_getpixel_raw_32BPP(), and gp_putpixel_raw_32BPP().
#define GP_PIXEL_ADDR_4BPP_DB | ( | pixmap, | |
x, | |||
y ) |
A macro to get address of a starting byte for a pixel in a 4BPP_DB pixmap.
pixmap | A pixmap. |
x | An x coordinate within the pixmap. |
y | An y coordinate within the pixmap. |
Definition at line 399 of file gp_get_put_pixel.gen.h.
Referenced by gp_getpixel_raw_4BPP_DB(), and gp_putpixel_raw_4BPP_DB().
#define GP_PIXEL_ADDR_4BPP_UB | ( | pixmap, | |
x, | |||
y ) |
A macro to get address of a starting byte for a pixel in a 4BPP_UB pixmap.
pixmap | A pixmap. |
x | An x coordinate within the pixmap. |
y | An y coordinate within the pixmap. |
Definition at line 477 of file gp_get_put_pixel.gen.h.
Referenced by gp_getpixel_raw_4BPP_UB(), and gp_putpixel_raw_4BPP_UB().
#define GP_PIXEL_ADDR_8BPP | ( | pixmap, | |
x, | |||
y ) |
A macro to get address of a starting byte for a pixel in a 8BPP pixmap.
pixmap | A pixmap. |
x | An x coordinate within the pixmap. |
y | An y coordinate within the pixmap. |
Definition at line 555 of file gp_get_put_pixel.gen.h.
Referenced by gp_getpixel_raw_8BPP(), and gp_putpixel_raw_8BPP().
#define GP_PIXEL_ADDR_SHIFT_16BPP | ( | pixmap, | |
x ) |
A macro to get bit-shift of pixel in 16BPP pixmap.
pixmap | A pixmap. |
x | An x coordinate in the pixmap. |
Definition at line 637 of file gp_get_put_pixel.gen.h.
#define GP_PIXEL_ADDR_SHIFT_16BPP_BE | ( | pixmap, | |
x ) |
A macro to get bit-shift of pixel in 16BPP_BE pixmap.
pixmap | A pixmap. |
x | An x coordinate in the pixmap. |
Definition at line 709 of file gp_get_put_pixel.gen.h.
#define GP_PIXEL_ADDR_SHIFT_18BPP_DB | ( | pixmap, | |
x ) |
A macro to get bit-shift of pixel in 18BPP_DB pixmap.
pixmap | A pixmap. |
x | An x coordinate in the pixmap. |
Definition at line 943 of file gp_get_put_pixel.gen.h.
Referenced by gp_getpixel_raw_18BPP_DB(), and gp_putpixel_raw_18BPP_DB().
#define GP_PIXEL_ADDR_SHIFT_1BPP_DB | ( | pixmap, | |
x ) |
A macro to get bit-shift of pixel in 1BPP_DB pixmap.
pixmap | A pixmap. |
x | An x coordinate in the pixmap. |
Definition at line 97 of file gp_get_put_pixel.gen.h.
Referenced by gp_getpixel_raw_1BPP_DB(), and gp_putpixel_raw_1BPP_DB().
#define GP_PIXEL_ADDR_SHIFT_1BPP_UB | ( | pixmap, | |
x ) |
A macro to get bit-shift of pixel in 1BPP_UB pixmap.
pixmap | A pixmap. |
x | An x coordinate in the pixmap. |
Definition at line 175 of file gp_get_put_pixel.gen.h.
Referenced by gp_getpixel_raw_1BPP_UB(), and gp_putpixel_raw_1BPP_UB().
#define GP_PIXEL_ADDR_SHIFT_24BPP | ( | pixmap, | |
x ) |
A macro to get bit-shift of pixel in 24BPP pixmap.
pixmap | A pixmap. |
x | An x coordinate in the pixmap. |
Definition at line 781 of file gp_get_put_pixel.gen.h.
Referenced by gp_getpixel_raw_24BPP(), and gp_putpixel_raw_24BPP().
#define GP_PIXEL_ADDR_SHIFT_2BPP_DB | ( | pixmap, | |
x ) |
A macro to get bit-shift of pixel in 2BPP_DB pixmap.
pixmap | A pixmap. |
x | An x coordinate in the pixmap. |
Definition at line 253 of file gp_get_put_pixel.gen.h.
Referenced by gp_getpixel_raw_2BPP_DB(), and gp_putpixel_raw_2BPP_DB().
#define GP_PIXEL_ADDR_SHIFT_2BPP_UB | ( | pixmap, | |
x ) |
A macro to get bit-shift of pixel in 2BPP_UB pixmap.
pixmap | A pixmap. |
x | An x coordinate in the pixmap. |
Definition at line 331 of file gp_get_put_pixel.gen.h.
Referenced by gp_getpixel_raw_2BPP_UB(), and gp_putpixel_raw_2BPP_UB().
#define GP_PIXEL_ADDR_SHIFT_32BPP | ( | pixmap, | |
x ) |
A macro to get bit-shift of pixel in 32BPP pixmap.
pixmap | A pixmap. |
x | An x coordinate in the pixmap. |
Definition at line 871 of file gp_get_put_pixel.gen.h.
#define GP_PIXEL_ADDR_SHIFT_4BPP_DB | ( | pixmap, | |
x ) |
A macro to get bit-shift of pixel in 4BPP_DB pixmap.
pixmap | A pixmap. |
x | An x coordinate in the pixmap. |
Definition at line 409 of file gp_get_put_pixel.gen.h.
Referenced by gp_getpixel_raw_4BPP_DB(), and gp_putpixel_raw_4BPP_DB().
#define GP_PIXEL_ADDR_SHIFT_4BPP_UB | ( | pixmap, | |
x ) |
A macro to get bit-shift of pixel in 4BPP_UB pixmap.
pixmap | A pixmap. |
x | An x coordinate in the pixmap. |
Definition at line 487 of file gp_get_put_pixel.gen.h.
Referenced by gp_getpixel_raw_4BPP_UB(), and gp_putpixel_raw_4BPP_UB().
#define GP_PIXEL_ADDR_SHIFT_8BPP | ( | pixmap, | |
x ) |
A macro to get bit-shift of pixel in 8BPP pixmap.
pixmap | A pixmap. |
x | An x coordinate in the pixmap. |
Definition at line 565 of file gp_get_put_pixel.gen.h.
gp_getpixel for 16BPP
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
Definition at line 657 of file gp_get_put_pixel.gen.h.
References GP_GET_BYTES2_LE, and GP_PIXEL_ADDR_16BPP.
|
inlinestatic |
gp_getpixel for 16BPP_BE
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
Definition at line 729 of file gp_get_put_pixel.gen.h.
References GP_GET_BYTES2_BE, and GP_PIXEL_ADDR_16BPP_BE.
|
inlinestatic |
gp_getpixel for 18BPP_DB
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
Definition at line 963 of file gp_get_put_pixel.gen.h.
References GP_GET_BITS3_LE, GP_PIXEL_ADDR_18BPP_DB, and GP_PIXEL_ADDR_SHIFT_18BPP_DB.
|
inlinestatic |
gp_getpixel for 1BPP_DB
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
Definition at line 117 of file gp_get_put_pixel.gen.h.
References GP_GET_BITS1, GP_PIXEL_ADDR_1BPP_DB, and GP_PIXEL_ADDR_SHIFT_1BPP_DB.
|
inlinestatic |
gp_getpixel for 1BPP_UB
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
Definition at line 195 of file gp_get_put_pixel.gen.h.
References GP_GET_BITS1, GP_PIXEL_ADDR_1BPP_UB, and GP_PIXEL_ADDR_SHIFT_1BPP_UB.
gp_getpixel for 24BPP
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
Definition at line 801 of file gp_get_put_pixel.gen.h.
References GP_GET_BITS3_LE, GP_PIXEL_ADDR_24BPP, and GP_PIXEL_ADDR_SHIFT_24BPP.
|
inlinestatic |
gp_getpixel for 2BPP_DB
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
Definition at line 273 of file gp_get_put_pixel.gen.h.
References GP_GET_BITS1, GP_PIXEL_ADDR_2BPP_DB, and GP_PIXEL_ADDR_SHIFT_2BPP_DB.
|
inlinestatic |
gp_getpixel for 2BPP_UB
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
Definition at line 351 of file gp_get_put_pixel.gen.h.
References GP_GET_BITS1, GP_PIXEL_ADDR_2BPP_UB, and GP_PIXEL_ADDR_SHIFT_2BPP_UB.
gp_getpixel for 32BPP
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
Definition at line 891 of file gp_get_put_pixel.gen.h.
References GP_GET_BYTES4_LE, and GP_PIXEL_ADDR_32BPP.
|
inlinestatic |
gp_getpixel for 4BPP_DB
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
Definition at line 429 of file gp_get_put_pixel.gen.h.
References GP_GET_BITS1, GP_PIXEL_ADDR_4BPP_DB, and GP_PIXEL_ADDR_SHIFT_4BPP_DB.
|
inlinestatic |
gp_getpixel for 4BPP_UB
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
Definition at line 507 of file gp_get_put_pixel.gen.h.
References GP_GET_BITS1, GP_PIXEL_ADDR_4BPP_UB, and GP_PIXEL_ADDR_SHIFT_4BPP_UB.
gp_getpixel for 8BPP
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
Definition at line 585 of file gp_get_put_pixel.gen.h.
References GP_GET_BYTES1, and GP_PIXEL_ADDR_8BPP.
|
inlinestatic |
gp_putpixel for 16BPP
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
p | A pixel value to be written into the buffer. |
Definition at line 675 of file gp_get_put_pixel.gen.h.
References GP_PIXEL_ADDR_16BPP, and GP_SET_BYTES2_LE.
|
inlinestatic |
gp_putpixel for 16BPP_BE
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
p | A pixel value to be written into the buffer. |
Definition at line 747 of file gp_get_put_pixel.gen.h.
References GP_PIXEL_ADDR_16BPP_BE, and GP_SET_BYTES2_BE.
|
inlinestatic |
gp_putpixel for 18BPP_DB
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
p | A pixel value to be written into the buffer. |
Definition at line 990 of file gp_get_put_pixel.gen.h.
References GP_PIXEL_ADDR_18BPP_DB, GP_PIXEL_ADDR_SHIFT_18BPP_DB, and GP_SET_BITS3_LE.
|
inlinestatic |
gp_putpixel for 1BPP_DB
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
p | A pixel value to be written into the buffer. |
Definition at line 138 of file gp_get_put_pixel.gen.h.
References GP_PIXEL_ADDR_1BPP_DB, GP_PIXEL_ADDR_SHIFT_1BPP_DB, and GP_SET_BITS1.
|
inlinestatic |
gp_putpixel for 1BPP_UB
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
p | A pixel value to be written into the buffer. |
Definition at line 216 of file gp_get_put_pixel.gen.h.
References GP_PIXEL_ADDR_1BPP_UB, GP_PIXEL_ADDR_SHIFT_1BPP_UB, and GP_SET_BITS1.
|
inlinestatic |
gp_putpixel for 24BPP
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
p | A pixel value to be written into the buffer. |
Definition at line 828 of file gp_get_put_pixel.gen.h.
References GP_PIXEL_ADDR_24BPP, GP_PIXEL_ADDR_SHIFT_24BPP, and GP_SET_BITS3_LE.
|
inlinestatic |
gp_putpixel for 2BPP_DB
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
p | A pixel value to be written into the buffer. |
Definition at line 294 of file gp_get_put_pixel.gen.h.
References GP_PIXEL_ADDR_2BPP_DB, GP_PIXEL_ADDR_SHIFT_2BPP_DB, and GP_SET_BITS1.
|
inlinestatic |
gp_putpixel for 2BPP_UB
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
p | A pixel value to be written into the buffer. |
Definition at line 372 of file gp_get_put_pixel.gen.h.
References GP_PIXEL_ADDR_2BPP_UB, GP_PIXEL_ADDR_SHIFT_2BPP_UB, and GP_SET_BITS1.
|
inlinestatic |
gp_putpixel for 32BPP
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
p | A pixel value to be written into the buffer. |
Definition at line 909 of file gp_get_put_pixel.gen.h.
References GP_PIXEL_ADDR_32BPP, and GP_SET_BYTES4_LE.
|
inlinestatic |
gp_putpixel for 4BPP_DB
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
p | A pixel value to be written into the buffer. |
Definition at line 450 of file gp_get_put_pixel.gen.h.
References GP_PIXEL_ADDR_4BPP_DB, GP_PIXEL_ADDR_SHIFT_4BPP_DB, and GP_SET_BITS1.
|
inlinestatic |
gp_putpixel for 4BPP_UB
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
p | A pixel value to be written into the buffer. |
Definition at line 528 of file gp_get_put_pixel.gen.h.
References GP_PIXEL_ADDR_4BPP_UB, GP_PIXEL_ADDR_SHIFT_4BPP_UB, and GP_SET_BITS1.
gp_putpixel for 8BPP
c | A pixmap. |
x | A x coordinate. |
y | A y coordinate. |
p | A pixel value to be written into the buffer. |
Definition at line 603 of file gp_get_put_pixel.gen.h.
References GP_PIXEL_ADDR_8BPP, and GP_SET_BYTES1.