Home | History | Annotate | Download | only in libjpeg_turbo

Lines Matching refs:cquantize

280   my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
286 total_colors = select_ncolors(cinfo, cquantize->Ncolors);
291 total_colors, cquantize->Ncolors[0],
292 cquantize->Ncolors[1], cquantize->Ncolors[2]);
310 nci = cquantize->Ncolors[i]; /* # of distinct values for this color */
328 cquantize->sv_colormap = colormap;
329 cquantize->sv_actual = total_colors;
340 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
351 cquantize->is_padded = TRUE;
354 cquantize->is_padded = FALSE;
357 cquantize->colorindex = (*cinfo->mem->alloc_sarray)
363 blksize = cquantize->sv_actual;
367 nci = cquantize->Ncolors[i]; /* # of distinct values for this color */
372 cquantize->colorindex[i] += MAXJSAMPLE;
376 indexptr = cquantize->colorindex[i];
439 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
444 nci = cquantize->Ncolors[i]; /* # of distinct values for this color */
447 if (nci == cquantize->Ncolors[j]) {
448 odither = cquantize->odither[j];
454 cquantize->odither[i] = odither;
468 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
469 JSAMPARRAY colorindex = cquantize->colorindex;
496 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
499 JSAMPROW colorindex0 = cquantize->colorindex[0];
500 JSAMPROW colorindex1 = cquantize->colorindex[1];
501 JSAMPROW colorindex2 = cquantize->colorindex[2];
524 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
540 row_index = cquantize->row_index;
544 colorindex_ci = cquantize->colorindex[ci];
545 dither = cquantize->odither[ci][row_index];
564 cquantize->row_index = row_index;
574 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
578 JSAMPROW colorindex0 = cquantize->colorindex[0];
579 JSAMPROW colorindex1 = cquantize->colorindex[1];
580 JSAMPROW colorindex2 = cquantize->colorindex[2];
590 row_index = cquantize->row_index;
593 dither0 = cquantize->odither[0][row_index];
594 dither1 = cquantize->odither[1][row_index];
595 dither2 = cquantize->odither[2][row_index];
609 cquantize->row_index = row_index;
619 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
648 if (cquantize->on_odd_row) {
654 errorptr = cquantize->fserrors[ci] + (width+1); /* => entry after last column */
659 errorptr = cquantize->fserrors[ci]; /* => entry before first column */
661 colorindex_ci = cquantize->colorindex[ci];
662 colormap_ci = cquantize->sv_colormap[ci];
717 cquantize->on_odd_row = (cquantize->on_odd_row ? FALSE : TRUE);
729 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
735 cquantize->fserrors[i] = (FSERRPTR)
748 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
753 cinfo->colormap = cquantize->sv_colormap;
754 cinfo->actual_number_of_colors = cquantize->sv_actual;
760 cquantize->pub.color_quantize = color_quantize3;
762 cquantize->pub.color_quantize = color_quantize;
766 cquantize->pub.color_quantize = quantize3_ord_dither;
768 cquantize->pub.color_quantize = quantize_ord_dither;
769 cquantize->row_index = 0; /* initialize state for ordered dither */
774 if (! cquantize->is_padded)
777 if (cquantize->odither[0] == NULL)
781 cquantize->pub.color_quantize = quantize_fs_dither;
782 cquantize->on_odd_row = FALSE; /* initialize state for F-S dither */
784 if (cquantize->fserrors[0] == NULL)
789 jzero_far((void FAR *) cquantize->fserrors[i], arraysize);
828 my_cquantize_ptr cquantize;
830 cquantize = (my_cquantize_ptr)
833 cinfo->cquantize = (struct jpeg_color_quantizer *) cquantize;
834 cquantize->pub.start_pass = start_pass_1_quant;
835 cquantize->pub.finish_pass = finish_pass_1_quant;
836 cquantize->pub.new_color_map = new_color_map_1_quant;
837 cquantize->fserrors[0] = NULL; /* Flag FS workspace not allocated */
838 cquantize->odither[0] = NULL; /* Also flag odither arrays not allocated */