Searched refs:MAXJSAMPLE (Results 1 - 8 of 8) sorted by relevance

/openjdk7/jdk/src/share/native/sun/awt/image/jpeg/
H A Djccolor.c36 * normalized to the range 0..MAXJSAMPLE rather than -0.5 .. 0.5.
42 * Note: older versions of the IJG code used a zero offset of MAXJSAMPLE/2,
74 #define G_Y_OFF (1*(MAXJSAMPLE+1)) /* offset to G => Y section */
75 #define B_Y_OFF (2*(MAXJSAMPLE+1)) /* etc. */
76 #define R_CB_OFF (3*(MAXJSAMPLE+1))
77 #define G_CB_OFF (4*(MAXJSAMPLE+1))
78 #define B_CB_OFF (5*(MAXJSAMPLE+1))
80 #define G_CR_OFF (6*(MAXJSAMPLE+1))
81 #define B_CR_OFF (7*(MAXJSAMPLE+1))
82 #define TABLE_SIZE (8*(MAXJSAMPLE
[all...]
H A Djdcolor.c39 * normalized to the range 0..MAXJSAMPLE rather than -0.5 .. 0.5.
83 (MAXJSAMPLE+1) * SIZEOF(int));
86 (MAXJSAMPLE+1) * SIZEOF(int));
89 (MAXJSAMPLE+1) * SIZEOF(INT32));
92 (MAXJSAMPLE+1) * SIZEOF(INT32));
94 for (i = 0, x = -CENTERJSAMPLE; i <= MAXJSAMPLE; i++, x++) {
95 /* i is the actual input pixel value, in the range 0..MAXJSAMPLE */
278 outptr[0] = range_limit[MAXJSAMPLE - (y + Crrtab[cr])]; /* red */
279 outptr[1] = range_limit[MAXJSAMPLE - (y + /* green */
282 outptr[2] = range_limit[MAXJSAMPLE
[all...]
H A Djmorecfg.h77 #define MAXJSAMPLE 255 macro
91 #define MAXJSAMPLE 4095 macro
H A Djdmaster.c210 * 0..MAXJSAMPLE; the input value may fall somewhat outside this range
218 * else if (x > MAXJSAMPLE) x = MAXJSAMPLE;
222 * of x is within MAXJSAMPLE+1 of the legal range, so a table running from
223 * -(MAXJSAMPLE+1) to 2*MAXJSAMPLE+1 is sufficient. But for the initial
236 * CENTERJSAMPLE,CENTERJSAMPLE+1,...,MAXJSAMPLE,
237 * MAXJSAMPLE (repeat 2*(MAXJSAMPLE+1)-CENTERJSAMPLE times),
238 * 0 (repeat 2*(MAXJSAMPLE
[all...]
H A Djquant1.c70 * this to 0..MAXJSAMPLE, and then index into the colorindex table as usual.
251 /* The output values must fall in 0..MAXJSAMPLE in increasing order */
253 /* We always provide values 0 and MAXJSAMPLE for each component;
258 return (int) (((INT32) j * MAXJSAMPLE + maxj/2) / maxj);
265 /* Must have largest(j=0) >= 0, and largest(j=maxj) >= MAXJSAMPLE */
268 return (int) (((INT32) (2*j + 1) * MAXJSAMPLE + maxj) / (2*maxj));
343 /* For ordered dither, we pad the color index tables by MAXJSAMPLE in
344 * each direction (input index values can be -MAXJSAMPLE .. 2*MAXJSAMPLE).
349 pad = MAXJSAMPLE*
[all...]
H A Djdmerge.c96 (MAXJSAMPLE+1) * SIZEOF(int));
99 (MAXJSAMPLE+1) * SIZEOF(int));
102 (MAXJSAMPLE+1) * SIZEOF(INT32));
105 (MAXJSAMPLE+1) * SIZEOF(INT32));
107 for (i = 0, x = -CENTERJSAMPLE; i <= MAXJSAMPLE; i++, x++) {
108 /* i is the actual input pixel value, in the range 0..MAXJSAMPLE */
H A Djdct.h73 * converting them to unsigned form (0..MAXJSAMPLE). The raw outputs could
82 #define RANGE_MASK (MAXJSAMPLE * 4 + 3) /* 2 bits wider than legal samples */
H A Djquant2.c131 #define MAXNUMCOLORS (MAXJSAMPLE+1) /* maximum size of colormap */
556 boxlist[0].c0max = MAXJSAMPLE >> C0_SHIFT;
558 boxlist[0].c1max = MAXJSAMPLE >> C1_SHIFT;
560 boxlist[0].c2max = MAXJSAMPLE >> C2_SHIFT;
1020 /* Form pixel value + error, and range-limit to 0..MAXJSAMPLE.
1021 * The maximum error is +- MAXJSAMPLE (or less with error limiting);
1097 * +- MAXJSAMPLE. But we want the maximum correction applied to a pixel to be
1106 * A simple clamping of the error values to about +- MAXJSAMPLE/8 works pretty
1120 ((j_common_ptr) cinfo, JPOOL_IMAGE, (MAXJSAMPLE*2+1) * SIZEOF(int));
1121 table += MAXJSAMPLE; /* s
[all...]

Completed in 38 milliseconds