Lines Matching refs:cquantize
279 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize; in create_colormap() local
285 total_colors = select_ncolors(cinfo, cquantize->Ncolors); in create_colormap()
290 cquantize->Ncolors[0], cquantize->Ncolors[1], in create_colormap()
291 cquantize->Ncolors[2]); in create_colormap()
309 nci = cquantize->Ncolors[i]; /* # of distinct values for this color */ in create_colormap()
327 cquantize->sv_colormap = colormap; in create_colormap()
328 cquantize->sv_actual = total_colors; in create_colormap()
339 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize; in create_colorindex() local
350 cquantize->is_padded = TRUE; in create_colorindex()
353 cquantize->is_padded = FALSE; in create_colorindex()
356 cquantize->colorindex = (*cinfo->mem->alloc_sarray) in create_colorindex()
362 blksize = cquantize->sv_actual; in create_colorindex()
366 nci = cquantize->Ncolors[i]; /* # of distinct values for this color */ in create_colorindex()
371 cquantize->colorindex[i] += MAXJSAMPLE; in create_colorindex()
375 indexptr = cquantize->colorindex[i]; in create_colorindex()
438 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize; in create_odither_tables() local
443 nci = cquantize->Ncolors[i]; /* # of distinct values for this color */ in create_odither_tables()
446 if (nci == cquantize->Ncolors[j]) { in create_odither_tables()
447 odither = cquantize->odither[j]; in create_odither_tables()
453 cquantize->odither[i] = odither; in create_odither_tables()
467 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize; in color_quantize() local
468 JSAMPARRAY colorindex = cquantize->colorindex; in color_quantize()
495 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize; in color_quantize3() local
498 JSAMPROW colorindex0 = cquantize->colorindex[0]; in color_quantize3()
499 JSAMPROW colorindex1 = cquantize->colorindex[1]; in color_quantize3()
500 JSAMPROW colorindex2 = cquantize->colorindex[2]; in color_quantize3()
523 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize; in quantize_ord_dither() local
538 row_index = cquantize->row_index; in quantize_ord_dither()
542 colorindex_ci = cquantize->colorindex[ci]; in quantize_ord_dither()
543 dither = cquantize->odither[ci][row_index]; in quantize_ord_dither()
563 cquantize->row_index = row_index; in quantize_ord_dither()
573 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize; in quantize3_ord_dither() local
577 JSAMPROW colorindex0 = cquantize->colorindex[0]; in quantize3_ord_dither()
578 JSAMPROW colorindex1 = cquantize->colorindex[1]; in quantize3_ord_dither()
579 JSAMPROW colorindex2 = cquantize->colorindex[2]; in quantize3_ord_dither()
589 row_index = cquantize->row_index; in quantize3_ord_dither()
592 dither0 = cquantize->odither[0][row_index]; in quantize3_ord_dither()
593 dither1 = cquantize->odither[1][row_index]; in quantize3_ord_dither()
594 dither2 = cquantize->odither[2][row_index]; in quantize3_ord_dither()
608 cquantize->row_index = row_index; in quantize3_ord_dither()
618 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize; in quantize_fs_dither() local
646 if (cquantize->on_odd_row) { in quantize_fs_dither()
652 errorptr = cquantize->fserrors[ci] + (width + 1); /* => entry after last column */ in quantize_fs_dither()
657 errorptr = cquantize->fserrors[ci]; /* => entry before first column */ in quantize_fs_dither()
659 colorindex_ci = cquantize->colorindex[ci]; in quantize_fs_dither()
660 colormap_ci = cquantize->sv_colormap[ci]; in quantize_fs_dither()
715 cquantize->on_odd_row = (cquantize->on_odd_row ? FALSE : TRUE); in quantize_fs_dither()
727 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize; in alloc_fs_workspace() local
733 cquantize->fserrors[i] = (FSERRPTR) in alloc_fs_workspace()
746 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize; in start_pass_1_quant() local
751 cinfo->colormap = cquantize->sv_colormap; in start_pass_1_quant()
752 cinfo->actual_number_of_colors = cquantize->sv_actual; in start_pass_1_quant()
758 cquantize->pub.color_quantize = color_quantize3; in start_pass_1_quant()
760 cquantize->pub.color_quantize = color_quantize; in start_pass_1_quant()
764 cquantize->pub.color_quantize = quantize3_ord_dither; in start_pass_1_quant()
766 cquantize->pub.color_quantize = quantize_ord_dither; in start_pass_1_quant()
767 cquantize->row_index = 0; /* initialize state for ordered dither */ in start_pass_1_quant()
772 if (!cquantize->is_padded) in start_pass_1_quant()
775 if (cquantize->odither[0] == NULL) in start_pass_1_quant()
779 cquantize->pub.color_quantize = quantize_fs_dither; in start_pass_1_quant()
780 cquantize->on_odd_row = FALSE; /* initialize state for F-S dither */ in start_pass_1_quant()
782 if (cquantize->fserrors[0] == NULL) in start_pass_1_quant()
787 jzero_far((void *)cquantize->fserrors[i], arraysize); in start_pass_1_quant()
826 my_cquantize_ptr cquantize; in jinit_1pass_quantizer() local
828 cquantize = (my_cquantize_ptr) in jinit_1pass_quantizer()
831 cinfo->cquantize = (struct jpeg_color_quantizer *)cquantize; in jinit_1pass_quantizer()
832 cquantize->pub.start_pass = start_pass_1_quant; in jinit_1pass_quantizer()
833 cquantize->pub.finish_pass = finish_pass_1_quant; in jinit_1pass_quantizer()
834 cquantize->pub.new_color_map = new_color_map_1_quant; in jinit_1pass_quantizer()
835 cquantize->fserrors[0] = NULL; /* Flag FS workspace not allocated */ in jinit_1pass_quantizer()
836 cquantize->odither[0] = NULL; /* Also flag odither arrays not allocated */ in jinit_1pass_quantizer()