Lines Matching defs:cb
25 int * Cb_b_tab; /* => table for Cb to B conversion */
27 INT32 * Cb_g_tab; /* => table for Cb to G conversion */
56 * YCbCr is defined per CCIR 601-1, except that Cb and Cr are
60 * G = Y - 0.34414 * Cb - 0.71414 * Cr
61 * B = Y + 1.77200 * Cb
62 * where Cb and Cr represent the incoming values less CENTERJSAMPLE.
72 * by precalculating the constants times Cb and Cr for all possible values.
77 * The Cr=>R and Cb=>B values can be rounded to integers in advance; the
114 /* The Cb or Cr value we are thinking of is x = i - CENTERJSAMPLE */
118 /* Cb=>B value is nearest int to 1.77200 * x */
123 /* Cb=>G value is scaled-up -0.34414 * x */
146 register int y, cb, cr;
167 cb = GETJSAMPLE(inptr1[col]);
172 ((int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr],
174 outptr[RGB_BLUE] = range_limit[y + Cbbtab[cb]];
187 register int y, cb, cr;
208 cb = GETJSAMPLE(inptr1[col]);
213 ((int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr],
215 outptr[RGB_BLUE] = range_limit[y + Cbbtab[cb]];
228 register int y, cb, cr;
252 cb = GETJSAMPLE(*inptr1++);
255 g = range_limit[y + ((int)RIGHT_SHIFT(Cbgtab[cb]+Crgtab[cr], SCALEBITS))];
256 b = range_limit[y + Cbbtab[cb]];
264 cb = GETJSAMPLE(*inptr1++);
267 g = range_limit[y + ((int)RIGHT_SHIFT(Cbgtab[cb]+Crgtab[cr], SCALEBITS))];
268 b = range_limit[y + Cbbtab[cb]];
272 cb = GETJSAMPLE(*inptr1++);
275 g = range_limit[y + ((int)RIGHT_SHIFT(Cbgtab[cb]+Crgtab[cr], SCALEBITS))];
276 b = range_limit[y + Cbbtab[cb]];
283 cb = GETJSAMPLE(*inptr1);
286 g = range_limit[y + ((int)RIGHT_SHIFT(Cbgtab[cb]+Crgtab[cr], SCALEBITS))];
287 b = range_limit[y + Cbbtab[cb]];
300 register int y, cb, cr;
324 cb = GETJSAMPLE(*inptr1++);
327 g = range_limit[DITHER_565_G(y + ((int)RIGHT_SHIFT(Cbgtab[cb]+Crgtab[cr], SCALEBITS)), d0)];
328 b = range_limit[DITHER_565_B(y + Cbbtab[cb], d0)];
336 cb = GETJSAMPLE(*inptr1++);
339 g = range_limit[DITHER_565_G(y + ((int)RIGHT_SHIFT(Cbgtab[cb]+Crgtab[cr], SCALEBITS)), d0)];
340 b = range_limit[DITHER_565_B(y + Cbbtab[cb], d0)];
344 cb = GETJSAMPLE(*inptr1++);
347 g = range_limit[DITHER_565_G(y + ((int)RIGHT_SHIFT(Cbgtab[cb]+Crgtab[cr], SCALEBITS)), d0)];
348 b = range_limit[DITHER_565_B(y + Cbbtab[cb], d0)];
356 cb = GETJSAMPLE(*inptr1);
359 g = range_limit[DITHER_565_G(y + ((int)RIGHT_SHIFT(Cbgtab[cb]+Crgtab[cr], SCALEBITS)), d0)];
360 b = range_limit[DITHER_565_B(y + Cbbtab[cb], d0)];
696 register int y, cb, cr;
718 cb = GETJSAMPLE(inptr1[col]);
723 ((int) RIGHT_SHIFT(Cbgtab[cb] + Crgtab[cr],
725 outptr[2] = range_limit[MAXJSAMPLE - (y + Cbbtab[cb])]; /* blue */