Lines Matching refs:cquantize
275 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
281 total_colors = select_ncolors(cinfo, cquantize->Ncolors);
286 total_colors, cquantize->Ncolors[0],
287 cquantize->Ncolors[1], cquantize->Ncolors[2]);
305 nci = cquantize->Ncolors[i]; /* # of distinct values for this color */
323 cquantize->sv_colormap = colormap;
324 cquantize->sv_actual = total_colors;
335 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
346 cquantize->is_padded = TRUE;
349 cquantize->is_padded = FALSE;
352 cquantize->colorindex = (*cinfo->mem->alloc_sarray)
358 blksize = cquantize->sv_actual;
362 nci = cquantize->Ncolors[i]; /* # of distinct values for this color */
367 cquantize->colorindex[i] += MAXJSAMPLE;
371 indexptr = cquantize->colorindex[i];
434 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
439 nci = cquantize->Ncolors[i]; /* # of distinct values for this color */
442 if (nci == cquantize->Ncolors[j]) {
443 odither = cquantize->odither[j];
449 cquantize->odither[i] = odither;
463 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
464 JSAMPARRAY colorindex = cquantize->colorindex;
491 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
494 JSAMPROW colorindex0 = cquantize->colorindex[0];
495 JSAMPROW colorindex1 = cquantize->colorindex[1];
496 JSAMPROW colorindex2 = cquantize->colorindex[2];
519 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
535 row_index = cquantize->row_index;
539 colorindex_ci = cquantize->colorindex[ci];
540 dither = cquantize->odither[ci][row_index];
559 cquantize->row_index = row_index;
569 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
573 JSAMPROW colorindex0 = cquantize->colorindex[0];
574 JSAMPROW colorindex1 = cquantize->colorindex[1];
575 JSAMPROW colorindex2 = cquantize->colorindex[2];
585 row_index = cquantize->row_index;
588 dither0 = cquantize->odither[0][row_index];
589 dither1 = cquantize->odither[1][row_index];
590 dither2 = cquantize->odither[2][row_index];
604 cquantize->row_index = row_index;
614 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 FAR *) 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 */