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

Function stbi_info

include/stb/stb_image.h:7691–7699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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