Lines Matching defs:orig
1188 static stbi_uc *stbi__convert_16_to_8(stbi__uint16 *orig, int w, int h, int channels)
1198 reduced[i] = (stbi_uc)((orig[i] >> 8) & 0xFF); // top half of each byte is sufficient approx of 16->8 bit scaling
1200 STBI_FREE(orig);
1204 static stbi__uint16 *stbi__convert_8_to_16(stbi_uc *orig, int w, int h, int channels)
1214 enlarged[i] = (stbi__uint16)((orig[i] << 8) + orig[i]); // replicate to high and low byte, maps 0->0, 255->0xffff
1216 STBI_FREE(orig);
4960 stbi_uc *p, *temp_out, *orig = a->out;
4970 int n = orig[i]*4;
4978 int n = orig[i]*4;