Grok 13.0.2
|
#include <CodeStreamCompress.h>
Public Member Functions | |
CodeStreamCompress (BufferedStream *stream) | |
virtual | ~CodeStreamCompress () |
bool | start (void) |
bool | init (grk_cparameters *p_param, GrkImage *p_image) |
uint64_t | compress (grk_plugin_tile *tile) |
![]() | |
CodeStream (BufferedStream *stream) | |
virtual | ~CodeStream () |
TileProcessor * | currentProcessor (void) |
BufferedStream * | getStream () |
GrkImage * | getHeaderImage (void) |
grk_plugin_tile * | getCurrentPluginTile () |
CodingParams * | getCodingParams (void) |
![]() | |
virtual | ~ICodeStreamCompress ()=default |
Static Public Member Functions | |
static char * | convertProgressionOrder (GRK_PROG_ORDER prg_order) |
static uint16_t | getPocSize (uint32_t num_components, uint32_t l_nb_poc) |
![]() | |
static std::string | markerString (uint16_t marker) |
Private Member Functions | |
bool | init_header_writing (void) |
bool | cacheEndOfHeader (void) |
bool | end (void) |
bool | writeTilePart (TileProcessor *tileProcessor) |
bool | writeTileParts (TileProcessor *tileProcessor) |
bool | updateRates (void) |
bool | compressValidation (void) |
bool | mct_validation (void) |
bool | write_soc () |
Writes the SOC marker (Start Of Codestream) | |
bool | write_siz () |
Writes the SIZ marker (image and tile size) | |
bool | write_cap () |
Writes the CAP marker. | |
bool | write_com () |
Writes the COM marker (comment) | |
bool | write_cod () |
Writes the COD marker (Coding style default) | |
bool | compare_coc (uint32_t first_comp_no, uint32_t second_comp_no) |
Compares 2 COC markers (Coding style component) | |
bool | write_coc (uint32_t comp_no, BufferedStream *stream) |
Writes the COC marker (Coding style component) | |
bool | write_coc (uint32_t comp_no) |
bool | write_qcd () |
Writes the QCD marker (quantization default) | |
bool | compare_qcc (uint32_t first_comp_no, uint32_t second_comp_no) |
Compare QCC markers (quantization component) | |
bool | write_qcc (uint16_t tile_index, uint32_t comp_no, BufferedStream *stream) |
Writes the QCC marker (quantization component) | |
bool | write_qcc (uint32_t comp_no) |
bool | writePoc () |
Writes the POC marker (Progression Order Change) | |
bool | write_tlm_end () |
End writing the updated tlm. | |
bool | write_tlm_begin () |
Begin writing the TLM marker (Tile Length Marker) | |
bool | compare_SPCod_SPCoc (uint32_t first_comp_no, uint32_t second_comp_no) |
Compare 2 a SPCod/ SPCoc elements, i.e. | |
bool | write_SPCod_SPCoc (uint32_t comp_no) |
Writes a SPCod or SPCoc element, i.e. | |
uint32_t | get_SPCod_SPCoc_size (uint32_t comp_no) |
Gets the size taken by writing a SPCod or SPCoc for the given tile and component. | |
uint32_t | get_SQcd_SQcc_size (uint32_t comp_no) |
Gets the size taken by writing SQcd or SQcc element, i.e. | |
bool | compare_SQcd_SQcc (uint32_t first_comp_no, uint32_t second_comp_no) |
Compares 2 SQcd or SQcc element, i.e. | |
bool | write_SQcd_SQcc (uint32_t comp_no) |
Writes a SQcd or SQcc element, i.e. | |
bool | write_mct_record (grk_mct_data *p_mct_record, BufferedStream *stream) |
Writes the MCT marker (Multiple Component Transform) | |
bool | write_mcc_record (grk_simple_mcc_decorrelation_data *p_mcc_record, BufferedStream *stream) |
Writes the MCC marker (Multiple Component Collection) | |
bool | write_mco () |
Writes the MCO marker (Multiple component transformation ordering) | |
bool | write_cbd () |
Writes the CBD marker (Component bit depth definition) | |
bool | write_all_coc () |
Writes COC marker for each component. | |
bool | write_all_qcc () |
Writes QCC marker for each component. | |
bool | write_regions () |
Writes regions of interests. | |
bool | write_rgn (uint16_t tile_no, uint32_t comp_no, uint32_t nb_comps) |
Writes the RGN marker (Region Of Interest) | |
bool | write_eoc () |
Writes the EOC marker (End of Codestream) | |
bool | write_mct_data_group () |
Writes the CBD-MCT-MCC-MCO markers (Multi components transform) | |
bool | getNumTileParts (uint16_t *p_nb_tile_parts, GrkImage *image) |
Calculates the total number of tile parts needed by the compressor to compress such an image. | |
uint64_t | getNumTilePartsForProgression (uint32_t pino, uint16_t tileno) |
Gets the number of tile parts used for the given change of progression (if any) and the given tile. | |
bool | validateProgressionOrders (const grk_progression *progressions, uint32_t numProgressions, uint8_t numresolutions, uint16_t numcomps, uint16_t numlayers) |
Validate progression orders. | |
bool | init_mct_encoding (TileCodingParams *p_tcp, GrkImage *p_image) |
Private Attributes | |
CompressorState | compressorState_ |
Additional Inherited Members | |
![]() | |
bool | exec (std::vector< PROCEDURE_FUNC > &p_procedure_list) |
![]() | |
CodingParams | cp_ |
CodeStreamInfo * | codeStreamInfo |
std::vector< PROCEDURE_FUNC > | procedure_list_ |
std::vector< PROCEDURE_FUNC > | validation_list_ |
GrkImage * | headerImage_ |
TileProcessor * | currentTileProcessor_ |
BufferedStream * | stream_ |
std::map< uint32_t, TileProcessor * > | processors_ |
grk_plugin_tile * | current_plugin_tile |
grk::CodeStreamCompress::CodeStreamCompress | ( | BufferedStream * | stream | ) |
References grk::CodeStream::cp_, and grk::CodingParams::wholeTileDecompress_.
|
virtual |
|
private |
References grk::CodeStream::codeStreamInfo, grk::CodeStreamInfo::setMainHeaderEnd(), grk::CodeStream::stream_, and grk::BufferedStream::tell().
Referenced by init_header_writing().
|
private |
Compares 2 COC markers (Coding style component)
first_comp_no | the index of the first component to compare. |
second_comp_no | the index of the second component to compare. |
References compare_SPCod_SPCoc(), grk::CodeStream::cp_, and grk::CodingParams::tcps.
Referenced by write_all_coc().
|
private |
Compare QCC markers (quantization component)
first_comp_no | the index of the first component to compare. |
second_comp_no | the index of the second component to compare. |
References compare_SQcd_SQcc().
Referenced by write_all_qcc().
|
private |
Compare 2 a SPCod/ SPCoc elements, i.e.
the coding style of a given component of a tile.
first_comp_no | The 1st component number to compare. |
second_comp_no | The 1st component number to compare. |
References grk::CodeStream::cp_, J2K_CCP_CSTY_PRT, grk::TileCodingParams::tccps, and grk::CodingParams::tcps.
Referenced by compare_coc().
|
private |
Compares 2 SQcd or SQcc element, i.e.
the quantization values of a band in the QCD or QCC.
first_comp_no | the first component number to compare. |
second_comp_no | the second component number to compare. |
References grk::CodeStream::cp_, J2K_CCP_QNTSTY_NOQNT, J2K_CCP_QNTSTY_SIQNT, grk::TileCodingParams::tccps, and grk::CodingParams::tcps.
Referenced by compare_qcc().
|
virtual |
Implements grk::ICodeStreamCompress.
References grk::CodeStream::cp_, end(), grk::Logger::error(), grk::CodeStream::exec(), ExecSingleton::get(), grk::Logger::logger_, grk::maxNumTilesJ2K, grk::MinHeapPtr< T, IT, L >::pop(), grk::MinHeapPtr< T, IT, L >::push(), grk::CodeStream::stream_, grk::CodingParams::t_grid_height, grk::CodingParams::t_grid_width, grk::BufferedStream::tell(), and writeTileParts().
Referenced by grk::FileFormatCompress::compress().
|
private |
|
static |
References grk::j2k_prog_order::enum_prog, grk::j2k_prog_order_list, and grk::j2k_prog_order::str_prog.
Referenced by grk::PacketIter::enable_tile_part_generation(), and getNumTilePartsForProgression().
|
private |
|
private |
Gets the size taken by writing a SPCod or SPCoc for the given tile and component.
comp_no | the component being outputted. |
References grk::CodeStream::cp_, grk::CodeStream::getHeaderImage(), J2K_CCP_CSTY_PRT, grk::SPCod_SPCoc_len, grk::TileCodingParams::tccps, and grk::CodingParams::tcps.
Referenced by write_coc(), and write_cod().
|
private |
Gets the size taken by writing SQcd or SQcc element, i.e.
the quantization values of a band in the QCD or QCC.
comp_no | the component being output. |
References grk::CodeStream::cp_, grk::CodeStream::getHeaderImage(), J2K_CCP_QNTSTY_NOQNT, J2K_CCP_QNTSTY_SIQNT, grk::TileCodingParams::tccps, and grk::CodingParams::tcps.
Referenced by write_qcc(), and write_qcd().
|
private |
Calculates the total number of tile parts needed by the compressor to compress such an image.
If not enough memory is available, then the function return false.
p_nb_tile_parts | total number of tile parts in whole image. |
image | image to compress. |
References grk::CodeStream::cp_, grk::Logger::error(), getNumTilePartsForProgression(), grk::Logger::logger_, grk::maxTilePartsPerTileJ2K, grk::maxTotalTilePartsJ2K, grk::CodingParams::t_grid_height, grk::CodingParams::t_grid_width, grk::CodingParams::tcps, and grk::PacketManager::updateCompressParams().
Referenced by init_header_writing().
|
private |
Gets the number of tile parts used for the given change of progression (if any) and the given tile.
pino | the offset of the given poc (i.e. its position in the coding parameter). |
tileno | the given tile. |
References convertProgressionOrder(), grk::CodeStream::cp_, and grk::maxTilePartsPerTileJ2K.
Referenced by getNumTileParts(), and writeTileParts().
|
static |
Referenced by grk::TileProcessor::doCompress(), writePoc(), and writeTilePart().
|
virtual |
Implements grk::ICodeStreamCompress.
References _grk_cparameters::allocation_by_quality, _grk_cparameters::allocation_by_rate_distortion, grk::EncodingParams::allocationByFixedQuality_, grk::EncodingParams::allocationByRateDistortion_, _grk_cparameters::apply_icc_, grk::GrkImage::applyICC(), grk::mct::calculate_norms(), _grk_cparameters::cblk_sty, _grk_cparameters::cblockh_init, _grk_cparameters::cblockw_init, grk::ceildiv(), grk::CodingParams::coding_params_, _grk_image::color_space, _grk_cparameters::comment, grk::CodingParams::comment, _grk_cparameters::comment_len, grk::CodingParams::comment_len, _grk_progression::comp_e, _grk_progression::comp_s, _grk_image::comps, grk::GrkImage::copyHeader(), grk::CodeStream::cp_, _grk_cparameters::csty, _grk_image_comp::data, _grk_image_comp::dx, _grk_image_comp::dy, _grk_cparameters::enable_tile_part_generation, grk::EncodingParams::enableTilePartGeneration_, grk::CodingParams::enc_, grk::Logger::error(), grk::floorlog2(), GRK_CBLKSTY_HT_ONLY, GRK_CLRSPC_EYCC, GRK_CLRSPC_SYCC, GRK_EXTENSION_MCT, GRK_EXTENSION_NONE, grk::grk_free(), GRK_IS_BROADCAST, GRK_IS_CINEMA, GRK_IS_IMF, GRK_IS_PART2, GRK_IS_STORAGE, GRK_JPH_RSIZ_FLAG, grk::grk_malloc(), GRK_MAX_COMMENT_LENGTH, GRK_MAXRLVLS, GRK_PROFILE_CINEMA_S2K, GRK_PROFILE_CINEMA_S4K, GRK_PROFILE_NONE, GRK_PROFILE_PART2, grk_version(), _grk_image_comp::h, grk::CodeStream::headerImage_, init_mct_encoding(), _grk_cparameters::irreversible, _grk_cparameters::is_binary_comment, grk::CodingParams::is_binary_comment, grk::Profile::is_broadcast_compliant(), grk::Profile::is_cinema_compliant(), grk::Profile::is_imf_compliant(), J2K_CCP_CSTY_PRT, J2K_CCP_QNTSTY_NOQNT, J2K_CCP_QNTSTY_SEQNT, J2K_CP_CSTY_PRT, _grk_progression::lay_e, _grk_cparameters::layer_distortion, _grk_cparameters::layer_rate, grk::Logger::logger_, _grk_cparameters::max_comp_size, grk::EncodingParams::max_comp_size_, _grk_cparameters::max_cs_size, grk::maxNumComponentsJ2K, grk::maxNumTilesJ2K, _grk_cparameters::mct, _grk_cparameters::mct_data, _grk_cparameters::new_tile_part_progression_divider, grk::EncodingParams::newTilePartProgressionDivider_, _grk_cparameters::num_comments, grk::CodingParams::num_comments, _grk_image::numcomps, _grk_cparameters::numgbits, _grk_cparameters::numlayers, _grk_cparameters::numpocs, _grk_cparameters::numresolution, _grk_cparameters::prch_init, _grk_cparameters::prcw_init, _grk_image_comp::prec, _grk_cparameters::prog_order, _grk_cparameters::progression, _grk_cparameters::rate_control_algorithm, grk::EncodingParams::rate_control_algorithm, _grk_progression::res_e, _grk_progression::res_s, _grk_cparameters::res_spec, _grk_cparameters::roi_compno, _grk_cparameters::roi_shift, _grk_cparameters::rsiz, grk::CodingParams::rsiz, grk::Profile::set_broadcast_parameters(), grk::Profile::set_cinema_parameters(), grk::Profile::set_imf_parameters(), _grk_image_comp::sgnd, _grk_progression::specified_compression_poc_prog, grk::CodingParams::t_grid_height, grk::CodingParams::t_grid_width, _grk_cparameters::t_height, grk::CodingParams::t_height, _grk_cparameters::t_width, grk::CodingParams::t_width, grk::TileCodingParams::tccps, grk::CodingParams::tcps, _grk_cparameters::tile_size_on, _grk_progression::tileno, _grk_cparameters::tx0, grk::CodingParams::tx0, _grk_cparameters::ty0, grk::CodingParams::ty0, validateProgressionOrders(), _grk_image_comp::w, grk::Logger::warn(), _grk_cparameters::write_plt, grk::EncodingParams::write_plt, _grk_cparameters::write_tlm, grk::EncodingParams::write_tlm, _grk_image::x0, _grk_image::x1, _grk_image::y0, and _grk_image::y1.
Referenced by grk::FileFormatCompress::init().
|
private |
References cacheEndOfHeader(), grk::CodeStream::codeStreamInfo, grk::CodingParams::coding_params_, compressorState_, grk::CodeStream::cp_, grk::CodingParams::enc_, grk::CodeStream::getHeaderImage(), getNumTileParts(), GRK_EXTENSION_MCT, GRK_PROFILE_PART2, grk::TileCodingParams::hasPoc(), grk::TileCodingParams::isHT(), grk::CodeStream::procedure_list_, grk::CodingParams::rsiz, grk::CodingParams::tcps, grk::CompressorState::total_tile_parts_, updateRates(), write_all_coc(), write_all_qcc(), write_cap(), write_cod(), write_com(), write_mct_data_group(), write_qcd(), write_regions(), write_siz(), write_soc(), grk::EncodingParams::write_tlm, write_tlm_begin(), and writePoc().
Referenced by start().
|
private |
References grk::grk_mct_data::array_type_, grk::grk_mct_data::data_, grk::grk_mct_data::data_size_, grk::TileComponentCodingParams::dc_level_shift_, grk::grk_simple_mcc_decorrelation_data::decorrelation_array_, grk::default_number_mct_records, grk::grk_mct_data::element_type_, grk::grk_free(), grk::grk_malloc(), grk::grk_realloc(), grk::grk_mct_data::index_, grk::grk_simple_mcc_decorrelation_data::index_, grk::grk_simple_mcc_decorrelation_data::is_irreversible_, grk::j2k_mct_write_functions_from_float, grk::TileCodingParams::mcc_records_, grk::TileCodingParams::mct, grk::TileCodingParams::mct_decoding_matrix_, grk::MCT_ELEMENT_SIZE, grk::TileCodingParams::mct_records_, grk::MCT_TYPE_DECORRELATION, grk::MCT_TYPE_FLOAT, grk::MCT_TYPE_OFFSET, grk::grk_simple_mcc_decorrelation_data::nb_comps_, grk::TileCodingParams::nb_max_mcc_records_, grk::TileCodingParams::nb_max_mct_records_, grk::TileCodingParams::nb_mcc_records_, grk::TileCodingParams::nb_mct_records_, _grk_image::numcomps, grk::grk_simple_mcc_decorrelation_data::offset_array_, and grk::TileCodingParams::tccps.
Referenced by init().
|
private |
|
virtual |
Implements grk::ICodeStreamCompress.
References compressValidation(), grk::CodeStream::exec(), init_header_writing(), mct_validation(), grk::CodeStream::procedure_list_, and grk::CodeStream::validation_list_.
Referenced by grk::FileFormatCompress::start().
|
private |
References grk::CodeStream::cp_, grk::CodeStream::headerImage_, grk::CodeStream::stream_, grk::BufferedStream::tell(), and _grk_image::x1.
Referenced by init_header_writing().
|
private |
Validate progression orders.
progressions | progression orders. |
numProgressions | number of progression orders. |
numresolutions | number of resolutions. |
numcomps | number of components |
numlayers | number of layers. |
References grk::Logger::error(), grk::Logger::logger_, and _grk_progression::res_s.
Referenced by init().
|
private |
Writes COC marker for each component.
References compare_coc(), grk::CodeStream::getHeaderImage(), _grk_image::numcomps, and write_coc().
Referenced by init_header_writing().
|
private |
Writes QCC marker for each component.
References compare_qcc(), grk::CodeStream::getHeaderImage(), _grk_image::numcomps, and write_qcc().
Referenced by init_header_writing().
|
private |
Writes the CAP marker.
References grk::CodeStream::cp_, grk::TileCodingParams::qcd_, grk::CodeStream::stream_, grk::CodingParams::tcps, and grk::Quantizer::write().
Referenced by init_header_writing().
|
private |
Writes the CBD marker (Component bit depth definition)
References grk::CodeStream::getHeaderImage(), grk::J2K_CBD, grk::CodeStream::stream_, grk::BufferedStream::writeByte(), and grk::BufferedStream::writeShort().
Referenced by write_mct_data_group().
|
private |
|
private |
Writes the COC marker (Coding style component)
comp_no | the index of the component to output. |
stream | buffered stream. |
Referenced by write_all_coc().
|
private |
Writes the COD marker (Coding style default)
References grk::CodeStream::cp_, grk::Logger::error(), get_SPCod_SPCoc_size(), grk::J2K_COD, grk::Logger::logger_, grk::CodeStream::stream_, grk::CodingParams::tcps, write_SPCod_SPCoc(), grk::BufferedStream::writeByte(), and grk::BufferedStream::writeShort().
Referenced by init_header_writing().
|
private |
Writes the COM marker (comment)
References grk::CodingParams::comment, grk::CodingParams::comment_len, grk::CodeStream::cp_, GRK_MAX_COMMENT_LENGTH, grk::CodingParams::is_binary_comment, grk::J2K_COM, grk::Logger::logger_, grk::CodingParams::num_comments, grk::CodeStream::stream_, grk::Logger::warn(), grk::BufferedStream::writeBytes(), and grk::BufferedStream::writeShort().
Referenced by init_header_writing().
|
private |
Writes the EOC marker (End of Codestream)
References grk::BufferedStream::flush(), grk::J2K_EOC, grk::CodeStream::stream_, and grk::BufferedStream::writeShort().
Referenced by end().
|
private |
Writes the MCC marker (Multiple Component Collection)
p_mcc_record | MCC record |
stream | buffered stream. |
References grk::grk_simple_mcc_decorrelation_data::decorrelation_array_, grk::grk_mct_data::index_, grk::grk_simple_mcc_decorrelation_data::index_, grk::grk_simple_mcc_decorrelation_data::is_irreversible_, grk::J2K_MCC, grk::grk_simple_mcc_decorrelation_data::nb_comps_, grk::grk_simple_mcc_decorrelation_data::offset_array_, grk::BufferedStream::write24(), grk::BufferedStream::writeByte(), and grk::BufferedStream::writeShort().
Referenced by write_mct_data_group().
|
private |
Writes the MCO marker (Multiple component transformation ordering)
References grk::CodeStream::cp_, grk::J2K_MCO, grk::CodeStream::stream_, grk::CodingParams::tcps, grk::BufferedStream::writeByte(), and grk::BufferedStream::writeShort().
Referenced by write_mct_data_group().
|
private |
Writes the CBD-MCT-MCC-MCO markers (Multi components transform)
References grk::CodeStream::cp_, grk::TileCodingParams::mct_records_, grk::CodeStream::stream_, grk::CodingParams::tcps, write_cbd(), write_mcc_record(), write_mco(), and write_mct_record().
Referenced by init_header_writing().
|
private |
Writes the MCT marker (Multiple Component Transform)
p_mct_record | MCT record |
stream | buffered stream. |
References grk::grk_mct_data::array_type_, grk::grk_mct_data::data_, grk::grk_mct_data::data_size_, grk::grk_mct_data::element_type_, grk::grk_mct_data::index_, grk::J2K_MCT, grk::BufferedStream::writeBytes(), and grk::BufferedStream::writeShort().
Referenced by write_mct_data_group().
|
private |
Writes the QCC marker (quantization component)
tile_index | current tile index |
comp_no | the index of the component to output. |
stream | buffered stream. |
Referenced by write_all_qcc().
|
private |
|
private |
Writes the QCD marker (quantization default)
References grk::Logger::error(), get_SQcd_SQcc_size(), grk::J2K_QCD, grk::Logger::logger_, grk::CodeStream::stream_, write_SQcd_SQcc(), and grk::BufferedStream::writeShort().
Referenced by init_header_writing().
|
private |
Writes regions of interests.
References grk::CodeStream::cp_, grk::CodeStream::getHeaderImage(), _grk_image::numcomps, grk::TileCodingParams::tccps, grk::CodingParams::tcps, and write_rgn().
Referenced by init_header_writing().
|
private |
Writes the RGN marker (Region Of Interest)
tile_no | the tile to output |
comp_no | the component to output |
nb_comps | the number of components |
References grk::CodeStream::cp_, grk::J2K_RGN, grk::CodeStream::stream_, grk::BufferedStream::writeByte(), and grk::BufferedStream::writeShort().
Referenced by write_regions().
|
private |
Writes the SIZ marker (image and tile size)
References grk::CodeStream::stream_, and grk::SIZMarker::write().
Referenced by init_header_writing().
|
private |
Writes the SOC marker (Start Of Codestream)
References grk::J2K_SOC, grk::CodeStream::stream_, and grk::BufferedStream::writeShort().
Referenced by init_header_writing().
|
private |
Writes a SPCod or SPCoc element, i.e.
the coding style of a given component of a tile.
comp_no | the component number to output. |
References grk::CodeStream::cp_, grk::CodeStream::getHeaderImage(), J2K_CCP_CSTY_PRT, grk::CodeStream::stream_, grk::TileCodingParams::tccps, grk::CodingParams::tcps, and grk::BufferedStream::writeByte().
Referenced by write_coc(), and write_cod().
|
private |
Writes a SQcd or SQcc element, i.e.
the quantization values of a band in the QCD or QCC.
comp_no | the component number to output. |
References grk::CodeStream::cp_, grk::CodeStream::getHeaderImage(), J2K_CCP_QNTSTY_NOQNT, J2K_CCP_QNTSTY_SIQNT, grk::CodeStream::stream_, grk::TileCodingParams::tccps, grk::CodingParams::tcps, grk::BufferedStream::writeByte(), and grk::BufferedStream::writeShort().
Referenced by write_qcc(), and write_qcd().
|
private |
Begin writing the TLM marker (Tile Length Marker)
References compressorState_, grk::CodeStream::cp_, grk::CodeStream::stream_, grk::CodingParams::tlm_markers, grk::CompressorState::total_tile_parts_, and grk::TileLengthMarkers::writeBegin().
Referenced by init_header_writing().
|
private |
End writing the updated tlm.
References grk::CodeStream::cp_, grk::CodingParams::tlm_markers, and grk::TileLengthMarkers::writeEnd().
Referenced by end().
|
private |
Writes the POC marker (Progression Order Change)
References grk::CodeStream::cp_, grk::CodeStream::getHeaderImage(), getPocSize(), grk::J2K_POC, grk::CodeStream::stream_, grk::TileCodingParams::tccps, grk::CodingParams::tcps, grk::BufferedStream::writeByte(), and grk::BufferedStream::writeShort().
Referenced by init_header_writing(), and writeTilePart().
|
private |
References grk::TileProcessor::canPreCalculateTileLen(), grk::TileProcessor::canWritePocMarker(), grk::CodeStream::cp_, grk::Logger::error(), grk::TileProcessor::getIndex(), getPocSize(), grk::TileProcessor::getPreCalculatedTileLen(), grk::CodeStream::headerImage_, grk::Logger::logger_, _grk_image::numcomps, grk::TileLengthMarkers::push(), grk::sot_marker_segment_len_minus_tile_data_len, grk::CodeStream::stream_, grk::CodingParams::tcps, grk::BufferedStream::tell(), grk::TileProcessor::tilePartCounter_, grk::CodingParams::tlm_markers, grk::SOTMarker::write(), grk::SOTMarker::write_psot(), writePoc(), and grk::TileProcessor::writeTilePartT2().
Referenced by writeTileParts().
|
private |
References grk::CodeStream::cp_, grk::CodeStream::currentTileProcessor_, grk::Logger::error(), grk::TileProcessor::first_poc_tile_part_, grk::TileProcessor::getIndex(), getNumTilePartsForProgression(), grk::TileProcessor::incrementIndex(), grk::Logger::logger_, grk::maxTilePartsPerTileJ2K, grk::TileProcessor::pino, grk::CodingParams::tcps, grk::TileProcessor::tilePartCounter_, and writeTilePart().
Referenced by compress().
|
private |
Referenced by init_header_writing(), and write_tlm_begin().