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

Function stbi_info_from_file

Source/Utils/stb_image.h:7698–7707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7696}
7697
7698STBIDEF int stbi_info_from_file(FILE *f, int *x, int *y, int *comp)
7699{
7700 int r;
7701 stbi__context s;
7702 long pos = ftell(f);
7703 stbi__start_file(&s, f);
7704 r = stbi__info_main(&s,x,y,comp);
7705 fseek(f,pos,SEEK_SET);
7706 return r;
7707}
7708
7709STBIDEF int stbi_is_16_bit(char const *filename)
7710{

Callers 1

stbi_infoFunction · 0.85

Calls 2

stbi__start_fileFunction · 0.85
stbi__info_mainFunction · 0.85

Tested by

no test coverage detected