OpenJPH
Open-source implementation of JPEG2000 Part-15
|
#include <ojph_codestream_local.h>
Public Member Functions | |
void | finalize_alloc (codestream *codestream, const rect &tile_rect, const rect &recon_tile_rect, ui32 tile_idx, ui32 offset) |
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) |
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 * | num_comp_bytes |
Definition at line 168 of file ojph_codestream_local.h.
void ojph::local::tile::fill_tlm | ( | param_tlm * | tlm | ) |
Definition at line 1617 of file ojph_codestream.cpp.
References ojph::local::param_sot::get_tile_index(), num_comp_bytes, num_comps, ojph::OJPH_PN_BROADCAST, ojph::OJPH_PN_IMF, profile, ojph::local::param_tlm::set_next_pair(), and sot.
void ojph::local::tile::finalize_alloc | ( | codestream * | codestream, |
const rect & | tile_rect, | ||
const rect & | recon_tile_rect, | ||
ui32 | tile_idx, | ||
ui32 | offset | ||
) |
Definition at line 1337 of file ojph_codestream.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::codestream::get_profile(), ojph::param_cod::get_progression_order(), ojph::local::codestream::get_siz(), ojph::local::codestream::get_skipped_res_for_read(), 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(), is_signed, ojph::local::param_siz::is_signed(), line_offsets, lines, next_tile_part, num_bits, num_comp_bytes, num_comps, num_lines, ojph_div_ceil, ojph_max, ojph::OJPH_PN_BROADCAST, ojph::OJPH_PN_IMF, 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, 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 1630 of file ojph_codestream.cpp.
References comps, ojph::local::tile_comp::get_num_decompositions(), num_comp_bytes, num_comps, OJPH_ERROR, ojph_max, ojph::OJPH_PN_BROADCAST, ojph::OJPH_PN_IMF, ojph::OJPH_PO_CPRL, ojph::OJPH_PO_LRCP, ojph::OJPH_PO_PCRL, ojph::OJPH_PO_RLCP, ojph::OJPH_PO_RPCL, profile, prog_order, ojph::local::SOD, sot, ojph::local::swap_byte(), ojph::outfile_base::write(), ojph::local::param_sot::write(), ojph::local::tile_comp::write_one_precinct(), ojph::point::x, and ojph::point::y.
|
inline |
Definition at line 184 of file ojph_codestream_local.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 1766 of file ojph_codestream.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 1266 of file ojph_codestream.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::codestream::get_profile(), ojph::local::codestream::get_siz(), ojph::size::h, ojph::local::param_cod::is_employing_color_transform(), num_comps, ojph_div_ceil, ojph_max, ojph::OJPH_PN_BROADCAST, ojph::OJPH_PN_IMF, ojph::rect::org, ojph::local::tile_comp::pre_alloc(), ojph::mem_fixed_allocator::pre_alloc_data(), ojph::mem_fixed_allocator::pre_alloc_obj(), profile, recon_tile_rect, ojph::rect::siz, tile_rect, 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 1602 of file ojph_codestream.cpp.
References comps, num_comp_bytes, num_comps, ojph::OJPH_PN_BROADCAST, ojph::OJPH_PN_IMF, and profile.
Definition at line 1519 of file ojph_codestream.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 1434 of file ojph_codestream.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 194 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), and push().
|
private |
Definition at line 190 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), flush(), parse_tile_header(), prepare_for_flush(), pull(), and push().
|
private |
Definition at line 200 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), pull(), and push().
|
private |
Definition at line 193 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), pull(), and push().
|
private |
Definition at line 199 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), pull(), and push().
|
private |
Definition at line 195 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), pull(), and push().
|
private |
Definition at line 192 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), pull(), and push().
|
private |
Definition at line 205 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), and parse_tile_header().
|
private |
Definition at line 198 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), pull(), and push().
|
private |
Definition at line 209 of file ojph_codestream_local.h.
Referenced by fill_tlm(), finalize_alloc(), flush(), and prepare_for_flush().
|
private |
Definition at line 189 of file ojph_codestream_local.h.
Referenced by fill_tlm(), finalize_alloc(), flush(), parse_tile_header(), pre_alloc(), prepare_for_flush(), pull(), and push().
|
private |
Definition at line 191 of file ojph_codestream_local.h.
Referenced by finalize_alloc().
|
private |
Definition at line 208 of file ojph_codestream_local.h.
Referenced by fill_tlm(), finalize_alloc(), flush(), pre_alloc(), and prepare_for_flush().
|
private |
Definition at line 201 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), flush(), and parse_tile_header().
|
private |
Definition at line 194 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), and pull().
|
private |
Definition at line 188 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), and pre_alloc().
|
private |
Definition at line 193 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), and parse_tile_header().
|
private |
Definition at line 193 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), pull(), and push().
|
private |
Definition at line 196 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), and parse_tile_header().
|
private |
Definition at line 204 of file ojph_codestream_local.h.
Referenced by fill_tlm(), finalize_alloc(), flush(), and parse_tile_header().
|
private |
Definition at line 188 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), get_tile_rect(), and pre_alloc().