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

Function stbi_load_from_file

include/stb/stb_image.h:1376–1387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1374}
1375
1376STBIDEF stbi_uc *stbi_load_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)
1377{
1378 unsigned char *result;
1379 stbi__context s;
1380 stbi__start_file(&s,f);
1381 result = stbi__load_and_postprocess_8bit(&s,x,y,comp,req_comp);
1382 if (result) {
1383 // need to 'unget' all the characters in the IO buffer
1384 fseek(f, - (int) (s.img_buffer_end - s.img_buffer), SEEK_CUR);
1385 }
1386 return result;
1387}
1388
1389STBIDEF stbi__uint16 *stbi_load_from_file_16(FILE *f, int *x, int *y, int *comp, int req_comp)
1390{

Callers 1

stbi_loadFunction · 0.85

Calls 2

stbi__start_fileFunction · 0.85

Tested by

no test coverage detected