From a1842c04f9cb73210d4cacde61a9e4b115050765 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 18 Jun 2014 07:15:00 +0200 Subject: lcd-24bit: Introduce a 24-bit mid-level LCD driver With LCD driver all calculation will be performed on RGB888 and the hardware/OS can display from our 24bit framebuffer. It is not yet as performance optimized as the existing drivers but should be good enough.The vast number of small changes is due to the fact that fb_data can be a struct type now, while most of the code expected a scalar type. lcd-as-memframe ASM code does not work with 24bit currently so the with 24bit it enforces the generic C code. All plugins are ported over. Except for rockpaint. It uses so much memory that it wouldnt fit into the 512k plugin buffer anymore (patches welcome). Change-Id: Ibb1964545028ce0d8ff9833ccc3ab66be3ee0754 --- apps/plugins/imageviewer/jpeg/yuv2rgb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/plugins/imageviewer/jpeg/yuv2rgb.c') diff --git a/apps/plugins/imageviewer/jpeg/yuv2rgb.c b/apps/plugins/imageviewer/jpeg/yuv2rgb.c index 2395f232b2..764dc71a47 100644 --- a/apps/plugins/imageviewer/jpeg/yuv2rgb.c +++ b/apps/plugins/imageviewer/jpeg/yuv2rgb.c @@ -106,7 +106,7 @@ static fb_data pixel_to_lcd_colour(void) b = component_to_lcd(p->b, LCD_BLUE_BITS, NODITHER_DELTA); b = clamp_component_bits(b, LCD_BLUE_BITS); - return LCD_RGBPACK_LCD(r, g, b); + return FB_RGBPACK_LCD(r, g, b); } /** write a monochrome pixel to the colour LCD **/ @@ -119,7 +119,7 @@ static fb_data pixel_to_lcd_gray(void) b = component_to_lcd(g, LCD_BLUE_BITS, NODITHER_DELTA); g = component_to_lcd(g, LCD_GREEN_BITS, NODITHER_DELTA); - return LCD_RGBPACK_LCD(r, g, b); + return FB_RGBPACK_LCD(r, g, b); } /** @@ -163,7 +163,7 @@ static fb_data pixel_odither_to_lcd(void) p->col += p->inc; - return LCD_RGBPACK_LCD(r, g, b); + return FB_RGBPACK_LCD(r, g, b); } /** @@ -217,7 +217,7 @@ static fb_data pixel_fsdither_to_lcd(void) distribute_error(&p->ce[BLU], &p->e[BLU], bc, epos, inc); /* Pack and return pixel */ - return LCD_RGBPACK_LCD(r, g, b); + return FB_RGBPACK_LCD(r, g, b); } /* Functions for each output mode, colour then grayscale. */ -- cgit v1.2.3