Grok 20.3.2
grk::PrecinctCompress Struct Reference

#include <Precinct.h>

Inheritance diagram for grk::PrecinctCompress:
grk::Precinct grk::Rect32_16

Public Member Functions

 Precinct (uint16_t numLayers, const Rect32_16 &bounds, Point8 cblk_expn)
 Constructs a new Precinct object.
Public Member Functions inherited from grk::Precinct
 Precinct (uint16_t numLayers, const Rect32_16 &bounds, Point8 cblk_expn)
 Constructs a new Precinct object.
virtual ~Precinct ()
 Destroys the Precinct object.
void deleteTagTrees ()
 Deletes tag trees.
Rect32_16 getCodeBlockBounds (uint32_t cblkno)
 Gets code block bounds.
TagTreeU16getInclTree (void)
 Gets inclusion TagTreeU16.
TagTreeU8getImsbTree (void)
 Get msb TagTreeU8.
uint16_t getNominalBlockSize (void)
 Gets nominal size (area) of code block.
uint32_t getNumCblks (void)
 Gets the number of code blocks in the precinct.
t1::CodeblockCompressgetCompressBlock (uint32_t cblkno)
 Gets CodeblockCompress for a code block A CodeblockCompress will be created if it hasn't already been created yet.
t1::CodeblockDecompressgetDecompressBlock (uint32_t cblkno)
 Gets CodeblockDecompress for a code block A CodeBlockDecompress will be created if it hasn't been created yet.
t1::CodeblockDecompresstryGetDecompressBlock (uint32_t cblkno)
 Gets a CodeblockDecompress if it exists, otherwise returns nullptr.
Point8 getCblkExpn (void)
 Gets log2 of nominal code block dimensions.
Rect32_16 getCblkGrid (void)
 Gets the code block grid.
Public Member Functions inherited from grk::Rect32_16
 Rect32_16 (uint32_t x0, uint32_t y0, uint16_t w, uint16_t h)
 Rect32_16 (void)
virtual ~Rect32_16 ()=default
uint32_t x0 (void) const
uint32_t y0 (void) const
uint32_t x1 (void) const
uint32_t y1 (void) const
uint16_t width () const
uint16_t height () const
bool valid () const
bool empty (void) const
uint32_t area (void) const
Rect32_16 intersection (const Rect32_16 *rhs) const
void setRect (const Rect32_16 *rhs)
void setRect (const Rect32_16 rhs)
virtual void print (void) const

Private Member Functions

PrecinctImplmakeImpl (void) override

Additional Inherited Members

Protected Attributes inherited from grk::Precinct
uint16_t numLayers_

Member Function Documentation

◆ makeImpl()

PrecinctImpl * grk::PrecinctCompress::makeImpl ( void )
overrideprivatevirtual

Implements grk::Precinct.

References grk::Precinct::numLayers_.

◆ Precinct()

grk::Precinct::Precinct ( uint16_t numLayers,
const Rect32_16 & bounds,
Point8 cblk_expn )

Constructs a new Precinct object.

Parameters
numLayersnumber of layers
boundsprecinct bounds
cblk_expnlog2 of nominal code block dimensions

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