• Home
  • Raw
  • Download

Lines Matching refs:bi

227 block_best (const biimage_t &bi, bool *inverse)  in block_best()  argument
229 assert (bi.width <= CELL_W); in block_best()
230 assert (bi.height <= CELL_H); in block_best()
241 for (unsigned int y = 0; y < bi.height; y++) in block_best()
242 for (unsigned int x = 0; x < bi.width; x++) { in block_best()
243 unsigned int c = bi (x, y); in block_best()
249 quad[2 * y / bi.height][2 * x / bi.width] += c; in block_best()
250 quad_i[2 * y / bi.height][2 * x / bi.width] += c_i; in block_best()
256 for (unsigned int i = 1; i < bi.height; i++) { in block_best()
260 for (unsigned int i = 1; i < bi.width; i++) { in block_best()
285 for (unsigned int i = 0; i < bi.height - 1; i++) in block_best()
303 unsigned int which = lround ((double) ((best_i + 1) * 8) / bi.height); in block_best()
317 for (unsigned int i = 0; i < bi.width - 1; i++) in block_best()
335 unsigned int which = lround ((double) ((best_i + 1) * 8) / bi.width); in block_best()
392 biimage_t bi (CELL_W, CELL_H); in ansi_print_image_rgb24() local
397 bi.set (cell); in ansi_print_image_rgb24()
398 if (bi.unicolor) { in ansi_print_image_rgb24()
399 if (last_bg != bi.bg) { in ansi_print_image_rgb24()
400 printf ("%c[%dm", ESC_E, 40 + bi.bg); in ansi_print_image_rgb24()
401 last_bg = bi.bg; in ansi_print_image_rgb24()
407 const char *c = block_best (bi, &inverse); in ansi_print_image_rgb24()
409 if (last_bg != bi.fg || last_fg != bi.bg) { in ansi_print_image_rgb24()
410 printf ("%c[%d;%dm", ESC_E, 30 + bi.bg, 40 + bi.fg); in ansi_print_image_rgb24()
411 last_bg = bi.fg; in ansi_print_image_rgb24()
412 last_fg = bi.bg; in ansi_print_image_rgb24()
415 if (last_bg != bi.bg || last_fg != bi.fg) { in ansi_print_image_rgb24()
416 printf ("%c[%d;%dm", ESC_E, 40 + bi.bg, 30 + bi.fg); in ansi_print_image_rgb24()
417 last_bg = bi.bg; in ansi_print_image_rgb24()
418 last_fg = bi.fg; in ansi_print_image_rgb24()