| 1934 | } |
| 1935 | |
| 1936 | inline 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: |