Home
last modified time | relevance | path

Searched refs:stbi__uint16 (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/external/rknpu2/examples/librknn_api_android_demo/include/stb/
H A Dstb_image.h568 typedef unsigned short stbi__uint16; typedef
574 typedef uint16_t stbi__uint16; typedef
1050 static stbi_uc *stbi__convert_16_to_8(stbi__uint16 *orig, int w, int h, int channels) in stbi__convert_16_to_8()
1066 static stbi__uint16 *stbi__convert_8_to_16(stbi_uc *orig, int w, int h, int channels) in stbi__convert_8_to_16()
1070 stbi__uint16 *enlarged; in stbi__convert_8_to_16()
1072 enlarged = (stbi__uint16 *) stbi__malloc(img_len*2); in stbi__convert_8_to_16()
1073 if (enlarged == NULL) return (stbi__uint16 *) stbi__errpuc("outofmem", "Out of memory"); in stbi__convert_8_to_16()
1076 …enlarged[i] = (stbi__uint16)((orig[i] << 8) + orig[i]); // replicate to high and low byte, maps 0-… in stbi__convert_8_to_16()
1130 … result = stbi__convert_16_to_8((stbi__uint16 *) result, *x, *y, req_comp == 0 ? *comp : req_comp); in stbi__load_and_postprocess_8bit()
1144 static stbi__uint16 *stbi__load_and_postprocess_16bit(stbi__context *s, int *x, int *y, int *comp, … in stbi__load_and_postprocess_16bit()
[all …]
/OK3568_Linux_fs/external/rknpu2/examples/3rdparty/stb/
H A Dstb_image.h568 typedef unsigned short stbi__uint16; typedef
574 typedef uint16_t stbi__uint16; typedef
1050 static stbi_uc *stbi__convert_16_to_8(stbi__uint16 *orig, int w, int h, int channels) in stbi__convert_16_to_8()
1066 static stbi__uint16 *stbi__convert_8_to_16(stbi_uc *orig, int w, int h, int channels) in stbi__convert_8_to_16()
1070 stbi__uint16 *enlarged; in stbi__convert_8_to_16()
1072 enlarged = (stbi__uint16 *) stbi__malloc(img_len*2); in stbi__convert_8_to_16()
1073 if (enlarged == NULL) return (stbi__uint16 *) stbi__errpuc("outofmem", "Out of memory"); in stbi__convert_8_to_16()
1076 …enlarged[i] = (stbi__uint16)((orig[i] << 8) + orig[i]); // replicate to high and low byte, maps 0-… in stbi__convert_8_to_16()
1130 … result = stbi__convert_16_to_8((stbi__uint16 *) result, *x, *y, req_comp == 0 ? *comp : req_comp); in stbi__load_and_postprocess_8bit()
1144 static stbi__uint16 *stbi__load_and_postprocess_16bit(stbi__context *s, int *x, int *y, int *comp, … in stbi__load_and_postprocess_16bit()
[all …]