Lines Matching refs:MAXJSAMPLE
32 * normalized to the range 0..MAXJSAMPLE rather than -0.5 .. 0.5.
38 * Note: older versions of the IJG code used a zero offset of MAXJSAMPLE/2,
70 #define G_Y_OFF (1*(MAXJSAMPLE+1)) /* offset to G => Y section */
71 #define B_Y_OFF (2*(MAXJSAMPLE+1)) /* etc. */
72 #define R_CB_OFF (3*(MAXJSAMPLE+1))
73 #define G_CB_OFF (4*(MAXJSAMPLE+1))
74 #define B_CB_OFF (5*(MAXJSAMPLE+1))
76 #define G_CR_OFF (6*(MAXJSAMPLE+1))
77 #define B_CR_OFF (7*(MAXJSAMPLE+1))
78 #define TABLE_SIZE (8*(MAXJSAMPLE+1))
97 for (i = 0; i <= MAXJSAMPLE; i++) {
104 * This ensures that the maximum output will round to MAXJSAMPLE
105 * not MAXJSAMPLE+1, and thus that we don't have to range-limit.
153 /* If the inputs are 0..MAXJSAMPLE, the outputs of these equations
245 r = MAXJSAMPLE - GETJSAMPLE(inptr[0]);
246 g = MAXJSAMPLE - GETJSAMPLE(inptr[1]);
247 b = MAXJSAMPLE - GETJSAMPLE(inptr[2]);
251 /* If the inputs are 0..MAXJSAMPLE, the outputs of these equations