Lines Matching refs:cquantize
206 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize; in prescan_quantize() local
209 register hist3d histogram = cquantize->histogram; in prescan_quantize()
296 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize; in update_box() local
297 hist3d histogram = cquantize->histogram; in update_box()
483 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize; in compute_color() local
484 hist3d histogram = cquantize->histogram; in compute_color()
839 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize; in fill_inverse_cmap() local
840 hist3d histogram = cquantize->histogram; in fill_inverse_cmap()
898 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize; in pass2_no_dither() local
899 hist3d histogram = cquantize->histogram; in pass2_no_dither()
932 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize; in pass2_fs_dither() local
933 hist3d histogram = cquantize->histogram; in pass2_fs_dither()
947 int *error_limit = cquantize->error_limiter; in pass2_fs_dither()
956 if (cquantize->on_odd_row) { in pass2_fs_dither()
962 errorptr = cquantize->fserrors + (width + 1) * 3; /* => entry after last column */ in pass2_fs_dither()
963 cquantize->on_odd_row = FALSE; /* flip for next time */ in pass2_fs_dither()
968 errorptr = cquantize->fserrors; /* => entry before first real column */ in pass2_fs_dither()
969 cquantize->on_odd_row = TRUE; /* flip for next time */ in pass2_fs_dither()
1085 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize; in init_error_limit() local
1092 cquantize->error_limiter = table; in init_error_limit()
1119 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize; in finish_pass1() local
1122 cinfo->colormap = cquantize->sv_colormap; in finish_pass1()
1123 select_colors(cinfo, cquantize->desired); in finish_pass1()
1125 cquantize->needs_zeroed = TRUE; in finish_pass1()
1143 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize; in start_pass_2_quant() local
1144 hist3d histogram = cquantize->histogram; in start_pass_2_quant()
1154 cquantize->pub.color_quantize = prescan_quantize; in start_pass_2_quant()
1155 cquantize->pub.finish_pass = finish_pass1; in start_pass_2_quant()
1156 cquantize->needs_zeroed = TRUE; /* Always zero histogram */ in start_pass_2_quant()
1160 cquantize->pub.color_quantize = pass2_fs_dither; in start_pass_2_quant()
1162 cquantize->pub.color_quantize = pass2_no_dither; in start_pass_2_quant()
1163 cquantize->pub.finish_pass = finish_pass2; in start_pass_2_quant()
1176 if (cquantize->fserrors == NULL) in start_pass_2_quant()
1177 cquantize->fserrors = (FSERRPTR)(*cinfo->mem->alloc_large) in start_pass_2_quant()
1180 jzero_far((void *)cquantize->fserrors, arraysize); in start_pass_2_quant()
1182 if (cquantize->error_limiter == NULL) in start_pass_2_quant()
1184 cquantize->on_odd_row = FALSE; in start_pass_2_quant()
1189 if (cquantize->needs_zeroed) { in start_pass_2_quant()
1194 cquantize->needs_zeroed = FALSE; in start_pass_2_quant()
1206 my_cquantize_ptr cquantize = (my_cquantize_ptr)cinfo->cquantize; in new_color_map_2_quant() local
1209 cquantize->needs_zeroed = TRUE; in new_color_map_2_quant()
1220 my_cquantize_ptr cquantize; in jinit_2pass_quantizer() local
1223 cquantize = (my_cquantize_ptr) in jinit_2pass_quantizer()
1226 cinfo->cquantize = (struct jpeg_color_quantizer *)cquantize; in jinit_2pass_quantizer()
1227 cquantize->pub.start_pass = start_pass_2_quant; in jinit_2pass_quantizer()
1228 cquantize->pub.new_color_map = new_color_map_2_quant; in jinit_2pass_quantizer()
1229 cquantize->fserrors = NULL; /* flag optional arrays not allocated */ in jinit_2pass_quantizer()
1230 cquantize->error_limiter = NULL; in jinit_2pass_quantizer()
1237 cquantize->histogram = (hist3d)(*cinfo->mem->alloc_small) in jinit_2pass_quantizer()
1240 cquantize->histogram[i] = (hist2d)(*cinfo->mem->alloc_large) in jinit_2pass_quantizer()
1244 cquantize->needs_zeroed = TRUE; /* histogram is garbage now */ in jinit_2pass_quantizer()
1259 cquantize->sv_colormap = (*cinfo->mem->alloc_sarray) in jinit_2pass_quantizer()
1261 cquantize->desired = desired; in jinit_2pass_quantizer()
1263 cquantize->sv_colormap = NULL; in jinit_2pass_quantizer()
1277 cquantize->fserrors = (FSERRPTR)(*cinfo->mem->alloc_large) in jinit_2pass_quantizer()