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

Function stbi__malloc_mad3

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

Source from the content-addressed store, hash-verified

1079#endif
1080
1081static void* stbi__malloc_mad3(int a, int b, int c, int add) {
1082 if (!stbi__mad3sizes_valid(a, b, c, add))
1083 return NULL;
1084 return stbi__malloc(a * b * c + add);
1085}
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) {

Callers 10

stbi__convert_formatFunction · 0.85
stbi__hdr_to_ldrFunction · 0.85
load_jpeg_imageFunction · 0.85
stbi__create_png_imageFunction · 0.85
stbi__bmp_loadFunction · 0.85
stbi__tga_loadFunction · 0.85
stbi__psd_loadFunction · 0.85
stbi__pic_loadFunction · 0.85

Calls 2

stbi__mad3sizes_validFunction · 0.85
stbi__mallocFunction · 0.85

Tested by

no test coverage detected