forked from len0rd/rockbox
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
This commit is contained in:
parent
0250be1d67
commit
a1842c04f9
49 changed files with 1653 additions and 341 deletions
|
@ -112,6 +112,9 @@ static struct osd grey_osd;
|
|||
# define _OSD_WIDTH2BYTES(w) ((w)*2)
|
||||
# define _OSD_BYTES2WIDTH(b) ((b)/2)
|
||||
# endif /* end stride type selection */
|
||||
#elif LCD_DEPTH == 24
|
||||
# define _OSD_WIDTH2BYTES(w) ((w)*3)
|
||||
# define _OSD_BYTES2WIDTH(b) ((b)/3)
|
||||
#else /* other LCD depth */
|
||||
# error Unknown LCD depth; please define macros
|
||||
#endif /* LCD_DEPTH */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue