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

Function wdec14

tutorials/common/image/tinyexr.h:1896–1909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1894}
1895
1896inline void wdec14(unsigned short l, unsigned short h, unsigned short &a,
1897 unsigned short &b) {
1898 short ls = static_cast<short>(l);
1899 short hs = static_cast<short>(h);
1900
1901 int hi = hs;
1902 int ai = ls + (hi & 1) + (hi >> 1);
1903
1904 short as = static_cast<short>(ai);
1905 short bs = static_cast<short>(ai - hi);
1906
1907 a = static_cast<unsigned short>(as);
1908 b = static_cast<unsigned short>(bs);
1909}
1910
1911//
1912// Wavelet basis functions with modulo arithmetic; they work with full

Callers 1

wav2DecodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected