mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Add comment on RGB565->RGB888 macros
This commit is contained in:
parent
aeee94726b
commit
7cd5e9e840
@ -14,6 +14,11 @@
|
||||
|
||||
#define BUF_LEN (1024*3)
|
||||
|
||||
/*
|
||||
* The following macros and lookup tables extract and convert
|
||||
* packed RGB565 to RGB888, this saves 1 mult and 1 div later.
|
||||
* Note the packed RGB565 pixel is accessed LSB first in memory.
|
||||
*/
|
||||
#define R8(p) \
|
||||
rb_tbl[((p>>3)&0x1F)]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user