summaryrefslogtreecommitdiff
path: root/apps/recorder/bmp.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder/bmp.h')
-rw-r--r--apps/recorder/bmp.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/recorder/bmp.h b/apps/recorder/bmp.h
index c53f295dfb..946bc6f8b8 100644
--- a/apps/recorder/bmp.h
+++ b/apps/recorder/bmp.h
@@ -52,7 +52,8 @@ struct rowset {
52 short rowstop; 52 short rowstop;
53}; 53};
54 54
55#if (LCD_DEPTH > 1) || defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1) 55#if (LCD_DEPTH > 1) || defined(HAVE_REMOTE_LCD) && (LCD_REMOTE_DEPTH > 1) || \
56 defined(PLUGIN)
56extern const unsigned char dither_table[16]; 57extern const unsigned char dither_table[16];
57#define DITHERY(y) (dither_table[(y) & 15] & 0xAA) 58#define DITHERY(y) (dither_table[(y) & 15] & 0xAA)
58#define DITHERX(x) (dither_table[(x) & 15]) 59#define DITHERX(x) (dither_table[(x) & 15])
@@ -67,7 +68,7 @@ extern const unsigned char dither_table[16];
67*/ 68*/
68static inline unsigned brightness(struct uint8_rgb color) 69static inline unsigned brightness(struct uint8_rgb color)
69{ 70{
70#if LCD_DEPTH > 1 71#if LCD_DEPTH > 1 || defined(PLUGIN)
71 return (77 * (unsigned)color.red + 150 * (unsigned)color.green 72 return (77 * (unsigned)color.red + 150 * (unsigned)color.green
72 + 29 * (unsigned)color.blue) / 256; 73 + 29 * (unsigned)color.blue) / 256;
73#else 74#else
@@ -211,4 +212,9 @@ int read_bmp_fd(int fd,
211 int maxsize, 212 int maxsize,
212 int format, 213 int format,
213 const struct custom_format *cformat); 214 const struct custom_format *cformat);
215#ifdef PLUGIN
216struct plugin_api;
217void bmp_init(const struct plugin_api * api);
218#endif
219
214#endif 220#endif