#include <cstring>
#include "iz_p.h"
Go to the source code of this file.
#define encodePixel |
( |
|
predictor | ) |
|
Value:{ \
Pixel<> pix, pp; \
\
pix.readFrom(p); \
pp.predict(p, bpp, bpr, predictor::predict); \
pix -= pp; \
pix.forwardTransform(); \
p += bpp; \
pix.toUnsigned(); \
\
int nl = pix.numBits(); \
pix.writeBits(*this, nl); \
}
static unsigned int bitMask(unsigned int bitCount)
Definition at line 10 of file encoder.h.