MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / B44ConvertFromLinear

Function B44ConvertFromLinear

Source/ThirdParty/tinyexr.h:3753–3755  ·  view source on GitHub ↗

Convert half to linear-log space (for p_linear channels)

Source from the content-addressed store, hash-verified

3751
3752// Convert half to linear-log space (for p_linear channels)
3753static inline unsigned short B44ConvertFromLinear(unsigned short h) {
3754 return g_b44_exp_table[h];
3755}
3756
3757// Convert linear-log back to half (for p_linear channels)
3758static inline unsigned short B44ConvertToLinear(unsigned short h) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected