Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Unified Diff: target/dartuinoP0/include/target/display/LS013B7DH03.h

Issue 1777783003: [display] Refactor to avoid implicit framebuffer allocation. (Closed) Base URL: https://github.com/littlekernel/lk.git@master
Patch Set: fix stride confusion Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « target/dartuinoP0/display/memory_lcd_mono.c ('k') | target/dartuinoP0/include/target/display/LS013B7DH06.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: target/dartuinoP0/include/target/display/LS013B7DH03.h
diff --git a/target/dartuinoP0/include/target/display/LS013B7DH03.h b/target/dartuinoP0/include/target/display/LS013B7DH03.h
index 5f70aae0cbf98be5872ff351fe72647f6514a20d..3e389776687c98ccbea9c3ffd1643434485853fc 100644
--- a/target/dartuinoP0/include/target/display/LS013B7DH03.h
+++ b/target/dartuinoP0/include/target/display/LS013B7DH03.h
@@ -30,10 +30,11 @@
#define MLCD_WIDTH ((uint16_t)128)
#define MLCD_HEIGHT ((uint16_t)128)
+// Ensure width corresponds to an integral number of bytes
+STATIC_ASSERT((MLCD_WIDTH & 0x3) == 0);
+
// 1 bit per pixel divided by 8 bits per byte
#define MLCD_BYTES_LINE (MLCD_WIDTH / 8)
+#define MLCD_FORMAT (DISPLAY_FORMAT_MONO_1)
-#define FB_FORMAT (DISPLAY_FORMAT_MONO_1)
-#define FB_STRIDE (MLCD_BYTES_LINE)
-
-uint8_t lcd_get_line(uint8_t *framebuffer, uint8_t idx, uint8_t *result);
+uint8_t lcd_get_line(struct display_image *image, uint8_t idx, uint8_t *result);
« no previous file with comments | « target/dartuinoP0/display/memory_lcd_mono.c ('k') | target/dartuinoP0/include/target/display/LS013B7DH06.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698