Home
last modified time | relevance | path

Searched refs:targaheader (Results 1 – 4 of 4) sorted by relevance

/external/qemu/distrib/jpeg-6b/
Dwrtarga.c57 char targaheader[18]; in write_header() local
60 MEMZERO(targaheader, SIZEOF(targaheader)); in write_header()
63 targaheader[1] = 1; /* color map type 1 */ in write_header()
64 targaheader[5] = (char) (num_colors & 0xFF); in write_header()
65 targaheader[6] = (char) (num_colors >> 8); in write_header()
66 targaheader[7] = 24; /* 24 bits per cmap entry */ in write_header()
69 targaheader[12] = (char) (cinfo->output_width & 0xFF); in write_header()
70 targaheader[13] = (char) (cinfo->output_width >> 8); in write_header()
71 targaheader[14] = (char) (cinfo->output_height & 0xFF); in write_header()
72 targaheader[15] = (char) (cinfo->output_height >> 8); in write_header()
[all …]
Drdtarga.c336 U_CHAR targaheader[18]; in start_input_tga() local
341 #define GET_2B(offset) ((unsigned int) UCH(targaheader[offset]) + \ in start_input_tga()
342 (((unsigned int) UCH(targaheader[offset+1])) << 8)) in start_input_tga()
344 if (! ReadOK(source->pub.input_file, targaheader, 18)) in start_input_tga()
348 if (targaheader[16] == 15) in start_input_tga()
349 targaheader[16] = 16; in start_input_tga()
351 idlen = UCH(targaheader[0]); in start_input_tga()
352 cmaptype = UCH(targaheader[1]); in start_input_tga()
353 subtype = UCH(targaheader[2]); in start_input_tga()
357 source->pixel_size = UCH(targaheader[16]) >> 3; in start_input_tga()
[all …]
/external/jpeg/
Dwrtarga.c57 char targaheader[18]; in write_header() local
60 MEMZERO(targaheader, SIZEOF(targaheader)); in write_header()
63 targaheader[1] = 1; /* color map type 1 */ in write_header()
64 targaheader[5] = (char) (num_colors & 0xFF); in write_header()
65 targaheader[6] = (char) (num_colors >> 8); in write_header()
66 targaheader[7] = 24; /* 24 bits per cmap entry */ in write_header()
69 targaheader[12] = (char) (cinfo->output_width & 0xFF); in write_header()
70 targaheader[13] = (char) (cinfo->output_width >> 8); in write_header()
71 targaheader[14] = (char) (cinfo->output_height & 0xFF); in write_header()
72 targaheader[15] = (char) (cinfo->output_height >> 8); in write_header()
[all …]
Drdtarga.c336 U_CHAR targaheader[18]; in start_input_tga() local
341 #define GET_2B(offset) ((unsigned int) UCH(targaheader[offset]) + \ in start_input_tga()
342 (((unsigned int) UCH(targaheader[offset+1])) << 8)) in start_input_tga()
344 if (! ReadOK(source->pub.input_file, targaheader, 18)) in start_input_tga()
348 if (targaheader[16] == 15) in start_input_tga()
349 targaheader[16] = 16; in start_input_tga()
351 idlen = UCH(targaheader[0]); in start_input_tga()
352 cmaptype = UCH(targaheader[1]); in start_input_tga()
353 subtype = UCH(targaheader[2]); in start_input_tga()
357 source->pixel_size = UCH(targaheader[16]) >> 3; in start_input_tga()
[all …]