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

Function stbi_load_16_from_memory

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

Source from the content-addressed store, hash-verified

1443#endif //! STBI_NO_STDIO
1444
1445STBIDEF stbi_us* stbi_load_16_from_memory(
1446 stbi_uc const* buffer, int len, int* x, int* y, int* channels_in_file,
1447 int desired_channels) {
1448 stbi__context s;
1449 stbi__start_mem(&s, buffer, len);
1450 return stbi__load_and_postprocess_16bit(
1451 &s, x, y, channels_in_file, desired_channels);
1452}
1453
1454STBIDEF stbi_us* stbi_load_16_from_callbacks(
1455 stbi_io_callbacks const* clbk, void* user, int* x, int* y,

Callers

nothing calls this directly

Calls 2

stbi__start_memFunction · 0.85

Tested by

no test coverage detected