10 #define decodePixel(predictor) \ 15 int nl = decodeTable[pl][this->peekBits(MAX_CODE_LENGTH)]; \ 16 this->skipBits(dCount[(pl << CONTEXT_BITS) + nl]); \ 18 pix.readBits(*this, nl); \ 20 pp.predict(p, bpp, bpr, predictor::predict); \ 22 pix.reverseTransform(); \ 30 typename Predictor = Predictor3avgplane<>,
41 unsigned char *
p = (
unsigned char *) im.data();
42 const int bpr = bpp * im.width();
43 im.setSamplesPerLine(bpr);
44 const int size = im.width() * im.height();
45 unsigned char *pend = p + bpp * size;
51 const unsigned char *endline = p + bpr - bpp;
52 while (p != endline) {
59 const unsigned char *endline = p + bpr - bpp;
60 while (p != endline) {
void skipBits(unsigned int count)
void decodeImageSize(Image<> &im)
#define decodePixel(predictor)
const unsigned int staticdCount[1<< (2 *CONTEXT_BITS)]
void decodeImagePixels(Image<> &im) __attribute__((always_inline))
void setHeight(int height)
unsigned int dCount[1<< (2 *CONTEXT_BITS)]
unsigned int readBits(unsigned int count)