Lines Matching refs:colours
148 bmp->colours = (1 << bmp->bpp); in bmp_info_header_parse()
285 bmp->colours = read_uint32(data, 32); in bmp_info_header_parse()
286 if (bmp->colours == 0 && bmp->bpp < 16) in bmp_info_header_parse()
287 bmp->colours = (1 << bmp->bpp); in bmp_info_header_parse()
311 if (bmp->buffer_size < (14 + header_size + ((uint64_t)4 * bmp->colours))) in bmp_info_header_parse()
315 bmp->colour_table = (uint32_t *)malloc(bmp->colours * 4); in bmp_info_header_parse()
318 for (i = 0; i < bmp->colours; i++) { in bmp_info_header_parse()
775 if (idx >= bmp->colours) in bmp_decode_rgb()
795 if (idx < bmp->colours) { in bmp_decode_rgb()
956 if (idx >= bmp->colours) in bmp_decode_rle8()
989 if (idx >= bmp->colours) in bmp_decode_rle8()
1113 if ((pixel >> 4) >= bmp->colours) in bmp_decode_rle4()
1118 if ((pixel & 0xf) >= bmp->colours) in bmp_decode_rle4()
1153 if ((pixel2 >> 4) >= bmp->colours || in bmp_decode_rle4()
1154 (pixel2 & 0xf) >= bmp->colours) in bmp_decode_rle4()