Lines Matching refs:num_colors
47 write_header (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo, int num_colors) in write_header() argument
55 if (num_colors > 0) { in write_header()
57 targaheader[5] = (char) (num_colors & 0xFF); in write_header()
58 targaheader[6] = (char) (num_colors >> 8); in write_header()
72 if (num_colors > 0) { in write_header()
163 int num_colors, i; in start_output_tga() local
177 num_colors = cinfo->actual_number_of_colors; in start_output_tga()
178 if (num_colors > 256) in start_output_tga()
179 ERREXIT1(cinfo, JERR_TOO_MANY_COLORS, num_colors); in start_output_tga()
180 write_header(cinfo, dinfo, num_colors); in start_output_tga()
183 for (i = 0; i < num_colors; i++) { in start_output_tga()