| 1374 | } |
| 1375 | |
| 1376 | STBIDEF 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 | |
| 1389 | STBIDEF stbi__uint16 *stbi_load_from_file_16(FILE *f, int *x, int *y, int *comp, int req_comp) |
| 1390 | { |
no test coverage detected