diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2006-08-02 00:22:01 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2006-08-02 00:22:01 +0000 |
| commit | 628d20a6109bf65175e7c4b1bd9477cdccfd7437 (patch) | |
| tree | a5bdef444b5873a4d24421dcfaf4f94dedbec38c /apps/plugins/lib/gray.h | |
| parent | 8cc73f152b510c946a0285ac010639ebd6668ebc (diff) | |
| download | rockbox-628d20a6109bf65175e7c4b1bd9477cdccfd7437.zip rockbox-628d20a6109bf65175e7c4b1bd9477cdccfd7437.tar.gz rockbox-628d20a6109bf65175e7c4b1bd9477cdccfd7437.tar.bz2 rockbox-628d20a6109bf65175e7c4b1bd9477cdccfd7437.tar.xz | |
Grayscale library: LCD linearisation and gamma correction.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10402 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/gray.h')
| -rw-r--r-- | apps/plugins/lib/gray.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/plugins/lib/gray.h b/apps/plugins/lib/gray.h index 96dec34..398462f 100644 --- a/apps/plugins/lib/gray.h +++ b/apps/plugins/lib/gray.h @@ -38,7 +38,8 @@ /* Library initialisation and release */ int gray_init(struct plugin_api* newrb, unsigned char *gbuf, long gbuf_size, - bool buffered, int width, int bheight, int depth, long *buf_taken); + bool buffered, int width, int bheight, int depth, int gamma, + long *buf_taken); void gray_release(void); /* Special functions */ @@ -138,9 +139,12 @@ struct _gray_info #endif unsigned char *cur_buffer; /* start of current chunky pixel buffer */ unsigned char *back_buffer;/* start of chunky pixel back buffer */ + unsigned char idxtable[256]; /* calculated brightness -> index translation table */ + int fg_index; /* current foreground index */ + int bg_index; /* current background index */ + int fg_brightness; /* current foreground brightness, for returning */ + int bg_brightness; /* current background brightness, for returning */ int drawmode; /* current draw mode */ - int fg_brightness; /* current foreground brightness */ - int bg_brightness; /* current background brightness */ int curfont; /* current selected font */ }; |