MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / stbi__jpeg_info

Function stbi__jpeg_info

lite/example/cpp_example/mge/cv/stb_image.h:4406–4415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4404}
4405
4406static int stbi__jpeg_info(stbi__context* s, int* x, int* y, int* comp) {
4407 int result;
4408 stbi__jpeg* j = (stbi__jpeg*)(stbi__malloc(sizeof(stbi__jpeg)));
4409 if (!j)
4410 return stbi__err("outofmem", "Out of memory");
4411 j->s = s;
4412 result = stbi__jpeg_info_raw(j, x, y, comp);
4413 STBI_FREE(j);
4414 return result;
4415}
4416#endif
4417
4418// 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