MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / stbi_is_hdr_from_memory

Function stbi_is_hdr_from_memory

Source/Utils/stb_image.h:1516–1527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1514// reports false!
1515
1516STBIDEF int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len)
1517{
1518 #ifndef STBI_NO_HDR
1519 stbi__context s;
1520 stbi__start_mem(&s,buffer,len);
1521 return stbi__hdr_test(&s);
1522 #else
1523 STBI_NOTUSED(buffer);
1524 STBI_NOTUSED(len);
1525 return 0;
1526 #endif
1527}
1528
1529#ifndef STBI_NO_STDIO
1530STBIDEF 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