Home | History | Annotate | Download | only in libjpeg

Lines Matching refs:cquantize

276   my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
282 total_colors = select_ncolors(cinfo, cquantize->Ncolors);
287 total_colors, cquantize->Ncolors[0],
288 cquantize->Ncolors[1], cquantize->Ncolors[2]);
306 nci = cquantize->Ncolors[i]; /* # of distinct values for this color */
324 cquantize->sv_colormap = colormap;
325 cquantize->sv_actual = total_colors;
336 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
347 cquantize->is_padded = TRUE;
350 cquantize->is_padded = FALSE;
353 cquantize->colorindex = (*cinfo->mem->alloc_sarray)
359 blksize = cquantize->sv_actual;
363 nci = cquantize->Ncolors[i]; /* # of distinct values for this color */
368 cquantize->colorindex[i] += MAXJSAMPLE;
372 indexptr = cquantize->colorindex[i];
435 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
440 nci = cquantize->Ncolors[i]; /* # of distinct values for this color */
443 if (nci == cquantize->Ncolors[j]) {
444 odither = cquantize->odither[j];
450 cquantize->odither[i] = odither;
464 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
465 JSAMPARRAY colorindex = cquantize->colorindex;
492 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
495 JSAMPROW colorindex0 = cquantize->colorindex[0];
496 JSAMPROW colorindex1 = cquantize->colorindex[1];
497 JSAMPROW colorindex2 = cquantize->colorindex[2];
520 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;
644 if (cquantize->on_odd_row) {
650 errorptr = cquantize->fserrors[ci] + (width+1); /* => entry after last column */
655 errorptr = cquantize->fserrors[ci]; /* => entry before first column */
657 colorindex_ci = cquantize->colorindex[ci];
658 colormap_ci = cquantize->sv_colormap[ci];
713 cquantize->on_odd_row = (cquantize->on_odd_row ? FALSE : TRUE);
725 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
731 cquantize->fserrors[i] = (FSERRPTR)
744 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
749 cinfo->colormap = cquantize->sv_colormap;
750 cinfo->actual_number_of_colors = cquantize->sv_actual;
756 cquantize->pub.color_quantize = color_quantize3;
758 cquantize->pub.color_quantize = color_quantize;
762 cquantize->pub.color_quantize = quantize3_ord_dither;
764 cquantize->pub.color_quantize = quantize_ord_dither;
765 cquantize->row_index = 0; /* initialize state for ordered dither */
770 if (! cquantize->is_padded)
773 if (cquantize->odither[0] == NULL)
777 cquantize->pub.color_quantize = quantize_fs_dither;
778 cquantize->on_odd_row = FALSE; /* initialize state for F-S dither */
780 if (cquantize->fserrors[0] == NULL)
785 FMEMZERO((void FAR *) cquantize->fserrors[i], arraysize);
824 my_cquantize_ptr cquantize;
826 cquantize = (my_cquantize_ptr)
829 cinfo->cquantize = (struct jpeg_color_quantizer *) cquantize;
830 cquantize->pub.start_pass = start_pass_1_quant;
831 cquantize->pub.finish_pass = finish_pass_1_quant;
832 cquantize->pub.new_color_map = new_color_map_1_quant;
833 cquantize->fserrors[0] = NULL; /* Flag FS workspace not allocated */
834 cquantize->odither[0] = NULL; /* Also flag odither arrays not allocated */