Lines Matching refs:out_n
4650 static int stbi__create_png_image_raw(stbi__png *a, stbi_uc *raw, stbi__uint32 raw_len, int out_n, stbi__uint32 x, stbi__uint32 y, int depth, int color)
4654 stbi__uint32 i,j,stride = x*out_n*bytes;
4659 int output_bytes = out_n*bytes;
4663 STBI_ASSERT(out_n == s->img_n || out_n == s->img_n+1);
4686 cur += x*out_n - img_width_bytes; // store output to the rightmost img_len bytes, so we can decode in place
4709 if (img_n != out_n)
4712 cur += out_n;
4713 prior += out_n;
4715 if (img_n != out_n) {
4729 if (depth < 8 || img_n == out_n) {
4747 STBI_ASSERT(img_n+1 == out_n);
4780 stbi_uc *in = a->out + stride*j + x*out_n - img_width_bytes;
4826 if (img_n != out_n) {
4854 for(i=0; i < x*y*out_n; ++i,cur16++,cur+=2) {
4862 static int stbi__create_png_image(stbi__png *a, stbi_uc *image_data, stbi__uint32 image_data_len, int out_n, int depth, int color, int interlaced)
4865 int out_bytes = out_n * bytes;
4869 return stbi__create_png_image_raw(a, image_data, image_data_len, out_n, a->s->img_x, a->s->img_y, depth, color);
4885 if (!stbi__create_png_image_raw(a, image_data, image_data_len, out_n, x, y, depth, color)) {
4907 static int stbi__compute_transparency(stbi__png *z, stbi_uc tc[3], int out_n)
4915 STBI_ASSERT(out_n == 2 || out_n == 4);
4917 if (out_n == 2) {
4932 static int stbi__compute_transparency16(stbi__png *z, stbi__uint16 tc[3], int out_n)
4940 STBI_ASSERT(out_n == 2 || out_n == 4);
4942 if (out_n == 2) {