Lines Matching defs:cquantize
279 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize;
285 total_colors = select_ncolors(cinfo, cquantize->Ncolors);
290 cquantize->Ncolors[0], cquantize->Ncolors[1],
291 cquantize->Ncolors[2]);
309 nci = cquantize->Ncolors[i]; /* # of distinct values for this color */
327 cquantize->sv_colormap = colormap;
328 cquantize->sv_actual = total_colors;
339 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize;
350 cquantize->is_padded = TRUE;
353 cquantize->is_padded = FALSE;
356 cquantize->colorindex = (*cinfo->mem->alloc_sarray)
362 blksize = cquantize->sv_actual;
366 nci = cquantize->Ncolors[i]; /* # of distinct values for this color */
371 cquantize->colorindex[i] += MAXJSAMPLE;
375 indexptr = cquantize->colorindex[i];
438 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize;
443 nci = cquantize->Ncolors[i]; /* # of distinct values for this color */
446 if (nci == cquantize->Ncolors[j]) {
447 odither = cquantize->odither[j];
453 cquantize->odither[i] = odither;
467 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize;
468 JSAMPARRAY colorindex = cquantize->colorindex;
495 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize;
498 JSAMPROW colorindex0 = cquantize->colorindex[0];
499 JSAMPROW colorindex1 = cquantize->colorindex[1];
500 JSAMPROW colorindex2 = cquantize->colorindex[2];
523 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize;
538 row_index = cquantize->row_index;
542 colorindex_ci = cquantize->colorindex[ci];
543 dither = cquantize->odither[ci][row_index];
563 cquantize->row_index = row_index;
573 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize;
577 JSAMPROW colorindex0 = cquantize->colorindex[0];
578 JSAMPROW colorindex1 = cquantize->colorindex[1];
579 JSAMPROW colorindex2 = cquantize->colorindex[2];
589 row_index = cquantize->row_index;
592 dither0 = cquantize->odither[0][row_index];
593 dither1 = cquantize->odither[1][row_index];
594 dither2 = cquantize->odither[2][row_index];
605 cquantize->row_index = row_index;
615 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize;
643 if (cquantize->on_odd_row) {
649 errorptr = cquantize->fserrors[ci] + (width + 1); /* => entry after last column */
654 errorptr = cquantize->fserrors[ci]; /* => entry before first column */
656 colorindex_ci = cquantize->colorindex[ci];
657 colormap_ci = cquantize->sv_colormap[ci];
712 cquantize->on_odd_row = (cquantize->on_odd_row ? FALSE : TRUE);
724 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize;
730 cquantize->fserrors[i] = (FSERRPTR)
743 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize;
748 cinfo->colormap = cquantize->sv_colormap;
749 cinfo->actual_number_of_colors = cquantize->sv_actual;
755 cquantize->pub.color_quantize = color_quantize3;
757 cquantize->pub.color_quantize = color_quantize;
761 cquantize->pub.color_quantize = quantize3_ord_dither;
763 cquantize->pub.color_quantize = quantize_ord_dither;
764 cquantize->row_index = 0; /* initialize state for ordered dither */
769 if (!cquantize->is_padded)
772 if (cquantize->odither[0] == NULL)
776 cquantize->pub.color_quantize = quantize_fs_dither;
777 cquantize->on_odd_row = FALSE; /* initialize state for F-S dither */
779 if (cquantize->fserrors[0] == NULL)
784 jzero_far((void *)cquantize->fserrors[i], arraysize);
823 my_cquantize_ptr cquantize;
825 cquantize = (my_cquantize_ptr)
828 cinfo->cquantize = (struct jpeg_color_quantizer *)cquantize;
829 cquantize->pub.start_pass = start_pass_1_quant;
830 cquantize->pub.finish_pass = finish_pass_1_quant;
831 cquantize->pub.new_color_map = new_color_map_1_quant;
832 cquantize->fserrors[0] = NULL; /* Flag FS workspace not allocated */
833 cquantize->odither[0] = NULL; /* Also flag odither arrays not allocated */