Lines Matching refs:MAXJSAMPLE
34 * normalized to the range 0..MAXJSAMPLE rather than -0.5 .. 0.5.
40 * Note: older versions of the IJG code used a zero offset of MAXJSAMPLE/2,
72 #define G_Y_OFF (1*(MAXJSAMPLE+1)) /* offset to G => Y section */
73 #define B_Y_OFF (2*(MAXJSAMPLE+1)) /* etc. */
74 #define R_CB_OFF (3*(MAXJSAMPLE+1))
75 #define G_CB_OFF (4*(MAXJSAMPLE+1))
76 #define B_CB_OFF (5*(MAXJSAMPLE+1))
78 #define G_CR_OFF (6*(MAXJSAMPLE+1))
79 #define B_CR_OFF (7*(MAXJSAMPLE+1))
80 #define TABLE_SIZE (8*(MAXJSAMPLE+1))
99 for (i = 0; i <= MAXJSAMPLE; i++) {
106 * This ensures that the maximum output will round to MAXJSAMPLE
107 * not MAXJSAMPLE+1, and thus that we don't have to range-limit.
155 /* If the inputs are 0..MAXJSAMPLE, the outputs of these equations
247 r = MAXJSAMPLE - GETJSAMPLE(inptr[0]);
248 g = MAXJSAMPLE - GETJSAMPLE(inptr[1]);
249 b = MAXJSAMPLE - GETJSAMPLE(inptr[2]);
253 /* If the inputs are 0..MAXJSAMPLE, the outputs of these equations