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

Function wenc14

tutorials/common/image/tinyexr.h:1884–1894  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1882//
1883
1884inline void wenc14(unsigned short a, unsigned short b, unsigned short &l,
1885 unsigned short &h) {
1886 short as = static_cast<short>(a);
1887 short bs = static_cast<short>(b);
1888
1889 short ms = (as + bs) >> 1;
1890 short ds = as - bs;
1891
1892 l = static_cast<unsigned short>(ms);
1893 h = static_cast<unsigned short>(ds);
1894}
1895
1896inline void wdec14(unsigned short l, unsigned short h, unsigned short &a,
1897 unsigned short &b) {

Callers 1

wav2EncodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected