MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / stbi__is_16_main

Function stbi__is_16_main

lite/example/cpp_example/mge/cv/stb_image.h:8374–8390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8372}
8373
8374static int stbi__is_16_main(stbi__context* s) {
8375#ifndef STBI_NO_PNG
8376 if (stbi__png_is16(s))
8377 return 1;
8378#endif
8379
8380#ifndef STBI_NO_PSD
8381 if (stbi__psd_is16(s))
8382 return 1;
8383#endif
8384
8385#ifndef STBI_NO_PNM
8386 if (stbi__pnm_is16(s))
8387 return 1;
8388#endif
8389 return 0;
8390}
8391
8392#ifndef STBI_NO_STDIO
8393STBIDEF int stbi_info(char const* filename, int* x, int* y, int* comp) {

Callers 3

stbi_is_16_bit_from_fileFunction · 0.85

Calls 3

stbi__png_is16Function · 0.85
stbi__psd_is16Function · 0.85
stbi__pnm_is16Function · 0.85

Tested by

no test coverage detected