#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 |
◆ end()
bool grk::FileFormatCompress::end |
( |
void |
| ) |
|
|
virtual |
◆ find_cf()
void grk::FileFormatCompress::find_cf |
( |
double |
x, |
|
|
uint32_t * |
num, |
|
|
uint32_t * |
den |
|
) |
| |
|
private |
◆ getColour()
grk_color * grk::FileFormatCompress::getColour |
( |
void |
| ) |
|
|
private |
◆ init()
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_channel_description::channel, _grk_color::channel_definition, grk::FileFormat::cl, codeStream, _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, getColour(), GRK_CHANNEL_TYPE_COLOUR, GRK_CLRSPC_CMYK, GRK_CLRSPC_DEFAULT_CIE, GRK_CLRSPC_EYCC, GRK_CLRSPC_GRAY, GRK_CLRSPC_ICC, GRK_CLRSPC_SRGB, GRK_CLRSPC_SYCC, 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_image_meta_new(), grk_object_ref(), 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::init(), inputImage_, 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::MycmsLogErrorHandlerFunction(), _grk_channel_definition::num_channel_descriptions, grk::FileFormat::numcl, grk::FileFormat::numcomps, _grk_image::numcomps, grk::FileFormat::numUuids, _grk_image::obj, _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, validate_icc(), 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.
◆ 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 |
◆ skip_jp2c()
bool grk::FileFormatCompress::skip_jp2c |
( |
void |
| ) |
|
|
private |
◆ start()
bool grk::FileFormatCompress::start |
( |
void |
| ) |
|
|
virtual |
Implements grk::ICodeStreamCompress.
References codeStream, _grk_image::comps, grk::FileFormat::exec(), grk::CodeStream::getHeaderImage(), init_compressValidation(), init_header_writing(), needs_xl_jp2c_box_length, grk::FileFormat::procedure_list_, grk::CodeStreamCompress::start(), grk::FileFormat::validation_list_, and _grk_image_comp::w.
◆ validate_icc()
bool grk::FileFormatCompress::validate_icc |
( |
GRK_COLOR_SPACE |
colourSpace, |
|
|
uint8_t * |
iccbuf, |
|
|
uint32_t |
icclen |
|
) |
| |
|
private |
◆ 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, |
|
|
grk_buf8 * |
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::grk_buf< T, A >::buf, grk::FileFormat::capture_resolution, codeStream, grk::BoxWriteHandler::data_, grk::FileFormat::display_resolution, getColour(), grk::CodeStream::getStream(), grk::GRK_ERROR(), grk::grkFree(), grk::BoxWriteHandler::handler, grk::FileFormat::has_capture_resolution, grk::FileFormat::has_display_resolution, inputImage_, JP2_JP2H, grk::grk_buf< T, A >::len, _grk_image::meta, 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(), end(), init(), skip_jp2c(), start(), write_ftyp(), write_jp(), write_jp2c(), write_jp2h(), write_uuids(), and ~FileFormatCompress().
◆ inputImage_
GrkImage* grk::FileFormatCompress::inputImage_ |
|
private |
◆ 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: