Grok 10.0.5
|
#include <TileCache.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 Member Functions | |
grk_color * | getColour (void) |
uint32_t | read_asoc (AsocBox *parent, uint8_t **header_data, uint32_t *header_data_size, uint32_t asocSize) |
bool | readHeaderProcedureImpl (void) |
bool | read_box_hdr (FileFormatBox *box, uint32_t *p_number_bytes_read, BufferedStream *stream) |
bool | read_ihdr (uint8_t *p_image_header_data, uint32_t image_header_size) |
bool | read_xml (uint8_t *p_xml_data, uint32_t xml_size) |
bool | read_uuid (uint8_t *headerData, uint32_t header_size) |
bool | read_res_box (uint32_t *id, uint32_t *num, uint32_t *den, uint32_t *exponent, uint8_t **p_resolution_data) |
bool | read_res (uint8_t *p_resolution_data, uint32_t resolution_size) |
double | calc_res (uint16_t num, uint16_t den, uint8_t exponent) |
bool | read_bpc (uint8_t *p_bpc_header_data, uint32_t bpc_header_size) |
bool | read_channel_definition (uint8_t *p_cdef_header_data, uint32_t cdef_header_size) |
bool | read_colr (uint8_t *p_colr_header_data, uint32_t colr_header_size) |
bool | read_component_mapping (uint8_t *component_mapping_header_data, uint32_t component_mapping_header_size) |
bool | read_palette_clr (uint8_t *p_pclr_header_data, uint32_t pclr_header_size) |
const BOX_FUNC | find_handler (uint32_t id) |
const BOX_FUNC | img_find_handler (uint32_t id) |
Finds the image execution function related to the given box id. | |
bool | read_jp (uint8_t *headerData, uint32_t header_size) |
Reads a JPEG 2000 file signature box. | |
bool | read_ftyp (uint8_t *headerData, uint32_t header_size) |
Reads a a FTYP box - File type box. | |
bool | read_jp2h (uint8_t *headerData, uint32_t header_size) |
Reads the Jpeg2000 file Header box - JP2 Header box (warning, this is a super box). | |
bool | read_box (FileFormatBox *box, uint8_t *p_data, uint32_t *p_number_bytes_read, uint64_t p_box_max_size) |
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) |
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 | ) |
|
virtual |
References codeStream.
|
private |
|
virtual |
Implements grk::grk::ICodeStreamDecompress.
References codeStream, grk::GRK_ERROR(), and tile.
|
virtual |
Implements grk::grk::ICodeStreamDecompress.
References codeStream, and grk::GRK_ERROR().
|
virtual |
Implements grk::grk::ICodeStreamDecompress.
References codeStream.
bool grk::FileFormatDecompress::end | ( | void | ) |
|
private |
References codeStream, grk::_grk_image_meta::color, image, and grk::_grk_image::meta.
|
virtual |
Implements grk::grk::ICodeStreamDecompress.
References codeStream.
|
virtual |
Implements grk::grk::ICodeStreamDecompress.
References codeStream.
|
private |
Finds the image execution function related to the given box id.
id | the id of the handler to fetch. |
References img_header.
|
virtual |
Set up decompressor function handler.
Implements grk::grk::ICodeStreamDecompress.
References codeStream.
|
virtual |
Implements grk::grk::ICodeStreamDecompress.
References codeStream.
|
virtual |
Implements grk::grk::ICodeStreamDecompress.
References codeStream, and grk::GRK_WARN().
|
private |
References grk::GRK_ERROR(), grk::grk_read(), JP2_ASOC, JP2_LBL, JP2_XML, and parent.
|
private |
References grk::GRK_ERROR(), and root_asoc.
|
private |
|
private |
|
private |
References bpc, comps, grk::GRK_ERROR(), grk::grk_read(), grk::GRK_WARN(), and numcomps.
|
private |
|
private |
References approx, enumcs, GRK_CUSTOM_CIELAB_SPACE, GRK_DEFAULT_CIELAB_SPACE, grk::GRK_ENUM_CLRSPC_CIE, grk::GRK_ENUM_CLRSPC_CMYK, grk::GRK_ENUM_CLRSPC_EYCC, grk::GRK_ENUM_CLRSPC_GRAY, grk::GRK_ENUM_CLRSPC_SRGB, grk::GRK_ENUM_CLRSPC_SYCC, grk::GRK_ENUM_CLRSPC_UNKNOWN, grk::GRK_ERROR(), grk::grk_read(), grk::GRK_WARN(), meth, and precedence.
|
private |
References grk::GRK_ERROR(), and grk::grk_read().
|
private |
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 brand, cl, grk::grk_calloc(), grk::GRK_ERROR(), grk::grk_read(), jp2_state, grk::JP2_STATE_FILE_TYPE, grk::JP2_STATE_SIGNATURE, minversion, and numcl.
|
private |
References bpc, C, comps, grk::GRK_ENUM_CLRSPC_CIE, grk::GRK_ERROR(), GRK_MAX_SUPPORTED_IMAGE_PRECISION, grk::grk_read(), grk::GRK_WARN(), h, IPR, grk::maxNumComponentsJ2K, numcomps, UnkC, and w.
|
private |
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::GRK_ERROR(), grk::grk_read(), jp2_state, grk::JP2_STATE_NONE, and grk::JP2_STATE_SIGNATURE.
|
private |
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::GRK_ERROR(), JP2_IHDR, jp2_state, grk::JP2_STATE_FILE_TYPE, grk::JP2_STATE_HEADER, grk::grk::FileFormatBox::length, and grk::grk::FileFormatBox::type.
|
private |
References codeStream, grk::GRK_ERROR(), GRK_MAX_SUPPORTED_IMAGE_PRECISION, grk::grk_read(), and val.
|
private |
|
private |
References grk::grk_read().
|
private |
References grk::GRK_WARN(), JP2_MAX_NUM_UUIDS, numUuids, uuid, and uuids.
|
private |
References xml.
|
virtual |
Main header reading function handler.
Implements grk::grk::ICodeStreamDecompress.
References grk::_grk_header_info::asocs, capture_resolution, grk::_grk_image::capture_resolution, codeStream, grk::_grk_image::color_space, grk::_grk_image::comps, display_resolution, grk::_grk_image::display_resolution, grk::_grk_image_comp::dx, grk::_grk_image_comp::dy, enumcs, grk::GRK_CLRSPC_CMYK, grk::GRK_CLRSPC_CUSTOM_CIE, grk::GRK_CLRSPC_DEFAULT_CIE, grk::GRK_CLRSPC_EYCC, grk::GRK_CLRSPC_GRAY, grk::GRK_CLRSPC_SRGB, grk::GRK_CLRSPC_SYCC, grk::GRK_CLRSPC_UNKNOWN, GRK_DEFAULT_CIELAB_SPACE, grk::GRK_ENUM_CLRSPC_CIE, grk::GRK_ENUM_CLRSPC_CMYK, grk::GRK_ENUM_CLRSPC_EYCC, grk::GRK_ENUM_CLRSPC_GRAY, grk::GRK_ENUM_CLRSPC_SRGB, grk::GRK_ENUM_CLRSPC_SYCC, grk::GRK_ERROR(), grk::GRK_WARN(), grk::_grk_image::has_capture_resolution, has_capture_resolution, grk::_grk_image::has_display_resolution, has_display_resolution, header_info, headerError_, image, grk::_grk_image_meta::iptc_buf, grk::_grk_image_meta::iptc_len, grk::IPTC_UUID, grk::_grk_image::meta, grk::_grk_header_info::num_asocs, grk::_grk_image::numcomps, numUuids, procedure_list_, root_asoc, uuid, uuids, validation_list_, xml, grk::_grk_header_info::xml_data, grk::_grk_header_info::xml_data_len, grk::_grk_image_meta::xmp_buf, grk::_grk_image_meta::xmp_len, and grk::XMP_UUID.
|
private |
References codeStream, GRK_BOX_SIZE, grk::grk_calloc(), grk::GRK_ERROR(), grk::grk_free(), grk::grk_realloc(), grk::GRK_WARN(), 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::grk::FileFormatBox::length, stream, and grk::grk::FileFormatBox::type.
|
virtual |
Implements grk::grk::ICodeStreamDecompress.
References codeStream.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |