MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / stbi_is_hdr_from_callbacks

Function stbi_is_hdr_from_callbacks

include/stb/stb_image.h:1559–1570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1557#endif // !STBI_NO_STDIO
1558
1559STBIDEF int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user)
1560{
1561 #ifndef STBI_NO_HDR
1562 stbi__context s;
1563 stbi__start_callbacks(&s, (stbi_io_callbacks *) clbk, user);
1564 return stbi__hdr_test(&s);
1565 #else
1566 STBI_NOTUSED(clbk);
1567 STBI_NOTUSED(user);
1568 return 0;
1569 #endif
1570}
1571
1572#ifndef STBI_NO_LINEAR
1573static float stbi__l2h_gamma=2.2f, stbi__l2h_scale=1.0f;

Callers

nothing calls this directly

Calls 2

stbi__start_callbacksFunction · 0.85
stbi__hdr_testFunction · 0.85

Tested by

no test coverage detected