OpenJPH
Open-source implementation of JPEG2000 Part-15
|
#include <ojph_tile.h>
Public Member Functions | |
void | finalize_alloc (codestream *codestream, const rect &tile_rect, const rect &recon_tile_rect, ui32 tile_idx, ui32 offset, ui32 &num_tileparts) |
bool | push (line_buf *line, ui32 comp_num) |
void | prepare_for_flush () |
void | fill_tlm (param_tlm *tlm) |
void | flush (outfile_base *file) |
void | parse_tile_header (const param_sot &sot, infile_base *file, const ui64 &tile_start_location) |
bool | pull (line_buf *, ui32 comp_num) |
rect | get_tile_rect () |
Static Public Member Functions | |
static void | pre_alloc (codestream *codestream, const rect &tile_rect, const rect &recon_tile_rect, ui32 &num_tileparts) |
Private Attributes | |
rect | tile_rect |
rect | recon_tile_rect |
ui32 | num_comps |
tile_comp * | comps |
ui32 | num_lines |
line_buf * | lines |
bool | reversible |
bool | employ_color_transform |
bool | resilient |
rect * | comp_rects |
rect * | recon_comp_rects |
ui32 * | line_offsets |
ui32 | skipped_res_for_read |
ui32 * | num_bits |
bool * | is_signed |
ui32 * | cur_line |
int | prog_order |
param_sot | sot |
int | next_tile_part |
int | profile |
ui32 | tilepart_div |
bool | need_tlm |
ui32 | num_bytes |
Definition at line 60 of file ojph_tile.h.
void ojph::local::tile::fill_tlm | ( | param_tlm * | tlm | ) |
Definition at line 413 of file ojph_tile.cpp.
References comps, ojph::local::tile_comp::get_num_bytes(), ojph::local::param_sot::get_tile_index(), num_comps, ojph_max, ojph::OJPH_PO_CPRL, ojph::OJPH_PO_LRCP, ojph::OJPH_PO_PCRL, ojph::OJPH_PO_RLCP, ojph::OJPH_TILEPART_COMPONENTS, ojph::OJPH_TILEPART_NODIVSIONS, ojph::OJPH_TILEPART_RESOLUTIONS, prog_order, ojph::local::param_tlm::set_next_pair(), sot, and tilepart_div.
void ojph::local::tile::finalize_alloc | ( | codestream * | codestream, |
const rect & | tile_rect, | ||
const rect & | recon_tile_rect, | ||
ui32 | tile_idx, | ||
ui32 | offset, | ||
ui32 & | num_tileparts | ||
) |
Definition at line 133 of file ojph_tile.cpp.
References ojph::local::codestream::access_cod(), comp_rects, comps, cur_line, employ_color_transform, ojph::local::tile_comp::finalize_alloc(), ojph::local::codestream::get_allocator(), ojph::local::param_siz::get_bit_depth(), ojph::local::codestream::get_cod(), ojph::local::param_siz::get_downsampling(), ojph::local::param_siz::get_num_components(), ojph::local::param_cod::get_num_decompositions(), ojph::local::codestream::get_profile(), ojph::param_cod::get_progression_order(), ojph::local::codestream::get_siz(), ojph::local::codestream::get_skipped_res_for_read(), ojph::local::codestream::get_tilepart_div(), ojph::size::h, ojph::local::param_sot::init(), ojph::local::param_cod::is_employing_color_transform(), ojph::local::codestream::is_resilient(), ojph::local::param_cod::is_reversible(), ojph::local::param_siz::is_signed(), is_signed, ojph::local::codestream::is_tlm_needed(), line_offsets, lines, need_tlm, next_tile_part, num_bits, num_bytes, num_comps, num_lines, ojph_div_ceil, ojph_max, ojph::OJPH_TILEPART_COMPONENTS, ojph::OJPH_TILEPART_RESOLUTIONS, ojph::rect::org, ojph::mem_fixed_allocator::post_alloc_data(), ojph::mem_fixed_allocator::post_alloc_obj(), profile, prog_order, recon_comp_rects, recon_tile_rect, resilient, reversible, ojph::rect::siz, skipped_res_for_read, sot, tile_rect, tilepart_div, ojph::size::w, ojph::point::x, and ojph::point::y.
Referenced by ojph::local::codestream::finalize_alloc().
void ojph::local::tile::flush | ( | outfile_base * | file | ) |
Definition at line 467 of file ojph_tile.cpp.
References comps, ojph::local::tile_comp::get_num_bytes(), ojph::local::tile_comp::get_num_decompositions(), num_comps, OJPH_ERROR, ojph_max, ojph::OJPH_PO_CPRL, ojph::OJPH_PO_LRCP, ojph::OJPH_PO_PCRL, ojph::OJPH_PO_RLCP, ojph::OJPH_PO_RPCL, ojph::OJPH_TILEPART_COMPONENTS, ojph::OJPH_TILEPART_NODIVSIONS, ojph::OJPH_TILEPART_RESOLUTIONS, prog_order, ojph::local::SOD, sot, ojph::local::swap_byte(), tilepart_div, ojph::outfile_base::write(), ojph::local::param_sot::write(), ojph::local::tile_comp::write_one_precinct(), ojph::local::tile_comp::write_precincts(), ojph::point::x, and ojph::point::y.
|
inline |
Definition at line 76 of file ojph_tile.h.
References tile_rect.
Referenced by ojph::local::resolution::finalize_alloc().
void ojph::local::tile::parse_tile_header | ( | const param_sot & | sot, |
infile_base * | file, | ||
const ui64 & | tile_start_location | ||
) |
Definition at line 660 of file ojph_tile.cpp.
References comps, ojph::error, ojph::local::tile_comp::get_num_decompositions(), ojph::local::param_sot::get_payload_length(), ojph::local::param_sot::get_tile_part_index(), next_tile_part, num_comps, OJPH_ERROR, OJPH_INFO, ojph_max, ojph::OJPH_PO_CPRL, ojph::OJPH_PO_LRCP, ojph::OJPH_PO_PCRL, ojph::OJPH_PO_RLCP, ojph::OJPH_PO_RPCL, ojph::infile_base::OJPH_SEEK_SET, ojph::local::tile_comp::parse_one_precinct(), ojph::local::tile_comp::parse_precincts(), prog_order, resilient, skipped_res_for_read, sot, ojph::infile_base::tell(), ojph::point::x, and ojph::point::y.
Referenced by ojph::local::codestream::read().
|
static |
Definition at line 56 of file ojph_tile.cpp.
References ojph::local::codestream::get_allocator(), ojph::local::codestream::get_cod(), ojph::local::param_siz::get_downsampling(), ojph::local::param_siz::get_num_components(), ojph::local::param_cod::get_num_decompositions(), ojph::local::codestream::get_siz(), ojph::local::codestream::get_tilepart_div(), ojph::size::h, ojph::local::param_cod::is_employing_color_transform(), num_comps, ojph_div_ceil, OJPH_ERROR, ojph_max, ojph::OJPH_TILEPART_COMPONENTS, ojph::OJPH_TILEPART_RESOLUTIONS, ojph::rect::org, ojph::local::tile_comp::pre_alloc(), ojph::mem_fixed_allocator::pre_alloc_data(), ojph::mem_fixed_allocator::pre_alloc_obj(), recon_tile_rect, ojph::rect::siz, tile_rect, tilepart_div, ojph::size::w, ojph::point::x, and ojph::point::y.
Referenced by ojph::local::codestream::pre_alloc().
void ojph::local::tile::prepare_for_flush | ( | ) |
Definition at line 404 of file ojph_tile.cpp.
Definition at line 321 of file ojph_tile.cpp.
References ojph::local::cnvrt_float_to_si32, ojph::local::cnvrt_float_to_si32_shftd, ojph::local::cnvrt_si32_to_si32_shftd, comps, cur_line, employ_color_transform, ojph::line_buf::f32, ojph::line_buf::i32, ojph::local::ict_backward, is_signed, line_offsets, lines, num_bits, num_comps, ojph::local::tile_comp::pull_line(), ojph::local::rct_backward, recon_comp_rects, reversible, ojph::rect::siz, and ojph::size::w.
Definition at line 236 of file ojph_tile.cpp.
References ojph::local::cnvrt_si32_to_float, ojph::local::cnvrt_si32_to_float_shftd, ojph::local::cnvrt_si32_to_si32_shftd, comp_rects, comps, cur_line, employ_color_transform, ojph::line_buf::f32, ojph::local::tile_comp::get_line(), ojph::line_buf::i32, ojph::local::ict_forward, is_signed, line_offsets, lines, num_bits, num_comps, ojph::local::tile_comp::push_line(), ojph::local::rct_forward, reversible, ojph::rect::siz, and ojph::size::w.
|
private |
Definition at line 86 of file ojph_tile.h.
Referenced by finalize_alloc(), and push().
|
private |
Definition at line 82 of file ojph_tile.h.
Referenced by fill_tlm(), finalize_alloc(), flush(), parse_tile_header(), prepare_for_flush(), pull(), and push().
|
private |
Definition at line 92 of file ojph_tile.h.
Referenced by finalize_alloc(), pull(), and push().
|
private |
Definition at line 85 of file ojph_tile.h.
Referenced by finalize_alloc(), pull(), and push().
|
private |
Definition at line 91 of file ojph_tile.h.
Referenced by finalize_alloc(), pull(), and push().
|
private |
Definition at line 87 of file ojph_tile.h.
Referenced by finalize_alloc(), pull(), and push().
|
private |
Definition at line 84 of file ojph_tile.h.
Referenced by finalize_alloc(), pull(), and push().
|
private |
Definition at line 102 of file ojph_tile.h.
Referenced by finalize_alloc().
|
private |
Definition at line 97 of file ojph_tile.h.
Referenced by finalize_alloc(), and parse_tile_header().
|
private |
Definition at line 90 of file ojph_tile.h.
Referenced by finalize_alloc(), pull(), and push().
|
private |
Definition at line 104 of file ojph_tile.h.
Referenced by finalize_alloc(), and prepare_for_flush().
|
private |
Definition at line 81 of file ojph_tile.h.
Referenced by fill_tlm(), finalize_alloc(), flush(), parse_tile_header(), pre_alloc(), prepare_for_flush(), pull(), and push().
|
private |
Definition at line 83 of file ojph_tile.h.
Referenced by finalize_alloc().
|
private |
Definition at line 100 of file ojph_tile.h.
Referenced by finalize_alloc().
|
private |
Definition at line 93 of file ojph_tile.h.
Referenced by fill_tlm(), finalize_alloc(), flush(), and parse_tile_header().
|
private |
Definition at line 86 of file ojph_tile.h.
Referenced by finalize_alloc(), and pull().
|
private |
Definition at line 80 of file ojph_tile.h.
Referenced by finalize_alloc(), and pre_alloc().
|
private |
Definition at line 85 of file ojph_tile.h.
Referenced by finalize_alloc(), and parse_tile_header().
|
private |
Definition at line 85 of file ojph_tile.h.
Referenced by finalize_alloc(), pull(), and push().
|
private |
Definition at line 88 of file ojph_tile.h.
Referenced by finalize_alloc(), and parse_tile_header().
|
private |
Definition at line 96 of file ojph_tile.h.
Referenced by fill_tlm(), finalize_alloc(), flush(), and parse_tile_header().
|
private |
Definition at line 80 of file ojph_tile.h.
Referenced by finalize_alloc(), get_tile_rect(), and pre_alloc().
|
private |
Definition at line 101 of file ojph_tile.h.
Referenced by fill_tlm(), finalize_alloc(), flush(), and pre_alloc().