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

Function stbi_is_hdr_from_memory

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

Source from the content-addressed store, hash-verified

1552// reports false!
1553
1554STBIDEF int stbi_is_hdr_from_memory(stbi_uc const* buffer, int len) {
1555#ifndef STBI_NO_HDR
1556 stbi__context s;
1557 stbi__start_mem(&s, buffer, len);
1558 return stbi__hdr_test(&s);
1559#else
1560 STBI_NOTUSED(buffer);
1561 STBI_NOTUSED(len);
1562 return 0;
1563#endif
1564}
1565
1566#ifndef STBI_NO_STDIO
1567STBIDEF int stbi_is_hdr(char const* filename) {

Callers

nothing calls this directly

Calls 2

stbi__start_memFunction · 0.85
stbi__hdr_testFunction · 0.85

Tested by

no test coverage detected