MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / stbi_info_from_file

Function stbi_info_from_file

include/stb/stb_image.h:7701–7710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

stbi_infoFunction · 0.85

Calls 2

stbi__start_fileFunction · 0.85
stbi__info_mainFunction · 0.85

Tested by

no test coverage detected