Add IM_GET_RAW_PIXEL

This commit is contained in:
iabdalkader 2017-03-12 02:36:52 +02:00
parent 71a486caa3
commit 002c2894aa

View File

@ -680,6 +680,12 @@ extern const int8_t kernel_high_pass_3[9];
__typeof__ (y) _y = (y); \ __typeof__ (y) _y = (y); \
((uint8_t*)_img->pixels)[(_y*_img->w)+_x]; }) ((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) \ #define IM_GET_RGB565_PIXEL(img, x, y) \
({ __typeof__ (img) _img = (img); \ ({ __typeof__ (img) _img = (img); \
__typeof__ (x) _x = (x); \ __typeof__ (x) _x = (x); \