fast 0..255 * 0..255 => 0..255 rounded multiplication
| 3857 | |
| 3858 | // fast 0..255 * 0..255 => 0..255 rounded multiplication |
| 3859 | static stbi_uc stbi__blinn_8x8(stbi_uc x, stbi_uc y) |
| 3860 | { |
| 3861 | unsigned int t = x*y + 128; |
| 3862 | return (stbi_uc) ((t + (t >>8)) >> 8); |
| 3863 | } |
| 3864 | |
| 3865 | static stbi_uc *load_jpeg_image(stbi__jpeg *z, int *out_x, int *out_y, int *comp, int req_comp) |
| 3866 | { |