|
Grok 20.3.2
|
#include <FileFormatJP2Decompress.h>
Public Member Functions | |
| FileFormatJP2Decompress (IStream *stream) | |
| ~FileFormatJP2Decompress () | |
| bool | readHeader (grk_header_info *header_info) override |
| Reads header. | |
| GrkImage * | getImage (uint16_t tile_index, bool wait) override |
| Gets GrkImage for specified tile. | |
| GrkImage * | getImage (void) override |
| Gets composite GrkImage for all tiles in decompress region. | |
| void | init (grk_decompress_parameters *param) override |
| Set up decompressor function handler. | |
| grk_progression_state | getProgressionState (uint16_t tile_index) override |
| Gets the grk_progression_state for a tile. | |
| bool | setProgressionState (grk_progression_state state) override |
| Sets the grk_progression_state for a tile. | |
| bool | decompress (grk_plugin_tile *tile) override |
| Decompresses image / image region. | |
| bool | decompressTile (uint16_t tile_index) override |
| Decompresses a single tile. | |
| bool | end (void) |
| bool | postProcess (GrkImage *img) |
| void | dump (uint32_t flag, FILE *outputFileStream) override |
| Dumps image tags to file. | |
| void | wait (grk_wait_swath *swath) override |
| Waits for asynchronous decompression to complete. | |
| void | scheduleSwathCopy (const grk_wait_swath *swath, grk_swath_buffer *buf) override |
| Schedule Taskflow copy tasks for tiles in a completed swath. | |
| void | waitSwathCopy () override |
| Wait for all in-flight swath copy tasks to complete. | |
| void | setBandCallback (grk_io_band_callback callback, void *user_data) override |
| Sets a band-completion callback for incremental writing. | |
| CodingParams * | getCodingParams (void) |
| Public Member Functions inherited from grk::FileFormatJP2Family | |
| FileFormatJP2Family (IStream *stream) | |
| virtual | ~FileFormatJP2Family () |
| FileFormatJP2Family (const FileFormatJP2Family &)=delete | |
| FileFormatJP2Family & | operator= (const FileFormatJP2Family &)=delete |
| Public Member Functions inherited from grk::IDecompressor | |
| virtual | ~IDecompressor ()=default |
| Destroys the IDecompressor object. | |
| 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) |
Protected Attributes | |
| CodeStreamDecompress * | codeStream |
| Protected Attributes inherited from grk::FileFormatJP2Family | |
| std::vector< PROCEDURE_FUNC > * | procedure_list_ |
| list of execution procedures | |
| uint32_t | brand |
| uint32_t | minversion |
| uint32_t | numcl |
| uint32_t * | cl |
| uint32_t | w |
| uint32_t | h |
| uint16_t | numcomps |
| uint8_t | bpc |
| uint8_t | C |
| uint8_t | UnkC |
| uint8_t | IPR |
| uint8_t | meth |
| uint8_t | approx |
| GRK_ENUM_COLOUR_SPACE | enumcs |
| uint8_t | precedence |
| ComponentInfo * | comps |
| bool | has_capture_resolution |
| double | capture_resolution [2] |
| bool | has_display_resolution |
| double | display_resolution [2] |
| Buffer8 | xml |
| Buffer8 | xml_boxes [JP2_MAX_NUM_XML_BOXES] |
| uint32_t | numXmlBoxes |
| bool | io_xml_ |
| std::string | xml_outfile_ |
| Buffer8 | ipr |
| UUIDBox | uuids [JP2_MAX_NUM_UUIDS] |
| uint32_t | numUuids |
| std::unordered_map< uint32_t, BOX_FUNC > | header |
| AsocBox | root_asoc |
| uint32_t | jp2_state |
| bool | headerError_ |
| bool | headerRead_ |
| std::stack< Box > | superBoxes_ |
| std::unordered_map< uint32_t, BOX_FUNC > | img_header |
| IStream * | stream_ |
Private Member Functions | |
| GrkImage * | getHeaderImage (void) override |
| bool | read_xml (uint8_t *p_xml_data, uint32_t xml_size) |
| bool | read_uuid (uint8_t *headerData, uint32_t headerSize) |
| bool | read_ipr (uint8_t *headerData, uint32_t headerSize) |
Additional Inherited Members | |
| Protected Member Functions inherited from grk::FileFormatJP2Family | |
| void | init (grk_decompress_parameters *param) |
| bool | readHeaderProcedure () |
| bool | readHeader (grk_header_info *header_info, GrkImage *headerImage) |
| grk_color * | getColour (void) |
| std::string | getBoxName (const Box &box) |
| const FindHandlerInfo | img_find_handler (uint32_t id) |
| Finds the BOX_FUNC related to given box id. | |
| uint32_t | read_asoc (AsocBox *parent, uint8_t **header_data, uint32_t *header_data_size, uint32_t asocSize) |
| bool | read_asoc (uint8_t *header_data, uint32_t header_data_size) |
| void | serializeAsoc (AsocBox *asoc, grk_asoc *serial_asocs, uint32_t *num_asocs, uint32_t level) |
| bool | read_box_header (Box *box, IStream *stream, uint32_t *bytesRead, bool codeStreamBoxWasRead) |
| bool | read_box_header (Box *box, uint8_t *p_data, uint32_t *bytesRead, uint64_t availableBytes) |
| uint8_t * | write_buffer (uint32_t boxId, Buffer8 *buffer, uint32_t *p_nb_bytes_written) |
| bool | write_ftyp (IStream *stream, uint32_t file_type) |
| bool | write_signature (IStream *stream, uint32_t sig) |
| bool | exec (std::vector< PROCEDURE_FUNC > *procs) |
| bool | read_jp2h (uint8_t *headerData, uint32_t headerSize) |
| Reads the Jpeg2000 file Header box - JP2 Header box. | |
| void | skip (uint8_t **headerData, uint32_t *headerSize, uint32_t skip) |
|
explicit |
References codeStream, grk::FileFormatJP2Family::FileFormatJP2Family(), grk::FileFormatJP2Family::header, grk::JP2_ASOC, grk::JP2_JP2H, grk::JP2_JP2I, grk::JP2_JUMB, grk::JP2_RREQ, grk::JP2_UUID, grk::JP2_XML, grk::FileFormatJP2Family::read_asoc(), read_ipr(), grk::FileFormatJP2Family::read_jp2h(), read_uuid(), and read_xml().
| grk::FileFormatJP2Decompress::~FileFormatJP2Decompress | ( | ) |
References codeStream.
|
overridevirtual |
Decompresses image / image region.
| tile | grk_plugin_tile |
Implements grk::IDecompressor.
References codeStream, and grk::grklog.
|
overridevirtual |
Decompresses a single tile.
| tile_index | tile index |
Implements grk::IDecompressor.
References codeStream.
|
overridevirtual |
Dumps image tags to file.
| flag | flag indicating main header, tile header etc. |
| outputFileStream | FILE stream |
Implements grk::IDecompressor.
References codeStream.
| bool grk::FileFormatJP2Decompress::end | ( | void | ) |
| CodingParams * grk::FileFormatJP2Decompress::getCodingParams | ( | void | ) |
References codeStream.
Referenced by grk::FileFormatJP2Compress::transcodeCodestream().
|
overrideprivatevirtual |
|
overridevirtual |
Gets GrkImage for specified tile.
| tile_index | tile index |
Implements grk::IDecompressor.
References codeStream, and wait().
|
overridevirtual |
Gets composite GrkImage for all tiles in decompress region.
Implements grk::IDecompressor.
References codeStream.
|
overridevirtual |
Gets the grk_progression_state for a tile.
| tile_index |
Implements grk::IDecompressor.
References codeStream.
|
overridevirtual |
Set up decompressor function handler.
Implements grk::IDecompressor.
References codeStream, and grk::FileFormatJP2Family::init().
| bool grk::FileFormatJP2Decompress::postProcess | ( | GrkImage * | img | ) |
References grk::FileFormatJP2Family::getColour(), and grk::grklog.
|
private |
References grk::grklog, and grk::FileFormatJP2Family::ipr.
Referenced by FileFormatJP2Decompress().
|
private |
References grk::grklog, JP2_MAX_NUM_UUIDS, grk::FileFormatJP2Family::numUuids, and grk::FileFormatJP2Family::uuids.
Referenced by FileFormatJP2Decompress().
|
private |
References grk::grklog, JP2_MAX_NUM_XML_BOXES, grk::FileFormatJP2Family::numXmlBoxes, grk::FileFormatJP2Family::xml, and grk::FileFormatJP2Family::xml_boxes.
Referenced by FileFormatJP2Decompress().
|
overridevirtual |
Reads header.
ref grk_header_info
Implements grk::IDecompressor.
References codeStream, grk::EXIF_UUID, grk::EXIF_UUID_PS, grk::GEOTIFF_UUID, getHeaderImage(), GRK_CLRSPC_SRGB, grk::grklog, grk::FileFormatJP2Family::headerError_, grk::FileFormatJP2Family::headerRead_, grk::FileFormatJP2Family::ipr, grk::IPTC_UUID, grk::FileFormatJP2Family::numUuids, grk::FileFormatJP2Family::readHeader(), grk::FileFormatJP2Family::uuids, and grk::XMP_UUID.
|
overridevirtual |
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 from grk::IDecompressor.
References codeStream.
|
overridevirtual |
Sets a band-completion callback for incremental writing.
Must be called after readHeader() but before decompress().
Reimplemented from grk::IDecompressor.
References codeStream.
|
overridevirtual |
Sets the grk_progression_state for a tile.
| state | grk_progression_state |
Implements grk::IDecompressor.
References codeStream.
|
overridevirtual |
Waits for asynchronous decompression to complete.
Implements grk::IDecompressor.
References codeStream.
Referenced by getImage().
|
overridevirtual |
Wait for all in-flight swath copy tasks to complete.
Reimplemented from grk::IDecompressor.
References codeStream.
|
protected |
Referenced by decompress(), decompressTile(), dump(), FileFormatJP2Decompress(), getCodingParams(), getHeaderImage(), getImage(), getImage(), getProgressionState(), init(), readHeader(), scheduleSwathCopy(), setBandCallback(), setProgressionState(), wait(), waitSwathCopy(), and ~FileFormatJP2Decompress().