|
Grok 20.3.2
|
Stores information for a code block segment. More...
#include <CodeblockDecompressImpl.h>
Public Member Functions | |
| Segment (uint16_t numlayers) | |
| Constructs a Segment. | |
| ~Segment (void) | |
| Destroys a Segment. | |
| void | clear () |
| Clears a Segment. | |
| void | print (uint16_t layno) |
| size_t | getDataChunksLength () const |
| Gets combined length of all data chunks. | |
| size_t | copyDataChunksToContiguous (uint8_t *buffer) const |
| Copies data chunks into a single contiguous buffer. | |
Public Attributes | |
| uint16_t | numLayers_ = 0 |
| Number of layers for this code block. | |
| uint8_t | totalPasses_ = 0 |
| Running total of number of passes across multiple layers. | |
| uint8_t | maxPasses_ = 0 |
| Maximum number of passes in this code block This is determined by the code block style i.e. | |
| uint8_t * | calculatedPassesInLayer_ |
| Number of passes contributed by layer, calculated by decompress codeblock when parsing packet header. | |
| uint32_t | totalBytes_ = 0 |
| Total number of bytes in segment. | |
| uint16_t * | signalledBytesInLayer_ |
| Number of bytes signalled by layer. | |
| std::vector< Buffer8 * > | data_chunks_ |
Stores information for a code block segment.
A segment can be split over multiple packets, and a packet can contain multiple segments
|
inline |
Constructs a Segment.
References calculatedPassesInLayer_, clear(), numLayers_, and signalledBytesInLayer_.
|
inline |
Destroys a Segment.
References calculatedPassesInLayer_, and signalledBytesInLayer_.
|
inline |
Clears a Segment.
References calculatedPassesInLayer_, data_chunks_, maxPasses_, numLayers_, signalledBytesInLayer_, totalBytes_, and totalPasses_.
Referenced by Segment().
|
inline |
Copies data chunks into a single contiguous buffer.
| buffer | contiguous buffer |
References data_chunks_.
|
inline |
|
inline |
References calculatedPassesInLayer_, grk::grklog, maxPasses_, signalledBytesInLayer_, totalBytes_, and totalPasses_.
| uint8_t* grk::t1::Segment::calculatedPassesInLayer_ |
Number of passes contributed by layer, calculated by decompress codeblock when parsing packet header.
Referenced by clear(), print(), Segment(), and ~Segment().
| std::vector<Buffer8*> grk::t1::Segment::data_chunks_ |
Referenced by clear(), copyDataChunksToContiguous(), and getDataChunksLength().
| uint8_t grk::t1::Segment::maxPasses_ = 0 |
| uint16_t grk::t1::Segment::numLayers_ = 0 |
| uint16_t* grk::t1::Segment::signalledBytesInLayer_ |
Number of bytes signalled by layer.
Referenced by clear(), print(), Segment(), and ~Segment().
| uint32_t grk::t1::Segment::totalBytes_ = 0 |
| uint8_t grk::t1::Segment::totalPasses_ = 0 |