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