Classes | Namespaces | Macros
encoder.h File Reference
#include <cstring>
#include "iz_p.h"
Include dependency graph for encoder.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  IZ::ImageEncoder< bpp, Predictor, Code >
 

Namespaces

 IZ
 

Macros

#define encodePixel(predictor)
 

Macro Definition Documentation

#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(); \
cx = (cx << CONTEXT_BITS) + nl; \
this->writeBits(dBits[cx & bitMask(2 * CONTEXT_BITS)], dCount[cx & bitMask(2 * CONTEXT_BITS)]); \
pix.writeBits(*this, nl); \
}
const int CONTEXT_BITS
Definition: iz_p.h:12
static unsigned int bitMask(unsigned int bitCount)
Definition: intmacros.h:11

Definition at line 10 of file encoder.h.



imagezero
Author(s):
autogenerated on Wed Jun 5 2019 22:02:47