• 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:MAXJSAMPLE

67 #define MAXJSAMPLE        255
234 #define MAXNUMCOLORS (MAXJSAMPLE+1) /* maximum size of colormap */
684 boxlist[0].c0max = MAXJSAMPLE >> C0_SHIFT;
686 boxlist[0].c1max = MAXJSAMPLE >> C1_SHIFT;
688 boxlist[0].c2max = MAXJSAMPLE >> C2_SHIFT;
1149 /* Form pixel value + error, and range-limit to 0..MAXJSAMPLE.
1150 * The maximum error is +- MAXJSAMPLE (or less with error limiting);
1226 * +- MAXJSAMPLE. But we want the maximum correction applied to a pixel to be
1235 * A simple clamping of the error values to about +- MAXJSAMPLE/8 works pretty
1248 table = (int *) malloc((MAXJSAMPLE*2+1) * sizeof(int));
1249 table += MAXJSAMPLE; /* so can index -MAXJSAMPLE .. +MAXJSAMPLE */
1252 #define STEPSIZE ((MAXJSAMPLE+1)/16)
1253 /* Map errors 1:1 up to +- MAXJSAMPLE/16 */
1258 /* Map errors 1:2 up to +- 3*MAXJSAMPLE/16 */
1262 /* Clamp the rest to final out value (which is (MAXJSAMPLE+1)/8) */
1263 for (; in <= MAXJSAMPLE; in++) {
1424 table = (JSAMPLE *) malloc((5 * (MAXJSAMPLE+1) + CENTERJSAMPLE) * sizeof(JSAMPLE));
1426 table += (MAXJSAMPLE+1); /* allow negative subscripts of simple table */
1429 memset(table - (MAXJSAMPLE+1), 0, (MAXJSAMPLE+1) * sizeof(JSAMPLE));
1431 for (i = 0; i <= MAXJSAMPLE; i++)
1435 for (i = CENTERJSAMPLE; i < 2*(MAXJSAMPLE+1); i++)
1436 table[i] = MAXJSAMPLE;
1438 memset(table + (2 * (MAXJSAMPLE+1)), 0,
1439 (2 * (MAXJSAMPLE+1) - CENTERJSAMPLE) * sizeof(JSAMPLE));
1440 memcpy(table + (4 * (MAXJSAMPLE+1) - CENTERJSAMPLE),
1490 free((void*)(cquantize->error_limiter - MAXJSAMPLE)); // To reverse what was done to it