Home | History | Annotate | Download | only in jpeg

Lines Matching refs:cb

23   int * Cb_b_tab;		/* => table for Cb to B conversion */
25 INT32 * Cb_g_tab; /* => table for Cb to G conversion */
54 * YCbCr is defined per CCIR 601-1, except that Cb and Cr are
58 * G = Y - 0.34414 * Cb - 0.71414 * Cr
59 * B = Y + 1.77200 * Cb
60 * where Cb and Cr represent the incoming values less CENTERJSAMPLE.
70 * by precalculating the constants times Cb and Cr for all possible values.
75 * The Cr=>R and Cb=>B values can be rounded to integers in advance; the
112 /* The Cb or Cr value we are thinking of is x = i - CENTERJSAMPLE */
116 /* Cb=>B value is nearest int to 1.77200 * x */
121 /* Cb=>G value is scaled-up -0.34414 * x */
144 register int y, cb, cr;
165 cb = GETJSAMPLE(inptr1[col]);
170 ((int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr],
172 outptr[RGB_BLUE] = range_limit[y + Cbbtab[cb]];
185 register int y, cb, cr;
206 cb = GETJSAMPLE(inptr1[col]);
211 ((int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr],
213 outptr[RGB_BLUE] = range_limit[y + Cbbtab[cb]];
226 register int y, cb, cr;
250 cb = GETJSAMPLE(*inptr1++);
253 g = range_limit[y + ((int)RIGHT_SHIFT(Cbgtab[cb]+Crgtab[cr], SCALEBITS))];
254 b = range_limit[y + Cbbtab[cb]];
262 cb = GETJSAMPLE(*inptr1++);
265 g = range_limit[y + ((int)RIGHT_SHIFT(Cbgtab[cb]+Crgtab[cr], SCALEBITS))];
266 b = range_limit[y + Cbbtab[cb]];
270 cb = GETJSAMPLE(*inptr1++);
273 g = range_limit[y + ((int)RIGHT_SHIFT(Cbgtab[cb]+Crgtab[cr], SCALEBITS))];
274 b = range_limit[y + Cbbtab[cb]];
281 cb = GETJSAMPLE(*inptr1);
284 g = range_limit[y + ((int)RIGHT_SHIFT(Cbgtab[cb]+Crgtab[cr], SCALEBITS))];
285 b = range_limit[y + Cbbtab[cb]];
298 register int y, cb, cr;
322 cb = GETJSAMPLE(*inptr1++);
325 g = range_limit[DITHER_565_G(y + ((int)RIGHT_SHIFT(Cbgtab[cb]+Crgtab[cr], SCALEBITS)), d0)];
326 b = range_limit[DITHER_565_B(y + Cbbtab[cb], d0)];
334 cb = GETJSAMPLE(*inptr1++);
337 g = range_limit[DITHER_565_G(y + ((int)RIGHT_SHIFT(Cbgtab[cb]+Crgtab[cr], SCALEBITS)), d0)];
338 b = range_limit[DITHER_565_B(y + Cbbtab[cb], d0)];
342 cb = GETJSAMPLE(*inptr1++);
345 g = range_limit[DITHER_565_G(y + ((int)RIGHT_SHIFT(Cbgtab[cb]+Crgtab[cr], SCALEBITS)), d0)];
346 b = range_limit[DITHER_565_B(y + Cbbtab[cb], d0)];
354 cb = GETJSAMPLE(*inptr1);
357 g = range_limit[DITHER_565_G(y + ((int)RIGHT_SHIFT(Cbgtab[cb]+Crgtab[cr], SCALEBITS)), d0)];
358 b = range_limit[DITHER_565_B(y + Cbbtab[cb], d0)];
694 register int y, cb, cr;
716 cb = GETJSAMPLE(inptr1[col]);
721 ((int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr],
723 outptr[2] = range_limit[MAXJSAMPLE - (y + Cbbtab[cb])]; /* blue */