Searched refs:stbi__uint16 (Results 1 - 1 of 1) sorted by relevance
/third_party/astc-encoder/Source/ |
H A D | stb_image.h | 640 typedef unsigned short stbi__uint16; typedef 646 typedef uint16_t stbi__uint16; typedef 1188 static stbi_uc *stbi__convert_16_to_8(stbi__uint16 *orig, int w, int h, int channels) in stbi__convert_16_to_8() 1204 static stbi__uint16 *stbi__convert_8_to_16(stbi_uc *orig, int w, int h, int channels) in stbi__convert_8_to_16() 1208 stbi__uint16 *enlarged; in stbi__convert_8_to_16() 1210 enlarged = (stbi__uint16 *) stbi__malloc(img_len*2); in stbi__convert_8_to_16() 1211 if (enlarged == NULL) return (stbi__uint16 *) stbi__errpuc("outofmem", "Out of memory"); in stbi__convert_8_to_16() 1214 enlarged[i] = (stbi__uint16)((orig[i] << 8) + orig[i]); // replicate to high and low byte, maps 0->0, 255->0xffff in stbi__convert_8_to_16() 1270 result = stbi__convert_16_to_8((stbi__uint16 *) result, *x, *y, req_comp == 0 ? *comp : req_comp); in stbi__load_and_postprocess_8bit() 1284 static stbi__uint16 *stbi__load_and_postprocess_16bi [all...] |
Completed in 6 milliseconds