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

Function stbi_info

Source/Utils/stb_image.h:7688–7696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7686
7687#ifndef STBI_NO_STDIO
7688STBIDEF int stbi_info(char const *filename, int *x, int *y, int *comp)
7689{
7690 FILE *f = stbi__fopen(filename, "rb");
7691 int result;
7692 if (!f) return stbi__err("can't fopen", "Unable to open file");
7693 result = stbi_info_from_file(f, x, y, comp);
7694 fclose(f);
7695 return result;
7696}
7697
7698STBIDEF int stbi_info_from_file(FILE *f, int *x, int *y, int *comp)
7699{

Callers

nothing calls this directly

Calls 3

stbi__fopenFunction · 0.85
stbi__errFunction · 0.85
stbi_info_from_fileFunction · 0.85

Tested by

no test coverage detected