Grok 12.0.1
|
#include <FileFormatDecompress.h>
Public Member Functions | |
FileFormatDecompress (BufferedStream *stream) | |
virtual | ~FileFormatDecompress () |
bool | readHeader (grk_header_info *header_info) |
Main header reading function handler. | |
GrkImage * | getImage (uint16_t tileIndex) |
GrkImage * | getImage (void) |
void | init (grk_decompress_core_params *p_param) |
Set up decompressor function handler. | |
bool | setDecompressRegion (grk_rect_single region) |
bool | decompress (grk_plugin_tile *tile) |
bool | decompressTile (uint16_t tileIndex) |
bool | end (void) |
bool | postProcess (void) |
bool | preProcess (void) |
void | dump (uint32_t flag, FILE *outputFileStream) |
![]() | |
FileFormat (void) | |
virtual | ~FileFormat () |
![]() | |
virtual | ~ICodeStreamDecompress ()=default |
Private Attributes | |
std::map< uint32_t, BOX_FUNC > | header |
std::map< uint32_t, BOX_FUNC > | img_header |
bool | headerError_ |
AsocBox | root_asoc |
CodeStreamDecompress * | codeStream |
uint32_t | jp2_state |
Additional Inherited Members | |
![]() | |
bool | exec (std::vector< PROCEDURE_FUNC > *procs) |
![]() | |
std::vector< PROCEDURE_FUNC > * | validation_list_ |
list of validation procedures | |
std::vector< PROCEDURE_FUNC > * | procedure_list_ |
list of execution procedures | |
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 |
uint32_t | brand |
uint32_t | minversion |
uint32_t | numcl |
uint32_t * | cl |
ComponentInfo * | comps |
bool | has_capture_resolution |
double | capture_resolution [2] |
bool | has_display_resolution |
double | display_resolution [2] |
grk_buf8 | xml |
UUIDBox | uuids [JP2_MAX_NUM_UUIDS] |
uint32_t | numUuids |
grk::FileFormatDecompress::FileFormatDecompress | ( | BufferedStream * | stream | ) |
References grk::grk_read(), header, img_header, JP2_ASOC, JP2_BPCC, JP2_CDEF, JP2_CMAP, JP2_COLR, JP2_FTYP, JP2_IHDR, JP2_JP, JP2_JP2H, JP2_PCLR, JP2_RES, JP2_UUID, JP2_XML, read_asoc(), read_bpc(), read_channel_definition(), read_colr(), read_component_mapping(), read_ftyp(), read_ihdr(), read_jp(), read_jp2h(), read_palette_clr(), read_res(), read_uuid(), and read_xml().
|
virtual |
References codeStream.
References grk::grk_read().
Referenced by read_res().
|
virtual |
Implements grk::ICodeStreamDecompress.
References codeStream, grk::CodeStreamDecompress::decompress(), grk::Logger::error(), and grk::Logger::logger_.
Implements grk::ICodeStreamDecompress.
References codeStream, grk::CodeStreamDecompress::decompressTile(), grk::Logger::error(), and grk::Logger::logger_.
Implements grk::ICodeStreamDecompress.
References codeStream, grk::CodeStreamDecompress::dump(), and grk::grk_read().
References grk::grk_read(), and header.
Referenced by readHeaderProcedureImpl().
References codeStream, _grk_image_meta::color, grk::CodeStreamDecompress::getHeaderImage(), and _grk_image::meta.
Referenced by preProcess(), read_channel_definition(), read_colr(), read_component_mapping(), read_palette_clr(), and readHeader().
Implements grk::ICodeStreamDecompress.
References codeStream, and grk::CodeStreamDecompress::getImage().
Implements grk::ICodeStreamDecompress.
References codeStream, and grk::CodeStreamDecompress::getImage().
Finds the image execution function related to the given box id.
id | the id of the handler to fetch. |
References grk::grk_read(), and img_header.
Referenced by read_jp2h(), and readHeaderProcedureImpl().
|
virtual |
Set up decompressor function handler.
Implements grk::ICodeStreamDecompress.
References codeStream, grk::grk_read(), and grk::CodeStreamDecompress::init().
Implements grk::ICodeStreamDecompress.
References codeStream, and grk::CodeStreamDecompress::postProcess().
Implements grk::ICodeStreamDecompress.
References _grk_color::channel_definition, codeStream, _grk_channel_definition::descriptions, getColour(), grk::CodeStreamDecompress::getCompositeImage(), grk::grk_read(), grk::Logger::logger_, _grk_channel_definition::num_channel_descriptions, and grk::Logger::warn().
|
private |
References grk::AsocBox::children, grk::Logger::error(), grk::grk_read(), JP2_ASOC, JP2_LBL, JP2_XML, grk::Logger::logger_, and read_asoc().
Referenced by FileFormatDecompress(), read_asoc(), and read_asoc().
|
private |
References grk::Logger::error(), grk::grk_read(), grk::Logger::logger_, read_asoc(), and root_asoc.
|
private |
References grk::Logger::error(), grk::grk_read(), and grk::Logger::logger_.
Referenced by read_jp2h().
|
private |
References grk::Logger::error(), grk::grk_read(), JP2_JP2C, grk::Logger::logger_, grk::BufferedStream::numBytesLeft(), and grk::BufferedStream::read().
Referenced by readHeaderProcedureImpl().
|
private |
References grk::FileFormat::bpc, grk::FileFormat::comps, grk::Logger::error(), grk::grk_read(), grk::Logger::logger_, grk::FileFormat::numcomps, and grk::Logger::warn().
Referenced by FileFormatDecompress().
|
private |
References grk::Logger::error(), getColour(), GRK_CHANNEL_ASSOC_UNASSOCIATED, GRK_CHANNEL_TYPE_UNSPECIFIED, grk::grk_read(), and grk::Logger::logger_.
Referenced by FileFormatDecompress().
|
private |
References grk::FileFormat::approx, grk::FileFormat::enumcs, grk::Logger::error(), getColour(), GRK_CUSTOM_CIELAB_SPACE, GRK_DEFAULT_CIELAB_SPACE, GRK_ENUM_CLRSPC_CIE, GRK_ENUM_CLRSPC_CMYK, GRK_ENUM_CLRSPC_EYCC, GRK_ENUM_CLRSPC_GRAY, GRK_ENUM_CLRSPC_SRGB, GRK_ENUM_CLRSPC_SYCC, GRK_ENUM_CLRSPC_UNKNOWN, grk::grk_read(), grk::Logger::logger_, grk::FileFormat::meth, grk::FileFormat::precedence, and grk::Logger::warn().
Referenced by FileFormatDecompress().
|
private |
References _grk_palette_data::component_mapping, grk::Logger::error(), getColour(), grk::grk_read(), grk::Logger::logger_, _grk_palette_data::num_channels, and _grk_color::palette.
Referenced by FileFormatDecompress().
Reads a a FTYP box - File type box.
headerData | the data contained in the FTYP box. |
header_size | the size of the data contained in the FTYP box. |
References grk::FileFormat::brand, grk::FileFormat::cl, grk::Logger::error(), grk::grk_calloc(), grk::grk_read(), jp2_state, grk::JP2_STATE_FILE_TYPE, grk::JP2_STATE_SIGNATURE, grk::Logger::logger_, grk::FileFormat::minversion, and grk::FileFormat::numcl.
Referenced by FileFormatDecompress().
|
private |
References grk::FileFormat::bpc, grk::FileFormat::C, grk::FileFormat::comps, grk::Logger::error(), GRK_ENUM_CLRSPC_CIE, GRK_MAX_SUPPORTED_IMAGE_PRECISION, grk::grk_read(), grk::FileFormat::h, grk::FileFormat::IPR, grk::Logger::logger_, grk::maxNumComponentsJ2K, grk::FileFormat::numcomps, grk::FileFormat::UnkC, grk::FileFormat::w, and grk::Logger::warn().
Referenced by FileFormatDecompress().
Reads a JPEG 2000 file signature box.
headerData | the data contained in the signature box. |
header_size | the size of the data contained in the signature box. |
References grk::Logger::error(), grk::grk_read(), jp2_state, grk::JP2_STATE_NONE, grk::JP2_STATE_SIGNATURE, and grk::Logger::logger_.
Referenced by FileFormatDecompress().
Reads the Jpeg2000 file Header box - JP2 Header box (warning, this is a super box).
headerData | the data contained in the file header box. |
header_size | the size of the data contained in the file header box. |
References grk::Logger::error(), grk::grk_read(), img_find_handler(), JP2_IHDR, jp2_state, grk::JP2_STATE_FILE_TYPE, grk::JP2_STATE_HEADER, grk::Logger::logger_, and read_box().
Referenced by FileFormatDecompress().
|
private |
References calc_res(), grk::FileFormat::capture_resolution, grk::FileFormat::display_resolution, grk::Logger::error(), grk::grk_read(), GRK_RESOLUTION_BOX_SIZE, grk::FileFormat::has_capture_resolution, grk::FileFormat::has_display_resolution, JP2_CAPTURE_RES, JP2_DISPLAY_RES, grk::Logger::logger_, and read_res_box().
Referenced by FileFormatDecompress().
|
private |
References grk::grk_read().
Referenced by read_res().
References grk::grk_read(), JP2_MAX_NUM_UUIDS, grk::Logger::logger_, grk::FileFormat::numUuids, grk::FileFormat::uuids, and grk::Logger::warn().
Referenced by FileFormatDecompress().
References grk::grk_buf< T, A >::alloc(), grk::grk_buf< T, A >::buf, grk::grk_read(), grk::grk_buf< T, A >::len, and grk::FileFormat::xml.
Referenced by FileFormatDecompress().
|
virtual |
Main header reading function handler.
Implements grk::ICodeStreamDecompress.
References _grk_header_info::asocs, grk::grk_buf< T, A >::buf, grk::FileFormat::capture_resolution, grk::AsocBox::children, codeStream, grk::FileFormat::display_resolution, grk::FileFormat::enumcs, grk::Logger::error(), grk::FileFormat::exec(), getColour(), grk::CodeStreamDecompress::getCompositeImage(), GRK_CLRSPC_CMYK, GRK_CLRSPC_CUSTOM_CIE, GRK_CLRSPC_DEFAULT_CIE, GRK_CLRSPC_EYCC, GRK_CLRSPC_GRAY, GRK_CLRSPC_SRGB, GRK_CLRSPC_SYCC, GRK_CLRSPC_UNKNOWN, GRK_DEFAULT_CIELAB_SPACE, GRK_ENUM_CLRSPC_CIE, GRK_ENUM_CLRSPC_CMYK, GRK_ENUM_CLRSPC_EYCC, GRK_ENUM_CLRSPC_GRAY, GRK_ENUM_CLRSPC_SRGB, GRK_ENUM_CLRSPC_SYCC, grk::grk_read(), grk::FileFormat::has_capture_resolution, _grk_image::has_capture_resolution, grk::FileFormat::has_display_resolution, headerError_, grk::IPTC_UUID, grk::grk_buf< T, A >::len, grk::Logger::logger_, grk::CodeStreamDecompress::needsHeaderRead(), _grk_header_info::num_asocs, grk::FileFormat::numUuids, grk::FileFormat::procedure_list_, grk::CodeStreamDecompress::readHeader(), readHeaderProcedureImpl(), root_asoc, serializeAsoc(), grk::FileFormat::uuids, grk::FileFormat::validation_list_, grk::Logger::warn(), grk::FileFormat::xml, _grk_header_info::xml_data, _grk_header_info::xml_data_len, and grk::XMP_UUID.
References codeStream, grk::Logger::error(), find_handler(), grk::CodeStream::getStream(), GRK_BOX_SIZE, grk::grk_calloc(), grk::grk_free(), grk::grk_read(), grk::grk_realloc(), img_find_handler(), JP2_JP2C, jp2_state, grk::JP2_STATE_CODESTREAM, grk::JP2_STATE_FILE_TYPE, grk::JP2_STATE_HEADER, grk::JP2_STATE_SIGNATURE, grk::JP2_STATE_UNKNOWN, grk::Logger::logger_, read_box_hdr(), and grk::Logger::warn().
Referenced by readHeader().
|
private |
References grk::grk_buf< T, A >::buf, grk::AsocBox::children, GRK_NUM_ASOC_BOXES_SUPPORTED, grk::grk_read(), grk::AsocBox::label, grk::grk_buf< T, A >::len, grk::Logger::logger_, serializeAsoc(), and grk::Logger::warn().
Referenced by readHeader(), and serializeAsoc().
|
virtual |
Implements grk::ICodeStreamDecompress.
References codeStream, grk::grk_read(), and grk::CodeStreamDecompress::setDecompressRegion().
|
private |
Referenced by FileFormatDecompress(), and find_handler().
|
private |
Referenced by readHeader().
Referenced by FileFormatDecompress(), and img_find_handler().
|
private |
Referenced by read_ftyp(), read_jp(), read_jp2h(), and readHeaderProcedureImpl().
|
private |
Referenced by read_asoc(), and readHeader().