Lines Matching defs:output

113 // have been output otherwise. E.g. if you set req_comp to 4, you will always
114 // get RGBA output, but you can check *comp to easily see if it's opaque.
116 // An output image with N components has the following components interleaved
295 typedef void (*stbi_YCbCr_to_RGB_run)(stbi_uc *output, stbi_uc const *y, stbi_uc const *cb, stbi_uc const *cr, int count, int step);
298 // write pixels to 'output'; each pixel is 'step' bytes (either 3 or 4; if 4, write '255' as 4th), order R,G,B
1040 float *output = MALLOC(x * y * comp * sizeof(float));
1041 if (output == NULL) { FREE(data); return epf("outofmem", "Out of memory"); }
1046 output[i*comp + k] = (float) pow(data[i*comp+k]/255.0f, l2h_gamma) * l2h_scale;
1048 if (k < comp) output[i*comp + k] = data[i*comp+k]/255.0f;
1051 return output;
1058 stbi_uc *output = MALLOC(x * y * comp);
1059 if (output == NULL) { FREE(data); return epuc("outofmem", "Out of memory"); }
1067 output[i*comp + k] = (uint8) float2int(z);
1073 output[i*comp + k] = (uint8) float2int(z);
1077 return output;
1087 // - doesn't support delayed output of y-dimension
1088 // - simple interface (only one output format: 8-bit interleaved RGB)
1988 uint8 *output;
2016 output = MALLOC(n * z->s.img_x * z->s.img_y + 1);
2017 if (!output) { cleanup_jpeg(z); return epuc("outofmem", "Out of memory"); }
2021 uint8 *out = output + n * z->s.img_x * j;
2061 if (comp) *comp = z->s.img_n; // report original components, not output
2062 return output;
2180 // - all output is written to a single output buffer (can malloc/realloc)
2338 if (!z->z_expandable) return e("output buffer limit","Corrupt PNG");
2477 // window = 1 << (8 + cinfo)... but who cares, we fully buffer output
2847 // already got 255 as the alpha value in the output
4324 stbi_uc *out; // output buffer (always 4 components)
4799 static void hdr_convert(float *output, stbi_uc *input, int req_comp)
4806 output[0] = (input[0] + input[1] + input[2]) * f1 / 3;
4808 output[0] = input[0] * f1;
4809 output[1] = input[1] * f1;
4810 output[2] = input[2] * f1;
4812 if (req_comp == 2) output[1] = 1;
4813 if (req_comp == 4) output[3] = 1;
4816 case 4: output[3] = 1; /* fallthrough */
4817 case 3: output[0] = output[1] = output[2] = 0;
4819 case 2: output[1] = 1; /* fallthrough */
4820 case 1: output[0] = 0;
5064 0.93 handle jpegtran output; verbose errors
5066 0.91 output 24-bit Windows 3.0 BMP files