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

Function stbi__jpeg_info

Source/Utils/stb_image.h:4067–4077  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4065}
4066
4067static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp)
4068{
4069 int result;
4070 stbi__jpeg* j = (stbi__jpeg*) (stbi__malloc(sizeof(stbi__jpeg)));
4071 if (!j) return stbi__err("outofmem", "Out of memory");
4072 memset(j, 0, sizeof(stbi__jpeg));
4073 j->s = s;
4074 result = stbi__jpeg_info_raw(j, x, y, comp);
4075 STBI_FREE(j);
4076 return result;
4077}
4078#endif
4079
4080// public domain zlib decode v0.2 Sean Barrett 2006-11-18

Callers 1

stbi__info_mainFunction · 0.85

Calls 3

stbi__mallocFunction · 0.85
stbi__errFunction · 0.85
stbi__jpeg_info_rawFunction · 0.85

Tested by

no test coverage detected