MCPcopy Create free account
hub / github.com/RenderKit/embree / wdec16

Function wdec16

tutorials/common/image/tinyexr.h:1936–1944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1934}
1935
1936inline void wdec16(unsigned short l, unsigned short h, unsigned short &a,
1937 unsigned short &b) {
1938 int m = l;
1939 int d = h;
1940 int bb = (m - (d >> 1)) & MOD_MASK;
1941 int aa = (d + bb - A_OFFSET) & MOD_MASK;
1942 b = static_cast<unsigned short>(bb);
1943 a = static_cast<unsigned short>(aa);
1944}
1945
1946//
1947// 2D Wavelet encoding:

Callers 1

wav2DecodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected