Lines Matching refs:img_out_n
806 int img_n, img_out_n;
5040 if (s->img_out_n == 3) { // convert bgr to rgb
5048 STBI_ASSERT(s->img_out_n == 4);
5210 s->img_out_n = s->img_n+1;
5212 s->img_out_n = s->img_n;
5213 if (!stbi__create_png_image(z, z->expanded, raw_len, s->img_out_n, z->depth, color, interlace)) return 0;
5216 if (!stbi__compute_transparency16(z, tc16, s->img_out_n)) return 0;
5218 if (!stbi__compute_transparency(z, tc, s->img_out_n)) return 0;
5221 if (is_iphone && stbi__de_iphone_flag && s->img_out_n > 2)
5226 s->img_out_n = pal_img_n;
5227 if (req_comp >= 3) s->img_out_n = req_comp;
5228 if (!stbi__expand_png_palette(z, palette, pal_len, s->img_out_n))
5275 if (req_comp && req_comp != p->s->img_out_n) {
5277 result = stbi__convert_format((unsigned char *) result, p->s->img_out_n, req_comp, p->s->img_x, p->s->img_y);
5279 result = stbi__convert_format16((stbi__uint16 *) result, p->s->img_out_n, req_comp, p->s->img_x, p->s->img_y);
5280 p->s->img_out_n = req_comp;