#include <FileFormatCompress.h>
◆ FileFormatCompress()
◆ ~FileFormatCompress()
grk::FileFormatCompress::~FileFormatCompress |
( |
| ) |
|
|
virtual |
◆ compress()
◆ compressTile()
bool grk::FileFormatCompress::compressTile |
( |
uint16_t |
tileIndex, |
|
|
uint8_t * |
p_data, |
|
|
uint64_t |
data_size |
|
) |
| |
|
virtual |
◆ default_validation()
bool grk::FileFormatCompress::default_validation |
( |
void |
| ) |
|
|
private |
◆ endCompress()
bool grk::FileFormatCompress::endCompress |
( |
void |
| ) |
|
|
virtual |
◆ find_cf()
void grk::FileFormatCompress::find_cf |
( |
double |
x, |
|
|
uint32_t * |
num, |
|
|
uint32_t * |
den |
|
) |
| |
|
private |
◆ init_compressValidation()
void grk::FileFormatCompress::init_compressValidation |
( |
void |
| ) |
|
|
private |
◆ init_end_header_writing()
void grk::FileFormatCompress::init_end_header_writing |
( |
void |
| ) |
|
|
private |
◆ init_header_writing()
void grk::FileFormatCompress::init_header_writing |
( |
void |
| ) |
|
|
private |
◆ initCompress()
Implements grk::ICodeStreamCompress.
References grk::FileFormat::approx, _grk_channel_description::asoc, _grk_image_comp::association, grk::ComponentInfo::bpc, grk::FileFormat::bpc, grk::FileFormat::brand, grk::FileFormat::C, grk::FileFormat::capture_resolution, _grk_cparameters::capture_resolution, _grk_cparameters::capture_resolution_from_file, grk_color::channel_definition, grk::FileFormat::cl, _grk_channel_description::cn, codeStream, grk::FileFormat::color, _grk_image_meta::color, _grk_image::color_space, grk::FileFormat::comps, _grk_image::comps, _grk_channel_definition::descriptions, grk::FileFormat::display_resolution, _grk_cparameters::display_resolution, grk::FileFormat::enumcs, GRK_CLRSPC_CMYK, GRK_CLRSPC_DEFAULT_CIE, GRK_CLRSPC_EYCC, GRK_CLRSPC_GRAY, GRK_CLRSPC_ICC, GRK_CLRSPC_SRGB, GRK_CLRSPC_SYCC, GRK_COMPONENT_TYPE_COLOUR, 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_ERROR(), grk::GRK_WARN(), grk::grkMalloc(), grk::FileFormat::h, grk::FileFormat::has_capture_resolution, grk::FileFormat::has_display_resolution, grk_color::icc_profile_buf, grk_color::icc_profile_len, grk::CodeStreamCompress::initCompress(), grk::FileFormat::IPR, _grk_image_meta::iptc_buf, _grk_image_meta::iptc_len, grk::IPTC_UUID, JP2_JP2, _grk_image::meta, grk::FileFormat::meth, grk::FileFormat::minversion, _grk_channel_definition::num_channel_descriptions, grk::FileFormat::numcl, grk::FileFormat::numcomps, _grk_image::numcomps, grk::FileFormat::numUuids, grk_color::palette, _grk_image_comp::prec, grk::FileFormat::precedence, _grk_image_comp::sgnd, _grk_channel_description::typ, _grk_image_comp::type, grk::FileFormat::UnkC, grk::FileFormat::uuids, grk::FileFormat::w, _grk_cparameters::write_capture_resolution, _grk_cparameters::write_capture_resolution_from_file, _grk_cparameters::write_display_resolution, _grk_image::x0, _grk_image::x1, _grk_image_meta::xmp_buf, _grk_image_meta::xmp_len, grk::XMP_UUID, _grk_image::y0, and _grk_image::y1.
◆ skip_jp2c()
bool grk::FileFormatCompress::skip_jp2c |
( |
void |
| ) |
|
|
private |
◆ startCompress()
bool grk::FileFormatCompress::startCompress |
( |
void |
| ) |
|
|
virtual |
Implements grk::ICodeStreamCompress.
References codeStream, _grk_image::comps, grk::FileFormat::exec(), grk::CodeStream::getHeaderImage(), init_compressValidation(), init_header_writing(), grk::FileFormat::m_procedure_list, grk::FileFormat::m_validation_list, needs_xl_jp2c_box_length, grk::CodeStreamCompress::startCompress(), and _grk_image_comp::w.
◆ write_bpc()
uint8_t * grk::FileFormatCompress::write_bpc |
( |
uint32_t * |
p_nb_bytes_written | ) |
|
|
private |
◆ write_buffer()
uint8_t * grk::FileFormatCompress::write_buffer |
( |
uint32_t |
boxId, |
|
|
grkBufferU8 * |
buffer, |
|
|
uint32_t * |
p_nb_bytes_written |
|
) |
| |
|
private |
◆ write_channel_definition()
uint8_t * grk::FileFormatCompress::write_channel_definition |
( |
uint32_t * |
p_nb_bytes_written | ) |
|
|
private |
◆ write_colr()
uint8_t * grk::FileFormatCompress::write_colr |
( |
uint32_t * |
p_nb_bytes_written | ) |
|
|
private |
◆ write_component_mapping()
uint8_t * grk::FileFormatCompress::write_component_mapping |
( |
uint32_t * |
p_nb_bytes_written | ) |
|
|
private |
◆ write_ftyp()
bool grk::FileFormatCompress::write_ftyp |
( |
void |
| ) |
|
|
private |
◆ write_ihdr()
uint8_t * grk::FileFormatCompress::write_ihdr |
( |
uint32_t * |
p_nb_bytes_written | ) |
|
|
private |
◆ write_jp()
bool grk::FileFormatCompress::write_jp |
( |
void |
| ) |
|
|
private |
◆ write_jp2c()
bool grk::FileFormatCompress::write_jp2c |
( |
void |
| ) |
|
|
private |
◆ write_jp2h()
bool grk::FileFormatCompress::write_jp2h |
( |
void |
| ) |
|
|
private |
References grk::FileFormat::bpc, grk::grkBuffer< T, A >::buf, grk::FileFormat::capture_resolution, grk_color::channel_definition, codeStream, grk::FileFormat::color, grk::FileFormat::display_resolution, grk::CodeStream::getStream(), grk::GRK_ERROR(), grk::grkFree(), grk::BoxWriteHandler::handler, grk::FileFormat::has_capture_resolution, grk::FileFormat::has_display_resolution, JP2_JP2H, grk::grkBuffer< T, A >::len, grk::BoxWriteHandler::m_data, grk_color::palette, write_bpc(), write_channel_definition(), write_colr(), write_component_mapping(), write_ihdr(), write_palette_clr(), write_res(), write_xml(), and grk::FileFormat::xml.
Referenced by init_header_writing().
◆ write_palette_clr()
uint8_t * grk::FileFormatCompress::write_palette_clr |
( |
uint32_t * |
p_nb_bytes_written | ) |
|
|
private |
◆ write_res()
uint8_t * grk::FileFormatCompress::write_res |
( |
uint32_t * |
p_nb_bytes_written | ) |
|
|
private |
◆ write_res_box()
void grk::FileFormatCompress::write_res_box |
( |
double |
resx, |
|
|
double |
resy, |
|
|
uint32_t |
box_id, |
|
|
uint8_t ** |
current_res_ptr |
|
) |
| |
|
private |
◆ write_uuids()
bool grk::FileFormatCompress::write_uuids |
( |
void |
| ) |
|
|
private |
◆ write_xml()
uint8_t * grk::FileFormatCompress::write_xml |
( |
uint32_t * |
p_nb_bytes_written | ) |
|
|
private |
◆ codeStream
Referenced by compress(), compressTile(), default_validation(), endCompress(), initCompress(), skip_jp2c(), startCompress(), write_ftyp(), write_jp(), write_jp2c(), write_jp2h(), write_uuids(), and ~FileFormatCompress().
◆ j2k_codestream_offset
uint64_t grk::FileFormatCompress::j2k_codestream_offset |
|
private |
◆ needs_xl_jp2c_box_length
bool grk::FileFormatCompress::needs_xl_jp2c_box_length |
|
private |
The documentation for this class was generated from the following files: