Lines Matching refs:ncolors
235 … size_t /* out */ *ncolors, /* palette size (<= 256) */ in sixel_decode()
563 *ncolors = max_color_index + 1; in sixel_decode()
564 *palette = (unsigned char *) AcquireQuantumMemory(*ncolors,4); in sixel_decode()
567 for (n = 0; n < (ssize_t) *ncolors; ++n) { in sixel_decode()
681 sixel_node_t *np, int ncolors, int keycolor) in sixel_put_node() argument
685 if (ncolors != 2 || keycolor == -1) { in sixel_put_node()
709 unsigned char *palette, size_t ncolors, int keycolor, in sixel_encode_impl() argument
729 if (ncolors < 1) { in sixel_encode_impl()
732 len = ncolors * width; in sixel_encode_impl()
756 if (ncolors != 2 || keycolor == -1) { in sixel_encode_impl()
757 for (n = 0; n < (ssize_t) ncolors; n++) { in sixel_encode_impl()
779 if (pix >= 0 && pix < (ssize_t) ncolors && pix != keycolor) { in sixel_encode_impl()
788 for (c = 0; c < (ssize_t) ncolors; c++) { in sixel_encode_impl()
853 x = sixel_put_node(context, x, np, (int) ncolors, keycolor); in sixel_encode_impl()
863 x = sixel_put_node(context, x, np, (int) ncolors, keycolor); in sixel_encode_impl()