Lines Matching refs:num_colors
48 write_header(j_decompress_ptr cinfo, djpeg_dest_ptr dinfo, int num_colors) in write_header() argument
56 if (num_colors > 0) { in write_header()
58 targaheader[5] = (char)(num_colors & 0xFF); in write_header()
59 targaheader[6] = (char)(num_colors >> 8); in write_header()
73 if (num_colors > 0) { in write_header()
161 int num_colors, i; in start_output_tga() local
175 num_colors = cinfo->actual_number_of_colors; in start_output_tga()
176 if (num_colors > 256) in start_output_tga()
177 ERREXIT1(cinfo, JERR_TOO_MANY_COLORS, num_colors); in start_output_tga()
178 write_header(cinfo, dinfo, num_colors); in start_output_tga()
181 for (i = 0; i < num_colors; i++) { in start_output_tga()