Grok
7.6.3
|
#include <T1Structs.h>
Public Member Functions | |
CompressCodeblock () | |
~CompressCodeblock () | |
CompressCodeblock (const CompressCodeblock &rhs) | |
CompressCodeblock & | operator= (const CompressCodeblock &other) |
void | clear () override |
bool | alloc () |
bool | alloc_data (size_t nominalBlockSize) |
Allocates data memory for an compressing code block. More... | |
void | cleanup () |
![]() | |
Codeblock (const Codeblock &rhs) | |
Codeblock () | |
Codeblock & | operator= (const Codeblock &other) |
virtual | ~Codeblock () |
![]() | |
grk_rectangle (T x0, T y0, T x1, T y1) | |
grk_rectangle (const grk_rectangle &rhs) | |
grk_rectangle (void) | |
void | print (void) const |
bool | is_valid (void) const |
bool | non_empty (void) const |
bool | contains (grk_point< T > pt) |
grk_rectangle< T > & | operator= (const grk_rectangle< T > &rhs) |
bool | operator== (const grk_rectangle< T > &rhs) const |
void | set_rect (grk_rectangle< T > *rhs) |
void | set_rect (grk_rectangle< T > rhs) |
grk_rectangle< T > | rectceildivpow2 (uint32_t power) const |
grk_rectangle< T > | rectceildiv (uint32_t den) const |
grk_rectangle< T > | rectceildiv (uint32_t denx, uint32_t deny) const |
grk_rectangle< T > | intersection (const grk_rectangle< T > rhs) const |
bool | isContainedIn (const grk_rectangle< T > rhs) const |
grk_rectangle< T > | intersection (const grk_rectangle< T > *rhs) const |
grk_rectangle< T > | rect_union (const grk_rectangle< T > *rhs) const |
grk_rectangle< T > | rect_union (const grk_rectangle< T > &rhs) const |
uint64_t | area (void) const |
T | width () const |
T | height () const |
grk_rectangle< T > | pan (int64_t x, int64_t y) const |
grk_rectangle< T > & | grow (T boundary) |
grk_rectangle< T > & | grow (T boundaryx, T boundaryy) |
grk_rectangle< T > & | grow (T boundary, T maxX, T maxY) |
grk_rectangle< T > & | grow (T boundaryx, T boundaryy, T maxX, T maxY) |
Public Attributes | |
uint8_t * | paddedCompressedStream |
Layer * | layers |
CodePass * | passes |
uint32_t | numPassesInPreviousPackets |
uint32_t | numPassesTotal |
uint32_t * | contextStream |
![]() | |
grk_buf | compressedStream |
uint32_t | numbps |
uint32_t | numlenbits |
uint32_t | numPassesInPacket |
![]() | |
T | x0 |
T | y0 |
T | x1 |
T | y1 |
grk::CompressCodeblock::CompressCodeblock | ( | ) |
grk::CompressCodeblock::~CompressCodeblock | ( | ) |
References cleanup().
grk::CompressCodeblock::CompressCodeblock | ( | const CompressCodeblock & | rhs | ) |
bool grk::CompressCodeblock::alloc | ( | ) |
References grk::grk_calloc(), layers, and passes.
bool grk::CompressCodeblock::alloc_data | ( | size_t | nominalBlockSize | ) |
Allocates data memory for an compressing code block.
We actually allocate 2 more bytes than specified, and then offset data by +2. This is done so that we can safely initialize the MQ coder pointer to data-1, without risk of accessing uninitialized memory.
References grk::grk_buffer< T >::buf, grk::Codeblock::compressedStream, grk_cblk_enc_compressed_data_pad_left, grk::grk_buffer< T >::len, grk::grk_buffer< T >::owns_data, and paddedCompressedStream.
void grk::CompressCodeblock::cleanup | ( | ) |
References grk::Codeblock::compressedStream, grk::grk_buffer< T >::dealloc(), grk::grk_free(), layers, paddedCompressedStream, and passes.
Referenced by ~CompressCodeblock().
|
overridevirtual |
Reimplemented from grk::Codeblock.
References grk::Codeblock::clear(), contextStream, layers, and passes.
CompressCodeblock & grk::CompressCodeblock::operator= | ( | const CompressCodeblock & | other | ) |
uint32_t* grk::CompressCodeblock::contextStream |
Referenced by clear(), and operator=().
Layer* grk::CompressCodeblock::layers |
Referenced by alloc(), cleanup(), clear(), and operator=().
uint32_t grk::CompressCodeblock::numPassesInPreviousPackets |
Referenced by operator=(), and grk::prepareBlockForFirstLayer().
uint32_t grk::CompressCodeblock::numPassesTotal |
Referenced by grk::compress_synch_with_plugin(), operator=(), and grk::RateInfo::synch().
uint8_t* grk::CompressCodeblock::paddedCompressedStream |
Referenced by alloc_data(), cleanup(), grk::compress_synch_with_plugin(), and operator=().
CodePass* grk::CompressCodeblock::passes |
Referenced by alloc(), cleanup(), clear(), grk::compress_synch_with_plugin(), operator=(), and grk::RateInfo::synch().