Home
last modified time | relevance | path

Searched refs:UCH (Results 1 – 3 of 3) sorted by relevance

/external/libjpeg-turbo/
Drdtarga.c31 #define UCH(x) ((int) (x)) macro
35 #define UCH(x) ((int) (x)) macro
38 #define UCH(x) ((int) (x) & 0xFF) macro
185 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[0]); in get_8bit_gray_row()
203 t = UCH(source->tga_pixel[0]); in get_8bit_row()
223 t = UCH(source->tga_pixel[0]); in get_16bit_row()
224 t += UCH(source->tga_pixel[1]) << 8; in get_16bit_row()
250 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[2]); /* change BGR to RGB order */ in get_24bit_row()
251 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[1]); in get_24bit_row()
252 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[0]); in get_24bit_row()
[all …]
Drdppm.c46 #define UCH(x) ((int) (x)) macro
50 #define UCH(x) ((int) (x)) macro
53 #define UCH(x) ((int) (x) & 0xFF) macro
193 *ptr++ = rescale[UCH(*bufferptr++)]; in get_scaled_gray_row()
214 *ptr++ = rescale[UCH(*bufferptr++)]; in get_scaled_rgb_row()
215 *ptr++ = rescale[UCH(*bufferptr++)]; in get_scaled_rgb_row()
216 *ptr++ = rescale[UCH(*bufferptr++)]; in get_scaled_rgb_row()
253 temp = UCH(*bufferptr++) << 8; in get_word_gray_row()
254 temp |= UCH(*bufferptr++); in get_word_gray_row()
277 temp = UCH(*bufferptr++) << 8; in get_word_rgb_row()
[all …]
Drdbmp.c37 #define UCH(x) ((int) (x)) macro
41 #define UCH(x) ((int) (x)) macro
44 #define UCH(x) ((int) (x) & 0xFF) macro
283 #define GET_2B(array,offset) ((unsigned short) UCH(array[offset]) + \ in start_input_bmp()
284 (((unsigned short) UCH(array[offset+1])) << 8)) in start_input_bmp()
285 #define GET_4B(array,offset) ((unsigned int) UCH(array[offset]) + \ in start_input_bmp()
286 (((unsigned int) UCH(array[offset+1])) << 8) + \ in start_input_bmp()
287 (((unsigned int) UCH(array[offset+2])) << 16) + \ in start_input_bmp()
288 (((unsigned int) UCH(array[offset+3])) << 24)) in start_input_bmp()