Home
last modified time | relevance | path

Searched refs:colours (Results 1 – 3 of 3) sorted by relevance

/rk3399_rockchip-uboot/drivers/video/
H A Dvideo_bmp.c176 struct bmp_color_table_entry *cte, unsigned colours) in video_set_cmap() argument
182 debug("%s: colours=%d\n", __func__, colours); in video_set_cmap()
183 for (i = 0; i < colours; ++i) { in video_set_cmap()
204 unsigned colours, bpix, bmp_bpix; in video_bmp_display() local
222 colours = 1 << bmp_bpix; in video_bmp_display()
246 (int)width, (int)height, (int)colours, 1 << bpix); in video_bmp_display()
249 video_set_cmap(dev, palette, colours); in video_bmp_display()
/rk3399_rockchip-uboot/drivers/video/drm/
H A Dlibnsbmp.c148 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()
[all …]
H A Dlibnsbmp.h98 uint32_t colours; member