#include "sysdeps.h"
#include <stdio.h>
Go to the source code of this file.
|
#define | BITMAP_BYTES 4 |
|
#define | BITMAP_BITS (BITMAP_BYTES << 3) |
|
#define | BM_BYTES_PER_LINE(b) (ROUND((b)->width, BITMAP_BITS) * BITMAP_BYTES) |
|
#define | BM_WIDTH(b) (((BITMAP *)(b))->width) |
|
#define | BM_HEIGHT(b) (((BITMAP *)(b))->height) |
|
#define | BMBIT(n) ((BmUnit)1 << (n)) |
|
#define | bm_offset(b, o) (BmUnit *)((Uchar *)(b) + (o)) |
|
#define | __bm_unit_ptr(b, x, y) |
|
#define | __bm_unit(b, x, y) __bm_unit_ptr((b), (x), (y))[0] |
|
#define | BM_GETPIXEL(b, x, y) __bm_unit((b), (x), (y)) |
|
#define | BM_SETPIXEL(b, x, y) (__bm_unit((b), (x), (y)) |= FIRSTMASKAT(x)) |
|
#define | BM_CLRPIXEL(b, x, y) (__bm_unit((b), (x), (y)) &= ~FIRSTMASKAT(x)) |
|
#define | FIRSTSHIFT 0 |
|
#define | LASTSHIFT (BITMAP_BITS - 1) |
|
#define | NEXTMASK(m) ((m) <<= 1) |
|
#define | PREVMASK(m) ((m) >>= 1) |
|
#define | FIRSTSHIFTAT(c) ((c) % BITMAP_BITS) |
|
#define | FIRSTMASK BMBIT(FIRSTSHIFT) |
|
#define | FIRSTMASKAT(c) BMBIT(FIRSTSHIFTAT(c)) |
|
#define | LASTMASK BMBIT(LASTSHIFT) |
|
|
BITMAP *bitmap_alloc | __PROTO ((int, int)) |
|
void bitmap_destroy | __PROTO ((BITMAP *)) |
|
void bitmap_set_col | __PROTO ((BITMAP *, int, int, int, int)) |
|
void bitmap_paint_bits | __PROTO ((BmUnit *, int, int)) |
|
BITMAP *bitmap_convert_lsb8 | __PROTO ((Uchar *, int, int, int)) |
|
void bitmap_print | __PROTO ((FILE *, BITMAP *)) |
|
#define __bm_unit_ptr |
( |
|
b, |
|
|
|
x, |
|
|
|
y |
|
) |
| |
#define BM_GETPIXEL |
( |
|
b, |
|
|
|
x, |
|
|
|
y |
|
) |
| __bm_unit((b), (x), (y)) |
#define BM_HEIGHT |
( |
|
b) | |
(((BITMAP *)(b))->height) |
#define bm_offset |
( |
|
b, |
|
|
|
o |
|
) |
| (BmUnit *)((Uchar *)(b) + (o)) |
#define BM_WIDTH |
( |
|
b) | |
(((BITMAP *)(b))->width) |
#define BMBIT |
( |
|
n) | |
((BmUnit)1 << (n)) |
#define NEXTMASK |
( |
|
m) | |
((m) <<= 1) |
#define PREVMASK |
( |
|
m) | |
((m) >>= 1) |