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

Function stbi__malloc_mad4

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

Source from the content-addressed store, hash-verified

1086
1087#if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR) || !defined(STBI_NO_PNM)
1088static void* stbi__malloc_mad4(int a, int b, int c, int d, int add) {
1089 if (!stbi__mad4sizes_valid(a, b, c, d, add))
1090 return NULL;
1091 return stbi__malloc(a * b * c * d + add);
1092}
1093#endif
1094
1095// stbi__err - error

Callers 3

stbi__ldr_to_hdrFunction · 0.85
stbi__hdr_loadFunction · 0.85
stbi__pnm_loadFunction · 0.85

Calls 2

stbi__mad4sizes_validFunction · 0.85
stbi__mallocFunction · 0.85

Tested by

no test coverage detected