diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/lcd.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index de03222441..60d9efaf92 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h | |||
@@ -95,15 +95,24 @@ extern void lcd_puts_scroll(int x, int y, const unsigned char* string); | |||
95 | extern void lcd_puts_scroll_style(int x, int y, const unsigned char* string, | 95 | extern void lcd_puts_scroll_style(int x, int y, const unsigned char* string, |
96 | int style); | 96 | int style); |
97 | 97 | ||
98 | #ifdef HAVE_LCD_BITMAP | ||
99 | |||
98 | #if defined(HAVE_LCD_COLOR) | 100 | #if defined(HAVE_LCD_COLOR) |
99 | #define LCD_YUV_DITHER 0x1 | 101 | #define LCD_YUV_DITHER 0x1 |
100 | extern void lcd_yuv_set_options(unsigned options); | 102 | extern void lcd_yuv_set_options(unsigned options); |
101 | extern void lcd_yuv_blit(unsigned char * const src[3], | 103 | extern void lcd_yuv_blit(unsigned char * const src[3], |
102 | int src_x, int src_y, int stride, | 104 | int src_x, int src_y, int stride, |
103 | int x, int y, int width, int height); | 105 | int x, int y, int width, int height); |
106 | #else | ||
107 | struct grey_data { | ||
108 | unsigned char phase; /* SH1 uses it signed (doesn't matter for high level) */ | ||
109 | unsigned char value; /* 0..128 are allowed */ | ||
110 | } __attribute__((packed)); | ||
111 | extern void lcd_grey_data(const struct grey_data *data, int count); /* private */ | ||
112 | extern void lcd_grey_phase_blit(const struct grey_data *data, int bx, int by, | ||
113 | int bwidth, int bheight, int stride); | ||
104 | #endif | 114 | #endif |
105 | 115 | ||
106 | #ifdef HAVE_LCD_BITMAP | ||
107 | /* performance function */ | 116 | /* performance function */ |
108 | extern void lcd_blit(const fb_data* data, int x, int by, int width, | 117 | extern void lcd_blit(const fb_data* data, int x, int by, int width, |
109 | int bheight, int stride); | 118 | int bheight, int stride); |