|
Grok 20.3.2
|
Stores information about compression code block. More...
#include <CodeblockCompress.h>
Public Member Functions | |
| CodeblockCompress (uint16_t numLayers) | |
| Constructs a CodeblockCompress This struct is a wrapper for CodeblockCompressImpl, where the implementation lies. | |
| ~CodeblockCompress () | |
| Destorys a CodeblockCompress. | |
| uint8_t | getNumPassesInLayer (uint16_t layno) |
| Gets number of passes in layer. | |
| void | setNumPassesInLayer (uint16_t layno, uint8_t passes) |
| Sets number of passes in layer. | |
| void | incNumPassesInLayer (uint16_t layno, uint8_t delta) |
| Increments the number of passes in layer. | |
| Buffer8 * | getCompressedStream (void) |
| Gets compressed stream. | |
| uint8_t | numbps (void) |
| Gets number of bit planes in code block. | |
| void | setNumBps (uint8_t bps) |
| Sets number of bit planes in code blocks. | |
| uint8_t | numlenbits () |
| Gets number of length bits, used to calculate length of code block in bytes. | |
| void | setNumLenBits (uint8_t bits) |
| Sets number of length bits, used to calculate length of code block in bytes. | |
| void | init () |
| Initializes the code block - allocates resources. | |
| bool | allocData (size_t nominalBlockSize) |
| Allocates data memory for a compression code block. | |
| CodePass * | getPass (uint8_t passno) |
| uint8_t | getNumPasses (void) |
| void | setNumPasses (uint8_t numPasses) |
| CodePass * | getLastPass (void) |
| Layer * | getLayer (uint16_t layno) |
| uint8_t * | getPaddedCompressedStream (void) |
| void | setPaddedCompressedStream (uint8_t *stream) |
| uint8_t | getNumPassesInPreviousLayers (void) |
| void | setNumPassesInPreviousLayers (uint8_t numPasses) |
| CodeblockCompressImpl * | getImpl (void) |
| 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 | |
| CodeblockCompress (const CodeblockCompress &rhs)=delete | |
| CodeblockCompress & | operator= (const CodeblockCompress &rhs)=delete |
Private Attributes | |
| CodeblockCompressImpl * | impl_ |
Additional Inherited Members | |
| Protected Member Functions inherited from grk::t1::Codeblock | |
| Codeblock (uint16_t numLayers) | |
| Creates a Codeblock. | |
| ~Codeblock ()=default | |
| Destroys a Codeblock. | |
| Protected Attributes inherited from grk::t1::Codeblock | |
| uint16_t | numLayers_ |
| Number of layers in code block. | |
Stores information about compression code block.
|
inlineexplicit |
Constructs a CodeblockCompress This struct is a wrapper for CodeblockCompressImpl, where the implementation lies.
| numlayers | Number of layers in code block |
References grk::t1::Codeblock::Codeblock(), and impl_.
Referenced by CodeblockCompress(), and operator=().
|
inline |
Destorys a CodeblockCompress.
References impl_.
|
explicitprivatedelete |
References CodeblockCompress().
|
inline |
Allocates data memory for a compression 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.
| nominalBlockSize | nominal block size - actual size may be smaller |
References grk::t1::CodeblockCompressImpl::allocData(), and getImpl().
|
inline |
Gets compressed stream.
References grk::t1::CodeblockImpl::getCompressedStream(), and getImpl().
Referenced by grk::compress_synch_with_plugin().
|
inline |
References impl_, and grk::t1::Codeblock::numLayers_.
Referenced by allocData(), getCompressedStream(), getLastPass(), getLayer(), getNumPasses(), getNumPassesInLayer(), getNumPassesInPreviousLayers(), getPaddedCompressedStream(), getPass(), incNumPassesInLayer(), init(), numbps(), numlenbits(), setNumBps(), setNumLenBits(), setNumPasses(), setNumPassesInLayer(), setNumPassesInPreviousLayers(), and setPaddedCompressedStream().
|
inline |
References getImpl(), and grk::t1::CodeblockCompressImpl::getLastPass().
Referenced by grk::compress_synch_with_plugin().
|
inline |
References getImpl(), and grk::t1::CodeblockCompressImpl::getLayer().
|
inline |
References getImpl(), and grk::t1::CodeblockCompressImpl::getNumPasses().
Referenced by grk::compress_synch_with_plugin(), and grk::RateInfo::synch().
|
inline |
Gets number of passes in layer.
| layno | Layer number |
References getImpl(), and grk::t1::CodeblockImpl::getNumPassesInLayer().
|
inline |
References getImpl(), and grk::t1::CodeblockCompressImpl::getNumPassesInPreviousLayers().
|
inline |
References getImpl(), and grk::t1::CodeblockCompressImpl::getPaddedCompressedStream().
Referenced by grk::compress_synch_with_plugin().
|
inline |
References getImpl(), and grk::t1::CodeblockCompressImpl::getPass().
Referenced by grk::compress_synch_with_plugin(), and grk::RateInfo::synch().
|
inline |
Increments the number of passes in layer.
| layno | Layer number |
| delta | Change in number of passes in layer |
References getImpl(), and grk::t1::CodeblockImpl::incNumPassesInLayer().
|
inline |
Initializes the code block - allocates resources.
References getImpl(), and grk::t1::CodeblockCompressImpl::init().
|
inline |
Gets number of bit planes in code block.
References getImpl(), and grk::t1::CodeblockImpl::numbps().
|
inline |
Gets number of length bits, used to calculate length of code block in bytes.
References getImpl(), and grk::t1::CodeblockImpl::numlenbits().
|
privatedelete |
References CodeblockCompress().
|
inline |
Sets number of bit planes in code blocks.
| bps | number of bit planes |
References getImpl(), and grk::t1::CodeblockImpl::setNumBps().
Referenced by grk::t1::ojph::T1OJPH::compress(), and grk::compress_synch_with_plugin().
|
inline |
Sets number of length bits, used to calculate length of code block in bytes.
| bits | number of length bits |
References getImpl(), and grk::t1::CodeblockImpl::setNumLenBits().
|
inline |
References getImpl(), and grk::t1::CodeblockCompressImpl::setNumPasses().
Referenced by grk::compress_synch_with_plugin().
|
inline |
Sets number of passes in layer.
| layno | Layer number |
| passes | Number of passes |
References getImpl(), and grk::t1::CodeblockImpl::setNumPassesInLayer().
|
inline |
References getImpl(), and grk::t1::CodeblockCompressImpl::setNumPassesInPreviousLayers().
|
inline |
References getImpl(), and grk::t1::CodeblockCompressImpl::setPaddedCompressedStream().
Referenced by grk::compress_synch_with_plugin().
|
private |
Referenced by CodeblockCompress(), getImpl(), and ~CodeblockCompress().