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

Function stbi_zlib_decode_buffer

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

Source from the content-addressed store, hash-verified

4911}
4912
4913STBIDEF int stbi_zlib_decode_buffer(
4914 char* obuffer, int olen, char const* ibuffer, int ilen) {
4915 stbi__zbuf a;
4916 a.zbuffer = (stbi_uc*)ibuffer;
4917 a.zbuffer_end = (stbi_uc*)ibuffer + ilen;
4918 if (stbi__do_zlib(&a, obuffer, olen, 0, 1))
4919 return (int)(a.zout - a.zout_start);
4920 else
4921 return -1;
4922}
4923
4924STBIDEF char* stbi_zlib_decode_noheader_malloc(
4925 char const* buffer, int len, int* outlen) {

Callers

nothing calls this directly

Calls 1

stbi__do_zlibFunction · 0.85

Tested by

no test coverage detected