Lines Matching refs:ncolors
236 size_t /* out */ *ncolors /* palette size (<= 256) */)
536 *ncolors = max_color_index + 1;
537 *palette = (unsigned char *) AcquireQuantumMemory(*ncolors,4);
538 for (n = 0; n < (ssize_t) *ncolors; ++n) {
650 sixel_node_t *np, int ncolors, int keycolor)
654 if (ncolors != 2 || keycolor == -1) {
678 unsigned char *palette, size_t ncolors, int keycolor,
698 if (ncolors < 1) {
701 len = ncolors * width;
725 if (ncolors != 2 || keycolor == -1) {
726 for (n = 0; n < (ssize_t) ncolors; n++) {
748 if (pix >= 0 && pix < (ssize_t) ncolors && pix != keycolor) {
757 for (c = 0; c < (ssize_t) ncolors; c++) {
822 x = sixel_put_node(context, x, np, (int) ncolors, keycolor);
832 x = sixel_put_node(context, x, np, (int) ncolors, keycolor);