Home | History | Annotate | Download | only in libjpeg-turbo

Lines Matching refs:UCH

32 #define UCH(x)  ((int) (x))
36 #define UCH(x) ((int) (x))
39 #define UCH(x) ((int) (x) & 0xFF)
186 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[0]);
204 t = UCH(source->tga_pixel[0]);
224 t = UCH(source->tga_pixel[0]);
225 t += UCH(source->tga_pixel[1]) << 8;
251 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[2]); /* change BGR to RGB order */
252 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[1]);
253 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[0]);
343 #define GET_2B(offset) ((unsigned int) UCH(targaheader[offset]) + \
344 (((unsigned int) UCH(targaheader[offset+1])) << 8))
353 idlen = UCH(targaheader[0]);
354 cmaptype = UCH(targaheader[1]);
355 subtype = UCH(targaheader[2]);
359 source->pixel_size = UCH(targaheader[16]) >> 3;
360 flags = UCH(targaheader[17]); /* Image Descriptor byte */
367 (UCH(targaheader[16]) & 7) != 0 || /* bits/pixel must be multiple of 8 */
457 read_colormap(source, (int) maplen, UCH(targaheader[7]));