Lines Matching defs:output
161 // output otherwise. E.g. if you set desired_channels to 4, you will always
162 // get RGBA output, but you can check *channels_in_file to see if it's trivially
165 // An output image with N components has the following components interleaved
515 // flip the image vertically, so the first pixel in the output array is the bottom left
1139 ri->channel_order = STBI_ORDER_RGB; // all current input & output are this, but this is here so we can add BGR order
1859 float *output;
1861 output = (float *) stbi__malloc_mad4(x, y, comp, sizeof(float), 0);
1862 if (output == NULL) { STBI_FREE(data); return stbi__errpf("outofmem", "Out of memory"); }
1867 output[i*comp + k] = (float) (pow(data[i*comp+k]/255.0f, stbi__l2h_gamma) * stbi__l2h_scale);
1872 output[i*comp + n] = data[i*comp + n]/255.0f;
1876 return output;
1885 stbi_uc *output;
1887 output = (stbi_uc *) stbi__malloc_mad3(x, y, comp, 0);
1888 if (output == NULL) { STBI_FREE(data); return stbi__errpuc("outofmem", "Out of memory"); }
1896 output[i*comp + k] = (stbi_uc) stbi__float2int(z);
1902 output[i*comp + k] = (stbi_uc) stbi__float2int(z);
1906 return output;
1915 // - doesn't support delayed output of y-dimension
1916 // - simple interface (only one output format: 8-bit interleaved RGB)
3583 // pack and write output
3892 stbi_uc *output;
3920 output = (stbi_uc *) stbi__malloc_mad3(n, z->s->img_x, z->s->img_y, 1);
3921 if (!output) { stbi__cleanup_jpeg(z); return stbi__errpuc("outofmem", "Out of memory"); }
3925 stbi_uc *out = output + n * z->s->img_x * j;
4021 if (comp) *comp = z->s->img_n >= 3 ? 3 : 1; // report original components, not output
4022 return output;
4082 // - all output is written to a single output buffer (can malloc/realloc)
4264 if (!z->z_expandable) return stbi__err("output buffer limit","Corrupt PNG");
4427 // window = 1 << (8 + cinfo)... but who cares, we fully buffer output
4686 cur += x*out_n - img_width_bytes; // store output to the rightmost img_len bytes, so we can decode in place
4914 // already got 255 as the alpha value in the output
4939 // already got 65535 as the alpha value in the output
6263 if (ri->bits_per_channel == 16) { // output bpc
6310 // convert to desired output format
6562 stbi_uc *out; // output buffer (always 4 components)
7136 static void stbi__hdr_convert(float *output, stbi_uc *input, int req_comp)
7143 output[0] = (input[0] + input[1] + input[2]) * f1 / 3;
7145 output[0] = input[0] * f1;
7146 output[1] = input[1] * f1;
7147 output[2] = input[2] * f1;
7149 if (req_comp == 2) output[1] = 1;
7150 if (req_comp == 4) output[3] = 1;
7153 case 4: output[3] = 1; /* fallthrough */
7154 case 3: output[0] = output[1] = output[2] = 0;
7156 case 2: output[1] = 1; /* fallthrough */
7157 case 1: output[0] = 0;
7932 0.93 handle jpegtran output; verbose errors
7934 0.91 output 24-bit Windows 3.0 BMP files