Classes | Namespaces | Defines
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

namespace  IZ

Defines

#define encodePixel(predictor)

Define 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);                    \
}

Definition at line 10 of file encoder.h.



imagezero
Author(s):
autogenerated on Thu Jun 6 2019 21:34:51