Lines Matching refs:num_colors
54 write_header (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo, int num_colors) in write_header() argument
62 if (num_colors > 0) { in write_header()
64 targaheader[5] = (char) (num_colors & 0xFF); in write_header()
65 targaheader[6] = (char) (num_colors >> 8); in write_header()
79 if (num_colors > 0) { in write_header()
170 int num_colors, i; in start_output_tga() local
184 num_colors = cinfo->actual_number_of_colors; in start_output_tga()
185 if (num_colors > 256) in start_output_tga()
186 ERREXIT1(cinfo, JERR_TOO_MANY_COLORS, num_colors); in start_output_tga()
187 write_header(cinfo, dinfo, num_colors); in start_output_tga()
190 for (i = 0; i < num_colors; i++) { in start_output_tga()