fast 0..255 * 0..255 => 0..255 rounded multiplication
| 4166 | |
| 4167 | // fast 0..255 * 0..255 => 0..255 rounded multiplication |
| 4168 | static stbi_uc stbi__blinn_8x8(stbi_uc x, stbi_uc y) { |
| 4169 | unsigned int t = x * y + 128; |
| 4170 | return (stbi_uc)((t + (t >> 8)) >> 8); |
| 4171 | } |
| 4172 | |
| 4173 | static stbi_uc* load_jpeg_image( |
| 4174 | stbi__jpeg* z, int* out_x, int* out_y, int* comp, int req_comp) { |