49 image = malloc(map->
size_x * map->
size_y *
sizeof(image[0]));
52 for (j = 0; j < map->
size_y; j++)
54 for (i = 0; i < map->
size_x; i++)
57 pixel = image + (j * map->
size_x + i);
60 *pixel = RTK_RGB16(col, col, col);
84 image = malloc(map->
size_x * map->
size_y *
sizeof(image[0]));
87 for (j = 0; j < map->
size_y; j++)
89 for (i = 0; i < map->
size_x; i++)
92 pixel = image + (j * map->
size_x + i);
96 *pixel = RTK_RGB16(col, col, col);
117 uint16_t *image, *mask;
118 uint16_t *ipix, *mpix;
120 image = malloc(map->
size_x * map->
size_y *
sizeof(image[0]));
121 mask = malloc(map->
size_x * map->
size_y *
sizeof(mask[0]));
124 for (j = 0; j < map->
size_y; j++)
126 for (i = 0; i < map->
size_x; i++)
129 ipix = image + (j * map->
size_x + i);
130 mpix = mask + (j * map->
size_x + i);
132 level = cell->wifi_levels[index];
136 col = 255 * (100 + level) / 100;
137 *ipix = RTK_RGB16(col, col, col);
#define MAP_INDEX(map, i, j)
void map_draw_cspace(map_t *map, struct _rtk_fig_t *fig)
void map_draw_wifi(map_t *map, struct _rtk_fig_t *fig, int index)
void map_draw_occ(map_t *map, struct _rtk_fig_t *fig)