Grok 20.3.2
grk::t1::mqcoder_base Struct Reference

MQ coder base. More...

#include <mqc_base.h>

Inheritance diagram for grk::t1::mqcoder_base:
grk::t1::mqcoder grk::t1::mqcoder_backup

Public Member Functions

 mqcoder_base (bool cached)
 Creates an mqcoder_base.
 ~mqcoder_base ()=default
 Destroys an mqcoder_base.
 mqcoder_base (const mqcoder_base &other)
mqcoder_baseoperator= (const mqcoder_base &other)
bool operator== (const mqcoder_base &other) const
void print (const std::string &msg)
 Prints internal state.
void reinit (void)

Public Attributes

uint32_t c
 Temporary buffer where bits are coded or decoded.
uint32_t a
uint8_t ct
 Number of bits already read / available to write.
uint32_t end_of_byte_stream_counter
 Count the number of times a terminating {0xFF, >0x8F} marker is read.
uint8_t * bp
 Pointer to current position in buffer.
const mqc_statectxs [MQC_NUMCTXS]
 Array of contexts.
const mqc_state ** curctx
 Pointer to current context in ctxs array.
ptrdiff_t curctx_index_
 Index of curctx in ctxs array.
bool cached_
 true if in differential decompress mode
bool finalLayer_
 true if final layer is being decompressed

Detailed Description

MQ coder base.

Constructor & Destructor Documentation

◆ mqcoder_base() [1/2]

◆ ~mqcoder_base()

grk::t1::mqcoder_base::~mqcoder_base ( )
default

Destroys an mqcoder_base.

References mqcoder_base().

◆ mqcoder_base() [2/2]

grk::t1::mqcoder_base::mqcoder_base ( const mqcoder_base & other)

References mqcoder_base().

Member Function Documentation

◆ operator=()

◆ operator==()

bool grk::t1::mqcoder_base::operator== ( const mqcoder_base & other) const

References a, c, ct, ctxs, curctx, MQC_NUMCTXS, and mqcoder_base().

◆ print()

void grk::t1::mqcoder_base::print ( const std::string & msg)

Prints internal state.

References a, bp, c, ct, and end_of_byte_stream_counter.

Referenced by grk::t1::mqcoder::print(), and grk::t1::mqcoder_backup::print().

◆ reinit()

void grk::t1::mqcoder_base::reinit ( void )

Member Data Documentation

◆ a

◆ bp

◆ c

◆ cached_

bool grk::t1::mqcoder_base::cached_

true if in differential decompress mode

Referenced by grk::t1::mqcoder::backup(), grk::DebugContext::handle(), mqcoder_base(), and operator=().

◆ ct

◆ ctxs

◆ curctx

const mqc_state** grk::t1::mqcoder_base::curctx

Pointer to current context in ctxs array.

Referenced by mqcoder_base(), operator=(), operator==(), reinit(), and grk::t1::mqcoder::segmark_enc().

◆ curctx_index_

ptrdiff_t grk::t1::mqcoder_base::curctx_index_

Index of curctx in ctxs array.

Referenced by mqcoder_base(), operator=(), and reinit().

◆ end_of_byte_stream_counter

uint32_t grk::t1::mqcoder_base::end_of_byte_stream_counter

Count the number of times a terminating {0xFF, >0x8F} marker is read.

Only used by decoder

Referenced by grk::t1::mqcoder::backup(), grk::t1::mqcoder::init_dec(), grk::t1::mqcoder::init_enc(), mqcoder_base(), operator=(), print(), reinit(), and grk::t1::mqcoder::restore().

◆ finalLayer_

bool grk::t1::mqcoder_base::finalLayer_

true if final layer is being decompressed

Referenced by mqcoder_base(), operator=(), and reinit().


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