Lines Matching refs:cquantize

228   my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;  in prescan_quantize()  local
231 register hist3d histogram = cquantize->histogram; in prescan_quantize()
318 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize; in update_box() local
319 hist3d histogram = cquantize->histogram; in update_box()
505 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize; in compute_color() local
506 hist3d histogram = cquantize->histogram; in compute_color()
861 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize; in fill_inverse_cmap() local
862 hist3d histogram = cquantize->histogram; in fill_inverse_cmap()
920 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize; in pass2_no_dither() local
921 hist3d histogram = cquantize->histogram; in pass2_no_dither()
954 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize; in pass2_fs_dither() local
955 hist3d histogram = cquantize->histogram; in pass2_fs_dither()
969 int *error_limit = cquantize->error_limiter; in pass2_fs_dither()
978 if (cquantize->on_odd_row) { in pass2_fs_dither()
984 errorptr = cquantize->fserrors + (width+1)*3; /* => entry after last column */ in pass2_fs_dither()
985 cquantize->on_odd_row = FALSE; /* flip for next time */ in pass2_fs_dither()
990 errorptr = cquantize->fserrors; /* => entry before first real column */ in pass2_fs_dither()
991 cquantize->on_odd_row = TRUE; /* flip for next time */ in pass2_fs_dither()
1112 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize; in init_error_limit() local
1119 cquantize->error_limiter = table; in init_error_limit()
1146 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize; in finish_pass1() local
1149 cinfo->colormap = cquantize->sv_colormap; in finish_pass1()
1150 select_colors(cinfo, cquantize->desired); in finish_pass1()
1152 cquantize->needs_zeroed = TRUE; in finish_pass1()
1170 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize; in start_pass_2_quant() local
1171 hist3d histogram = cquantize->histogram; in start_pass_2_quant()
1181 cquantize->pub.color_quantize = prescan_quantize; in start_pass_2_quant()
1182 cquantize->pub.finish_pass = finish_pass1; in start_pass_2_quant()
1183 cquantize->needs_zeroed = TRUE; /* Always zero histogram */ in start_pass_2_quant()
1187 cquantize->pub.color_quantize = pass2_fs_dither; in start_pass_2_quant()
1189 cquantize->pub.color_quantize = pass2_no_dither; in start_pass_2_quant()
1190 cquantize->pub.finish_pass = finish_pass2; in start_pass_2_quant()
1203 if (cquantize->fserrors == NULL) in start_pass_2_quant()
1204 cquantize->fserrors = (FSERRPTR) (*cinfo->mem->alloc_large) in start_pass_2_quant()
1207 FMEMZERO((void FAR *) cquantize->fserrors, arraysize); in start_pass_2_quant()
1209 if (cquantize->error_limiter == NULL) in start_pass_2_quant()
1211 cquantize->on_odd_row = FALSE; in start_pass_2_quant()
1216 if (cquantize->needs_zeroed) { in start_pass_2_quant()
1221 cquantize->needs_zeroed = FALSE; in start_pass_2_quant()
1233 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize; in new_color_map_2_quant() local
1236 cquantize->needs_zeroed = TRUE; in new_color_map_2_quant()
1247 my_cquantize_ptr cquantize; in jinit_2pass_quantizer() local
1250 cquantize = (my_cquantize_ptr) in jinit_2pass_quantizer()
1253 cinfo->cquantize = (struct jpeg_color_quantizer *) cquantize; in jinit_2pass_quantizer()
1254 cquantize->pub.start_pass = start_pass_2_quant; in jinit_2pass_quantizer()
1255 cquantize->pub.new_color_map = new_color_map_2_quant; in jinit_2pass_quantizer()
1256 cquantize->fserrors = NULL; /* flag optional arrays not allocated */ in jinit_2pass_quantizer()
1257 cquantize->error_limiter = NULL; in jinit_2pass_quantizer()
1264 cquantize->histogram = (hist3d) (*cinfo->mem->alloc_small) in jinit_2pass_quantizer()
1267 cquantize->histogram[i] = (hist2d) (*cinfo->mem->alloc_large) in jinit_2pass_quantizer()
1271 cquantize->needs_zeroed = TRUE; /* histogram is garbage now */ in jinit_2pass_quantizer()
1286 cquantize->sv_colormap = (*cinfo->mem->alloc_sarray) in jinit_2pass_quantizer()
1288 cquantize->desired = desired; in jinit_2pass_quantizer()
1290 cquantize->sv_colormap = NULL; in jinit_2pass_quantizer()
1303 cquantize->fserrors = (FSERRPTR) (*cinfo->mem->alloc_large) in jinit_2pass_quantizer()