Lines Matching defs:num_colors
48 write_header(j_decompress_ptr cinfo, djpeg_dest_ptr dinfo, int num_colors)
56 if (num_colors > 0) {
58 targaheader[5] = (char)(num_colors & 0xFF);
59 targaheader[6] = (char)(num_colors >> 8);
73 if (num_colors > 0) {
164 int num_colors, i;
178 num_colors = cinfo->actual_number_of_colors;
179 if (num_colors > 256)
180 ERREXIT1(cinfo, JERR_TOO_MANY_COLORS, num_colors);
181 write_header(cinfo, dinfo, num_colors);
184 for (i = 0; i < num_colors; i++) {