Lines Matching refs:UCH
29 #define UCH(x) ((int) (x))
33 #define UCH(x) ((int) (x))
36 #define UCH(x) ((int) (x) & 0xFF)
184 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[0]);
202 t = UCH(source->tga_pixel[0]);
222 t = UCH(source->tga_pixel[0]);
223 t += UCH(source->tga_pixel[1]) << 8;
249 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[2]); /* change BGR to RGB order */
250 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[1]);
251 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[0]);
341 #define GET_2B(offset) ((unsigned int) UCH(targaheader[offset]) + \
342 (((unsigned int) UCH(targaheader[offset+1])) << 8))
351 idlen = UCH(targaheader[0]);
352 cmaptype = UCH(targaheader[1]);
353 subtype = UCH(targaheader[2]);
357 source->pixel_size = UCH(targaheader[16]) >> 3;
358 flags = UCH(targaheader[17]); /* Image Descriptor byte */
365 (UCH(targaheader[16]) & 7) != 0 || /* bits/pixel must be multiple of 8 */
454 read_colormap(source, (int) maplen, UCH(targaheader[7]));