Home | History | Annotate | Download | only in libjpeg-turbo

Lines Matching refs:cquantize

277   my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
283 total_colors = select_ncolors(cinfo, cquantize->Ncolors);
288 total_colors, cquantize->Ncolors[0],
289 cquantize->Ncolors[1], cquantize->Ncolors[2]);
307 nci = cquantize->Ncolors[i]; /* # of distinct values for this color */
325 cquantize->sv_colormap = colormap;
326 cquantize->sv_actual = total_colors;
337 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
348 cquantize->is_padded = TRUE;
351 cquantize->is_padded = FALSE;
354 cquantize->colorindex = (*cinfo->mem->alloc_sarray)
360 blksize = cquantize->sv_actual;
364 nci = cquantize->Ncolors[i]; /* # of distinct values for this color */
369 cquantize->colorindex[i] += MAXJSAMPLE;
373 indexptr = cquantize->colorindex[i];
436 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
441 nci = cquantize->Ncolors[i]; /* # of distinct values for this color */
444 if (nci == cquantize->Ncolors[j]) {
445 odither = cquantize->odither[j];
451 cquantize->odither[i] = odither;
465 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
466 JSAMPARRAY colorindex = cquantize->colorindex;
493 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
496 JSAMPROW colorindex0 = cquantize->colorindex[0];
497 JSAMPROW colorindex1 = cquantize->colorindex[1];
498 JSAMPROW colorindex2 = cquantize->colorindex[2];
521 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
536 row_index = cquantize->row_index;
540 colorindex_ci = cquantize->colorindex[ci];
541 dither = cquantize->odither[ci][row_index];
560 cquantize->row_index = row_index;
570 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
574 JSAMPROW colorindex0 = cquantize->colorindex[0];
575 JSAMPROW colorindex1 = cquantize->colorindex[1];
576 JSAMPROW colorindex2 = cquantize->colorindex[2];
586 row_index = cquantize->row_index;
589 dither0 = cquantize->odither[0][row_index];
590 dither1 = cquantize->odither[1][row_index];
591 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 */