Colour and colour space specific functions. More...
#include "serdisp_control.h"
Macros | |
#define | serdisp_pack2ARGB(_a, _r, _g, _b) |
packs alpha/red/green/blue values to a 0xAARRGGBB colour value More... | |
#define | serdisp_ARGB2GREY(_col) |
converts a colour value to a grey value More... | |
#define | serdisp_GREY2ARGB(_grey) |
converts a grey value to a 0xAARRGGBB colour value More... | |
Functions | |
Colour set/get functions | |
void | serdisp_setsdcol (serdisp_t *dd, int x, int y, SDCol sdcol) |
set a colour in the display buffer More... | |
void | serdisp_setsdgrey (serdisp_t *dd, int x, int y, byte grey) |
set grey value in the display buffer More... | |
SDCol | serdisp_getsdcol (serdisp_t *dd, int x, int y) |
gets colour value at position (x/y) More... | |
byte | serdisp_getsdgrey (serdisp_t *dd, int x, int y) |
gets grey value at position (x/y) More... | |
int | serdisp_setarea (serdisp_t *dd, int x, int y, int w, int h, int inpmode, byte *content) |
copies an external buffer into the screen buffer More... | |
int | serdisp_cliparea (serdisp_t *dd, int x, int y, int w, int h, int sx, int sy, int cw, int ch, int inpmode, byte *content) |
copies a clip from an external buffer into the screen buffer More... | |
Colour conversion functions | |
int | serdisp_sdcol_init (serdisp_t *dd) |
initialises colour conversion function pointers More... | |
SDCol | serdisp_transsdcol (serdisp_t *dd, SDCol sdcol) |
translates a colour value to the hardware dependent value More... | |
SDCol | serdisp_transsdgrey (serdisp_t *dd, byte greyvalue) |
translates a grey value to the hardware dependent value More... | |
SDCol | serdisp_lookupsdcol (serdisp_t *dd, SDCol sdcol) |
looks up hardware independent colour value to the hardware dependent value More... | |
byte | serdisp_lookupsdgrey (serdisp_t *dd, SDCol sdcol) |
looks up hardware independent grey value to the hardware dependent colour value More... | |
void | serdisp_setsdcoltabentry (serdisp_t *dd, int idx, SDCol sdcol) |
SDCol | serdisp_getsdcoltabentry (serdisp_t *dd, int idx) |
Backward Compatibility functions | |
void | serdisp_setcolour (serdisp_t *dd, int x, int y, long colour) |
set a colour in the display buffer More... | |
void | serdisp_setgrey (serdisp_t *dd, int x, int y, byte grey) |
set grey value in the display buffer More... | |
long | serdisp_getcolour (serdisp_t *dd, int x, int y) |
gets colour value at position (x/y) More... | |
byte | serdisp_getgrey (serdisp_t *dd, int x, int y) |
gets grey value at position (x/y) More... | |
long | serdisp_transcolour (serdisp_t *dd, long colour) |
translates a colour value to the hardware dependent value More... | |
long | serdisp_transgrey (serdisp_t *dd, byte greyvalue) |
translates a grey value to the hardware dependent value More... | |
long | serdisp_lookupcolour (serdisp_t *dd, long colour) |
looks up hardware independent colour value to the hardware dependent value More... | |
byte | serdisp_lookupgrey (serdisp_t *dd, long colour) |
looks up hardware independent grey value to the hardware dependent colour value More... | |
void | serdisp_setcoltabentry (serdisp_t *dd, int idx, long colour) |
long | serdisp_getcoltabentry (serdisp_t *dd, int idx) |