Grok 20.3.2
grk::t1::ojph::T1OJPH Class Reference

#include <CoderOJPH.h>

Inheritance diagram for grk::t1::ojph::T1OJPH:
grk::t1::ICoder

Public Member Functions

 T1OJPH (bool isCompressor, uint32_t maxCblkW, uint32_t maxCblkH)
virtual ~T1OJPH ()
bool compress (CompressBlockExec *block) override
 compress code block
bool decompress (DecompressBlockExec *block) override
 decompress code block
Public Member Functions inherited from grk::t1::ICoder
virtual ~ICoder ()=default

Private Member Functions

bool preCompress (CompressBlockExec *block)
bool postProcess (DecompressBlockExec *block)

Private Attributes

uint32_t coded_data_size
uint8_t * coded_data
uint32_t unencoded_data_size
int32_t * unencoded_data
mem_fixed_allocatorallocator
mem_elastic_allocatorelastic_alloc

Constructor & Destructor Documentation

◆ T1OJPH()

grk::t1::ojph::T1OJPH::T1OJPH ( bool isCompressor,
uint32_t maxCblkW,
uint32_t maxCblkH )

◆ ~T1OJPH()

grk::t1::ojph::T1OJPH::~T1OJPH ( )
virtual

Member Function Documentation

◆ compress()

bool grk::t1::ojph::T1OJPH::compress ( CompressBlockExec * block)
overridevirtual

◆ decompress()

◆ postProcess()

bool grk::t1::ojph::T1OJPH::postProcess ( DecompressBlockExec * block)
private

◆ preCompress()

bool grk::t1::ojph::T1OJPH::preCompress ( CompressBlockExec * block)
private

References grk::shift, and unencoded_data.

Referenced by compress().

Member Data Documentation

◆ allocator

mem_fixed_allocator* grk::t1::ojph::T1OJPH::allocator
private

Referenced by T1OJPH(), and ~T1OJPH().

◆ coded_data

uint8_t* grk::t1::ojph::T1OJPH::coded_data
private

Referenced by decompress(), T1OJPH(), and ~T1OJPH().

◆ coded_data_size

uint32_t grk::t1::ojph::T1OJPH::coded_data_size
private

Referenced by decompress(), and T1OJPH().

◆ elastic_alloc

mem_elastic_allocator* grk::t1::ojph::T1OJPH::elastic_alloc
private

Referenced by compress(), T1OJPH(), and ~T1OJPH().

◆ unencoded_data

int32_t* grk::t1::ojph::T1OJPH::unencoded_data
private

◆ unencoded_data_size

uint32_t grk::t1::ojph::T1OJPH::unencoded_data_size
private

Referenced by T1OJPH().


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