Classes | Typedefs | Functions | Variables
IZ Namespace Reference

Classes

class  BitCoderBase
 
class  BitDecoder
 
class  BitEncoder
 
class  Image
 
class  ImageDecoder
 
class  ImageEncoder
 
class  InputFile
 
class  OutputFile
 
class  Pixel
 
class  PortableImage
 
class  Predictor0
 
class  Predictor1x
 
class  Predictor1y
 
class  Predictor2avg
 
class  Predictor3alpha
 
class  Predictor3avgplane
 
class  Predictor3med
 
class  Predictor3plane
 

Typedefs

typedef unsigned int U32
 
typedef unsigned long long U64
 

Functions

static unsigned int absValue (int v)
 
static unsigned int bitMask (unsigned int bitCount)
 
static unsigned int bsr (unsigned int w)
 
static int cancelValue (int v, int v0)
 
static int clamp0 (int v)
 
static int clampByte (int v)
 
static int clampMax (int v, int max)
 
static int clampMin (int v, int min)
 
static int comp_int (const void *p1, const void *p2)
 
const unsigned char * decodeImage (Image<> &im, const unsigned char *src)
 
void decodeImageSize (Image<> &im, const unsigned char *src)
 
unsigned char * encodeImage (const Image<> &im, unsigned char *dest)
 
static void initBitsTable ()
 
void initDecodeTable ()
 
void initEncodeTable ()
 
static unsigned int numBits (unsigned int v)
 
static int oppositeSign (int v1, int v2)
 
static const unsigned char * readValue (const unsigned char *p, int &value)
 
static unsigned int s2u (int s)
 
static int selectVal (int s, int v0, int v1)
 
static unsigned int signBit (int v)
 
static int u2s (unsigned int u)
 
static unsigned char * writeValue (unsigned char *p, unsigned char whiteSpace, int value)
 

Variables

const int CONTEXT_BITS = 4
 
const int CONTEXT_COUNT = 9
 
const int CONTEXT_SIZE_REGULAR = 1
 
const int CONTEXT_SIZE_RLE = 3
 
char decodeTable [1<< CONTEXT_BITS][MAX_CODE_VALUE]
 
const int MAX_CODE_LENGTH = 6
 
const int MAX_CODE_VALUE = (1 << MAX_CODE_LENGTH)
 
unsigned int staticdBits [1<< (2 *CONTEXT_BITS)]
 
const unsigned int staticdCount [1<< (2 *CONTEXT_BITS)]
 

Typedef Documentation

typedef unsigned int IZ::U32

Definition at line 24 of file bitcoder.h.

typedef unsigned long long IZ::U64

Definition at line 23 of file bitcoder.h.

Function Documentation

static unsigned int IZ::absValue ( int  v)
inlinestatic

Definition at line 74 of file intmacros.h.

static unsigned int IZ::bitMask ( unsigned int  bitCount)
inlinestatic

Definition at line 11 of file intmacros.h.

static unsigned int IZ::bsr ( unsigned int  w)
inlinestatic

Definition at line 81 of file intmacros.h.

static int IZ::cancelValue ( int  v,
int  v0 
)
inlinestatic

Definition at line 67 of file intmacros.h.

static int IZ::clamp0 ( int  v)
inlinestatic

Definition at line 53 of file intmacros.h.

static int IZ::clampByte ( int  v)
inlinestatic

Definition at line 60 of file intmacros.h.

static int IZ::clampMax ( int  v,
int  max 
)
inlinestatic

Definition at line 39 of file intmacros.h.

static int IZ::clampMin ( int  v,
int  min 
)
inlinestatic

Definition at line 46 of file intmacros.h.

static int IZ::comp_int ( const void *  p1,
const void *  p2 
)
static

Definition at line 42 of file table.cpp.

const unsigned char * IZ::decodeImage ( Image<> &  im,
const unsigned char *  src 
)

Definition at line 16 of file libiz.cpp.

void IZ::decodeImageSize ( Image<> &  im,
const unsigned char *  src 
)

Definition at line 25 of file libiz.cpp.

unsigned char * IZ::encodeImage ( const Image<> &  im,
unsigned char *  dest 
)

Definition at line 7 of file libiz.cpp.

static void IZ::initBitsTable ( )
static

Definition at line 47 of file table.cpp.

void IZ::initDecodeTable ( )

Definition at line 80 of file table.cpp.

void IZ::initEncodeTable ( )

Definition at line 73 of file table.cpp.

static unsigned int IZ::numBits ( unsigned int  v)
inlinestatic

Definition at line 89 of file intmacros.h.

static int IZ::oppositeSign ( int  v1,
int  v2 
)
inlinestatic

Definition at line 25 of file intmacros.h.

static const unsigned char* IZ::readValue ( const unsigned char *  p,
int &  value 
)
static

Definition at line 24 of file portableimage.cpp.

static unsigned int IZ::s2u ( int  s)
inlinestatic

Definition at line 97 of file intmacros.h.

static int IZ::selectVal ( int  s,
int  v0,
int  v1 
)
inlinestatic

Definition at line 32 of file intmacros.h.

static unsigned int IZ::signBit ( int  v)
inlinestatic

Definition at line 18 of file intmacros.h.

static int IZ::u2s ( unsigned int  u)
inlinestatic

Definition at line 104 of file intmacros.h.

static unsigned char* IZ::writeValue ( unsigned char *  p,
unsigned char  whiteSpace,
int  value 
)
static

Definition at line 5 of file portableimage.cpp.

Variable Documentation

const int IZ::CONTEXT_BITS = 4

Definition at line 12 of file iz_p.h.

const int IZ::CONTEXT_COUNT = 9

Definition at line 11 of file iz_p.h.

const int IZ::CONTEXT_SIZE_REGULAR = 1

Definition at line 13 of file iz_p.h.

const int IZ::CONTEXT_SIZE_RLE = 3

Definition at line 14 of file iz_p.h.

char IZ::decodeTable

Definition at line 39 of file table.cpp.

const int IZ::MAX_CODE_LENGTH = 6

Definition at line 16 of file iz_p.h.

const int IZ::MAX_CODE_VALUE = (1 << MAX_CODE_LENGTH)

Definition at line 17 of file iz_p.h.

unsigned int IZ::staticdBits

Definition at line 37 of file table.cpp.

const unsigned int IZ::staticdCount
Initial value:
=
{
1, 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0,
3, 3, 3, 3, 3, 3, 3, 4, 4, 0, 0, 0, 0, 0, 0, 0,
3, 3, 3, 3, 3, 3, 3, 4, 4, 0, 0, 0, 0, 0, 0, 0,
4, 3, 3, 3, 3, 3, 3, 3, 4, 0, 0, 0, 0, 0, 0, 0,
4, 3, 3, 3, 3, 3, 3, 3, 4, 0, 0, 0, 0, 0, 0, 0,
4, 3, 3, 3, 3, 3, 3, 3, 4, 0, 0, 0, 0, 0, 0, 0,
4, 4, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0,
4, 4, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0,
4, 4, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0,
}

Definition at line 9 of file table.cpp.



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