Home
last modified time | relevance | path

Searched refs:n_colors (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/ui/
H A Dvnc-enc-hextile-template.h26 int n_colors = 0; in CONCAT() local
39 switch (n_colors) { in CONCAT()
42 n_colors = 1; in CONCAT()
47 n_colors = 2; in CONCAT()
52 n_colors = 3; in CONCAT()
64 if (n_colors > 2) in CONCAT()
69 if (n_colors > 1 && fg_count > bg_count) { in CONCAT()
81 if (n_colors < 3 && (!*has_fg || *last_fg != fg)) { in CONCAT()
87 switch (n_colors) { in CONCAT()
176 n_colors = 4; in CONCAT()
[all …]
/openbmc/u-boot/tools/
H A Dbmp_logo.c52 void gen_info(bitmap_t *b, uint16_t n_colors) in gen_info() argument
69 b->width, b->height, n_colors, in gen_info()
79 uint16_t data_offset, n_colors, hdr_size; in main() local
123 if (fread (&n_colors, sizeof (uint16_t), 1, fp) != 1) in main()
133 n_colors = le_short(n_colors); in main()
136 if ((n_colors == 0) || (n_colors > 256 - DEFAULT_CMAP_SIZE)) { in main()
138 n_colors = 256 - DEFAULT_CMAP_SIZE; in main()
142 gen_info(b, n_colors); in main()
162 for (i=0; i<n_colors; ++i) { in main()