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

Function dngHdrEncodingFunction

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

https://helpx.adobe.com/content/dam/help/en/photoshop/pdf/DNG_Spec_1_7_0_0.pdf page 94

Source from the content-addressed store, hash-verified

363
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>

Callers 1

postprocessLinearRawDngFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected