|
Grok 20.3.2
|
Decompress interface. More...
#include <IDecompressor.h>
Public Member Functions | |
| virtual | ~IDecompressor ()=default |
| Destroys the IDecompressor object. | |
| virtual bool | readHeader (grk_header_info *header_info)=0 |
| Reads header. | |
| virtual GrkImage * | getImage (uint16_t tile_index, bool wait)=0 |
| Gets GrkImage for specified tile. | |
| virtual GrkImage * | getImage (void)=0 |
| Gets composite GrkImage for all tiles in decompress region. | |
| virtual void | wait (grk_wait_swath *swath)=0 |
| Waits for asynchronous decompression to complete. | |
| virtual void | init (grk_decompress_parameters *param)=0 |
| Initializes decompressor. | |
| virtual void | setBandCallback (grk_io_band_callback callback, void *user_data) |
| Sets a band-completion callback for incremental writing. | |
| virtual grk_progression_state | getProgressionState (uint16_t tile_index)=0 |
| Gets the grk_progression_state for a tile. | |
| virtual bool | setProgressionState (grk_progression_state state)=0 |
| Sets the grk_progression_state for a tile. | |
| virtual bool | decompress (grk_plugin_tile *tile)=0 |
| Decompresses image / image region. | |
| virtual bool | decompressTile (uint16_t tile_index)=0 |
| Decompresses a single tile. | |
| virtual void | dump (uint32_t flag, FILE *outputFileStream)=0 |
| Dumps image tags to file. | |
| virtual uint32_t | getNumSamples (void) |
| virtual bool | decompressSample (uint32_t sampleIndex) |
| virtual GrkImage * | getSampleImage (uint32_t sampleIndex) |
| virtual GrkImage * | getSampleTileImage (uint32_t sampleIndex, uint16_t tileIndex) |
| virtual void | scheduleSwathCopy (const grk_wait_swath *swath, grk_swath_buffer *buf) |
| Schedule Taskflow copy tasks for tiles in a completed swath. | |
| virtual void | waitSwathCopy () |
| Wait for all in-flight swath copy tasks to complete. | |
Decompress interface.
|
virtualdefault |
Destroys the IDecompressor object.
|
pure virtual |
Decompresses image / image region.
| tile | grk_plugin_tile |
Implemented in grk::CodeStreamDecompress, grk::FileFormatJP2Decompress, and grk::FileFormatMJ2Decompress.
Referenced by decompressSample().
|
inlinevirtual |
Reimplemented in grk::FileFormatMJ2Decompress.
References decompress().
|
pure virtual |
Decompresses a single tile.
| tile_index | tile index |
Implemented in grk::CodeStreamDecompress, grk::FileFormatJP2Decompress, and grk::FileFormatMJ2Decompress.
|
pure virtual |
Dumps image tags to file.
| flag | flag indicating main header, tile header etc. |
| outputFileStream | FILE stream |
Implemented in grk::CodeStreamDecompress, grk::FileFormatJP2Decompress, and grk::FileFormatMJ2Decompress.
|
pure virtual |
Gets GrkImage for specified tile.
| tile_index | tile index |
Implemented in grk::CodeStreamDecompress, grk::FileFormatJP2Decompress, and grk::FileFormatMJ2Decompress.
References wait().
|
pure virtual |
Gets composite GrkImage for all tiles in decompress region.
Implemented in grk::CodeStreamDecompress, grk::FileFormatJP2Decompress, and grk::FileFormatMJ2Decompress.
Referenced by getSampleImage(), and getSampleTileImage().
|
inlinevirtual |
Reimplemented in grk::FileFormatMJ2Decompress.
|
pure virtual |
Gets the grk_progression_state for a tile.
| tile_index |
Implemented in grk::CodeStreamDecompress, grk::FileFormatJP2Decompress, and grk::FileFormatMJ2Decompress.
|
inlinevirtual |
Reimplemented in grk::FileFormatMJ2Decompress.
References getImage().
|
inlinevirtual |
Reimplemented in grk::FileFormatMJ2Decompress.
References getImage().
|
pure virtual |
Initializes decompressor.
Implemented in grk::CodeStreamDecompress, grk::FileFormatJP2Decompress, and grk::FileFormatMJ2Decompress.
|
pure virtual |
Reads header.
ref grk_header_info
Implemented in grk::CodeStreamDecompress, grk::FileFormatJP2Decompress, and grk::FileFormatMJ2Decompress.
|
inlinevirtual |
Schedule Taskflow copy tasks for tiles in a completed swath.
For each tile in swath, submits a Taskflow task to the shared executor that converts the int32_t planar tile data into buf via Highway SIMD. Tiles that are still in-flight (decompressed ahead of the current swath) have their copy deferred via a Taskflow continuation.
Reimplemented in grk::CodeStreamDecompress, and grk::FileFormatJP2Decompress.
|
inlinevirtual |
Sets a band-completion callback for incremental writing.
Must be called after readHeader() but before decompress().
Reimplemented in grk::CodeStreamDecompress, grk::FileFormatJP2Decompress, and grk::FileFormatMJ2Decompress.
|
pure virtual |
Sets the grk_progression_state for a tile.
| state | grk_progression_state |
Implemented in grk::CodeStreamDecompress, grk::FileFormatJP2Decompress, and grk::FileFormatMJ2Decompress.
|
pure virtual |
Waits for asynchronous decompression to complete.
Implemented in grk::CodeStreamDecompress, grk::FileFormatJP2Decompress, and grk::FileFormatMJ2Decompress.
Referenced by getImage().
|
inlinevirtual |
Wait for all in-flight swath copy tasks to complete.
Reimplemented in grk::CodeStreamDecompress, and grk::FileFormatJP2Decompress.