MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / stbi_is_16_bit

Function stbi_is_16_bit

Source/Utils/stb_image.h:7709–7717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7707}
7708
7709STBIDEF int stbi_is_16_bit(char const *filename)
7710{
7711 FILE *f = stbi__fopen(filename, "rb");
7712 int result;
7713 if (!f) return stbi__err("can't fopen", "Unable to open file");
7714 result = stbi_is_16_bit_from_file(f);
7715 fclose(f);
7716 return result;
7717}
7718
7719STBIDEF int stbi_is_16_bit_from_file(FILE *f)
7720{

Callers

nothing calls this directly

Calls 3

stbi__fopenFunction · 0.85
stbi__errFunction · 0.85
stbi_is_16_bit_from_fileFunction · 0.85

Tested by

no test coverage detected