Public Member Functions | Private Member Functions | Private Attributes | List of all members
IntegerCompressor Class Reference

#include <integercompressor.hpp>

Public Member Functions

void compress (I32 iPred, I32 iReal, U32 context=0)
 
I32 decompress (I32 iPred, U32 context=0)
 
U32 getK () const
 
void initCompressor ()
 
void initDecompressor ()
 
 IntegerCompressor (EntropyEncoder *enc, U32 bits=16, U32 contexts=1, U32 bits_high=8, U32 range=0)
 
 IntegerCompressor (EntropyDecoder *dec, U32 bits=16, U32 contexts=1, U32 bits_high=8, U32 range=0)
 
 ~IntegerCompressor ()
 

Private Member Functions

I32 readCorrector (EntropyModel *model)
 
void writeCorrector (I32 c, EntropyModel *model)
 

Private Attributes

U32 bits
 
U32 bits_high
 
U32 contexts
 
U32 corr_bits
 
int ** corr_histogram
 
I32 corr_max
 
I32 corr_min
 
U32 corr_range
 
EntropyDecoderdec
 
EntropyEncoderenc
 
U32 k
 
EntropyModel ** mBits
 
EntropyModel ** mCorrector
 
U32 range
 

Detailed Description

Definition at line 53 of file integercompressor.hpp.

Constructor & Destructor Documentation

◆ IntegerCompressor() [1/2]

IntegerCompressor::IntegerCompressor ( EntropyEncoder enc,
U32  bits = 16,
U32  contexts = 1,
U32  bits_high = 8,
U32  range = 0 
)

Definition at line 46 of file integercompressor.cpp.

◆ IntegerCompressor() [2/2]

IntegerCompressor::IntegerCompressor ( EntropyDecoder dec,
U32  bits = 16,
U32  contexts = 1,
U32  bits_high = 8,
U32  range = 0 
)

Definition at line 108 of file integercompressor.cpp.

◆ ~IntegerCompressor()

IntegerCompressor::~IntegerCompressor ( )

Definition at line 158 of file integercompressor.cpp.

Member Function Documentation

◆ compress()

void IntegerCompressor::compress ( I32  iPred,
I32  iReal,
U32  context = 0 
)

Definition at line 263 of file integercompressor.cpp.

◆ decompress()

I32 IntegerCompressor::decompress ( I32  iPred,
U32  context = 0 
)

Definition at line 319 of file integercompressor.cpp.

◆ getK()

U32 IntegerCompressor::getK ( ) const
inline

Definition at line 71 of file integercompressor.hpp.

◆ initCompressor()

void IntegerCompressor::initCompressor ( )

Definition at line 218 of file integercompressor.cpp.

◆ initDecompressor()

void IntegerCompressor::initDecompressor ( )

Definition at line 274 of file integercompressor.cpp.

◆ readCorrector()

I32 IntegerCompressor::readCorrector ( EntropyModel *  model)
private

Definition at line 466 of file integercompressor.cpp.

◆ writeCorrector()

void IntegerCompressor::writeCorrector ( I32  c,
EntropyModel *  model 
)
private

Definition at line 363 of file integercompressor.cpp.

Member Data Documentation

◆ bits

U32 IntegerCompressor::bits
private

Definition at line 82 of file integercompressor.hpp.

◆ bits_high

U32 IntegerCompressor::bits_high
private

Definition at line 80 of file integercompressor.hpp.

◆ contexts

U32 IntegerCompressor::contexts
private

Definition at line 79 of file integercompressor.hpp.

◆ corr_bits

U32 IntegerCompressor::corr_bits
private

Definition at line 85 of file integercompressor.hpp.

◆ corr_histogram

int** IntegerCompressor::corr_histogram
private

Definition at line 97 of file integercompressor.hpp.

◆ corr_max

I32 IntegerCompressor::corr_max
private

Definition at line 88 of file integercompressor.hpp.

◆ corr_min

I32 IntegerCompressor::corr_min
private

Definition at line 87 of file integercompressor.hpp.

◆ corr_range

U32 IntegerCompressor::corr_range
private

Definition at line 86 of file integercompressor.hpp.

◆ dec

EntropyDecoder* IntegerCompressor::dec
private

Definition at line 91 of file integercompressor.hpp.

◆ enc

EntropyEncoder* IntegerCompressor::enc
private

Definition at line 90 of file integercompressor.hpp.

◆ k

U32 IntegerCompressor::k
private

Definition at line 77 of file integercompressor.hpp.

◆ mBits

EntropyModel** IntegerCompressor::mBits
private

Definition at line 93 of file integercompressor.hpp.

◆ mCorrector

EntropyModel** IntegerCompressor::mCorrector
private

Definition at line 95 of file integercompressor.hpp.

◆ range

U32 IntegerCompressor::range
private

Definition at line 83 of file integercompressor.hpp.


The documentation for this class was generated from the following files:


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:10