• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/common/

Lines Matching refs:cquantize

86         void *cquantize;
340 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
343 register hist3d histogram = cquantize->histogram;
434 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
435 hist3d histogram = cquantize->histogram;
637 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
638 hist3d histogram = cquantize->histogram;
993 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
994 hist3d histogram = cquantize->histogram;
1052 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
1053 hist3d histogram = cquantize->histogram;
1086 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
1087 hist3d histogram = cquantize->histogram;
1101 int *error_limit = cquantize->error_limiter;
1110 if (cquantize->on_odd_row) {
1116 errorptr = cquantize->fserrors + (width+1)*3; /* => entry after last column */
1117 cquantize->on_odd_row = false; /* flip for next time */
1122 errorptr = cquantize->fserrors; /* => entry before first real column */
1123 cquantize->on_odd_row = true; /* flip for next time */
1244 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
1250 cquantize->error_limiter = table;
1277 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
1280 cinfo->colormap = cquantize->sv_colormap;
1281 select_colors(cinfo, cquantize->desired);
1283 cquantize->needs_zeroed = true;
1301 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
1302 hist3d histogram = cquantize->histogram;
1306 cquantize->pub.color_quantize = prescan_quantize;
1307 cquantize->pub.finish_pass = finish_pass1;
1308 cquantize->needs_zeroed = true; /* Always zero histogram */
1311 cquantize->pub.color_quantize = pass2_fs_dither;
1312 cquantize->pub.finish_pass = finish_pass2;
1318 if (cquantize->fserrors == NULL)
1319 cquantize->fserrors = (INT16*) malloc(arraysize);
1321 memset((void *) cquantize->fserrors, 0, arraysize);
1323 if (cquantize->error_limiter == NULL)
1325 cquantize->on_odd_row = false;
1330 if (cquantize->needs_zeroed) {
1335 cquantize->needs_zeroed = false;
1347 my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize;
1350 cquantize->needs_zeroed = true;
1361 my_cquantize_ptr cquantize;
1364 cquantize = (my_cquantize_ptr) malloc(sizeof(my_cquantizer));
1365 cinfo->cquantize = (jpeg_color_quantizer *) cquantize;
1366 cquantize->pub.start_pass = start_pass_2_quant;
1367 cquantize->pub.new_color_map = new_color_map_2_quant;
1368 cquantize->fserrors = NULL; /* flag optional arrays not allocated */
1369 cquantize->error_limiter = NULL;
1373 cquantize->histogram = (hist3d) malloc(HIST_C0_ELEMS * sizeof(hist2d));
1375 cquantize->histogram[i] = (hist2d) malloc(HIST_C1_ELEMS*HIST_C2_ELEMS * sizeof(histcell));
1377 cquantize->needs_zeroed = true; /* histogram is garbage now */
1387 cquantize->sv_colormap = (JSAMPARRAY) malloc(sizeof(JSAMPROW) * 3);
1388 cquantize->sv_colormap[0] = (JSAMPROW) malloc(sizeof(JSAMPLE) * desired);
1389 cquantize->sv_colormap[1] = (JSAMPROW) malloc(sizeof(JSAMPLE) * desired);
1390 cquantize->sv_colormap[2] = (JSAMPROW) malloc(sizeof(JSAMPLE) * desired);
1392 cquantize->desired = desired;
1401 cquantize->fserrors = (FSERRPTR) malloc(
1457 my_cquantize_ptr cquantize;
1463 cquantize = (my_cquantize_ptr) dec.cquantize;
1466 cquantize->pub.start_pass(&dec, true);
1467 cquantize->pub.color_quantize(&dec, in_rows, out_rows, h);
1468 cquantize->pub.finish_pass(&dec);
1470 cquantize->pub.start_pass(&dec, false);
1471 cquantize->pub.color_quantize(&dec, in_rows, out_rows, h);
1472 cquantize->pub.finish_pass(&dec);
1481 for (int ii = 0; ii < HIST_C0_ELEMS; ii++) free(cquantize->histogram[ii]);
1482 free(cquantize->histogram);
1489 //free(cquantize->error_limiter);
1490 free((void*)(cquantize->error_limiter - MAXJSAMPLE)); // To reverse what was done to it
1492 free(cquantize->fserrors);
1493 free(cquantize);