Lines Matching refs:targaheader
51 char targaheader[18]; in write_header() local
54 MEMZERO(targaheader, sizeof(targaheader)); in write_header()
57 targaheader[1] = 1; /* color map type 1 */ in write_header()
58 targaheader[5] = (char)(num_colors & 0xFF); in write_header()
59 targaheader[6] = (char)(num_colors >> 8); in write_header()
60 targaheader[7] = 24; /* 24 bits per cmap entry */ in write_header()
63 targaheader[12] = (char)(cinfo->output_width & 0xFF); in write_header()
64 targaheader[13] = (char)(cinfo->output_width >> 8); in write_header()
65 targaheader[14] = (char)(cinfo->output_height & 0xFF); in write_header()
66 targaheader[15] = (char)(cinfo->output_height >> 8); in write_header()
67 targaheader[17] = 0x20; /* Top-down, non-interlaced */ in write_header()
70 targaheader[2] = 3; /* image type = uncompressed grayscale */ in write_header()
71 targaheader[16] = 8; /* bits per pixel */ in write_header()
74 targaheader[2] = 1; /* image type = colormapped RGB */ in write_header()
75 targaheader[16] = 8; in write_header()
77 targaheader[2] = 2; /* image type = uncompressed RGB */ in write_header()
78 targaheader[16] = 24; in write_header()
82 if (JFWRITE(dinfo->output_file, targaheader, 18) != (size_t)18) in write_header()