mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Add IM_GET_RAW_PIXEL
This commit is contained in:
parent
71a486caa3
commit
002c2894aa
@ -680,6 +680,12 @@ extern const int8_t kernel_high_pass_3[9];
|
||||
__typeof__ (y) _y = (y); \
|
||||
((uint8_t*)_img->pixels)[(_y*_img->w)+_x]; })
|
||||
|
||||
#define IM_GET_RAW_PIXEL(img, x, y) \
|
||||
({ __typeof__ (img) _img = (img); \
|
||||
__typeof__ (x) _x = (x); \
|
||||
__typeof__ (y) _y = (y); \
|
||||
((uint8_t*)_img->pixels)[(_y*_img->w)+_x]; })
|
||||
|
||||
#define IM_GET_RGB565_PIXEL(img, x, y) \
|
||||
({ __typeof__ (img) _img = (img); \
|
||||
__typeof__ (x) _x = (x); \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user