Lines Matching refs:ncolors
238 … size_t /* out */ *ncolors, /* palette size (<= SIXEL_PALETTE_MAX) */ in sixel_decode()
570 *ncolors = max_color_index + 1; in sixel_decode()
571 *palette = (unsigned char *) AcquireQuantumMemory(*ncolors,4); in sixel_decode()
574 for (n = 0; n < (ssize_t) *ncolors; ++n) { in sixel_decode()
688 sixel_node_t *np, int ncolors, int keycolor) in sixel_put_node() argument
692 if (ncolors != 2 || keycolor == -1) { in sixel_put_node()
716 unsigned char *palette, size_t ncolors, int keycolor, in sixel_encode_impl() argument
736 if (ncolors < 1) { in sixel_encode_impl()
739 len = ncolors * width; in sixel_encode_impl()
763 if (ncolors != 2 || keycolor == -1) { in sixel_encode_impl()
764 for (n = 0; n < (ssize_t) ncolors; n++) { in sixel_encode_impl()
785 if (pix >= 0 && pix < (ssize_t) ncolors && pix != keycolor) { in sixel_encode_impl()
794 for (c = 0; c < (ssize_t) ncolors; c++) { in sixel_encode_impl()
859 x = sixel_put_node(context, x, np, (int) ncolors, keycolor); in sixel_encode_impl()
869 x = sixel_put_node(context, x, np, (int) ncolors, keycolor); in sixel_encode_impl()