MCPcopy Create free account
hub / github.com/Tom94/tev / dngHdrDecodingFunction

Function dngHdrDecodingFunction

src/imageio/TiffImageLoader.cpp:366–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364// https://helpx.adobe.com/content/dam/help/en/photoshop/pdf/DNG_Spec_1_7_0_0.pdf page 94
365float dngHdrEncodingFunction(const float x) { return x * (256.0f + x) / (256.0f * (1 + x)); }
366float dngHdrDecodingFunction(const float x) { return 16.0f * (8.0f * x - 8.0f + sqrt(64.0f * x * x - 127.0f * x + 64.0f)); }
367
368template <trivially_copyable T>
369void unpackBits(

Callers 1

postprocessLinearRawDngFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected