OpenJPH
Open-source implementation of JPEG2000 Part-15
|
#include <ojph_codestream_local.h>
Public Member Functions | |
void | finalize_alloc (codestream *codestream, const rect &res_rect, const rect &recon_res_rect, ui32 comp_num, ui32 res_num, point comp_downsamp, tile_comp *parent_tile_comp, resolution *parent_res) |
line_buf * | get_line () |
void | push_line () |
line_buf * | pull_line () |
rect | get_rect () |
ui32 | get_comp_num () |
ui32 | prepare_precinct () |
void | write_precincts (outfile_base *file) |
bool | get_top_left_precinct (point &top_left) |
void | write_one_precinct (outfile_base *file) |
resolution * | next_resolution () |
void | parse_all_precincts (ui32 &data_left, infile_base *file) |
void | parse_one_precinct (ui32 &data_left, infile_base *file) |
Static Public Member Functions | |
static void | pre_alloc (codestream *codestream, const rect &res_rect, const rect &recon_res_rect, ui32 res_num) |
Private Attributes | |
bool | reversible |
bool | skipped_res_for_read |
bool | skipped_res_for_recon |
ui32 | num_lines |
ui32 | num_bands |
ui32 | res_num |
ui32 | comp_num |
point | comp_downsamp |
rect | res_rect |
line_buf * | lines |
subband * | bands |
tile_comp * | parent_comp |
resolution * | parent_res |
resolution * | child_res |
precinct * | precincts |
size | num_precincts |
size | log_PP |
ui32 | max_num_levels |
int | tag_tree_size |
ui32 | level_index [20] |
point | cur_precinct_loc |
ui32 | cur_line |
bool | vert_even |
bool | horz_even |
mem_elastic_allocator * | elastic |
Definition at line 247 of file ojph_codestream_local.h.
void ojph::local::resolution::finalize_alloc | ( | codestream * | codestream, |
const rect & | res_rect, | ||
const rect & | recon_res_rect, | ||
ui32 | comp_num, | ||
ui32 | res_num, | ||
point | comp_downsamp, | ||
tile_comp * | parent_tile_comp, | ||
resolution * | parent_res | ||
) |
Definition at line 2187 of file ojph_codestream.cpp.
References ojph::size::area(), bands, ojph::local::precinct::bands, child_res, ojph::local::precinct::coded, comp_downsamp, comp_num, cur_line, cur_precinct_loc, elastic, ojph::local::subband::finalize_alloc(), finalize_alloc(), ojph::local::codestream::get_allocator(), ojph::local::subband::get_cb_indices(), ojph::local::codestream::get_cod(), ojph::local::codestream::get_elastic_alloc(), ojph::local::param_cod::get_log_block_dims(), ojph::local::param_cod::get_log_precinct_size(), ojph::local::param_cod::get_num_decompositions(), ojph::local::codestream::get_precinct_scratch(), ojph::local::codestream::get_skipped_res_for_read(), ojph::local::codestream::get_skipped_res_for_recon(), ojph::local::tile_comp::get_tile(), ojph::local::tile::get_tile_rect(), ojph::size::h, horz_even, ojph::local::precinct::img_point, ojph::local::param_cod::is_reversible(), level_index, lines, log_PP, max_num_levels, ojph::local::precinct::may_use_sop, num_bands, ojph::local::precinct::num_bands, num_lines, num_precincts, ojph_div_ceil, ojph_max, ojph_min, ojph::rect::org, ojph::local::param_cod::packets_may_use_sop(), ojph::local::param_cod::packets_use_eph(), parent_comp, parent_res, ojph::mem_fixed_allocator::post_alloc_data(), ojph::mem_fixed_allocator::post_alloc_obj(), precincts, res_num, res_rect, reversible, ojph::local::precinct::scratch, ojph::rect::siz, skipped_res_for_read, skipped_res_for_recon, tag_tree_size, ojph::local::precinct::uses_eph, vert_even, ojph::size::w, ojph::point::x, and ojph::point::y.
Referenced by finalize_alloc(), and ojph::local::tile_comp::finalize_alloc().
|
inline |
Definition at line 264 of file ojph_codestream_local.h.
References comp_num.
Referenced by ojph::local::subband::finalize_alloc().
|
inline |
Definition at line 260 of file ojph_codestream_local.h.
References lines.
Referenced by ojph::local::tile_comp::get_line(), and push_line().
|
inline |
Definition at line 263 of file ojph_codestream_local.h.
References res_rect.
Referenced by ojph::local::subband::get_cb_indices().
bool ojph::local::resolution::get_top_left_precinct | ( | point & | top_left | ) |
Definition at line 2790 of file ojph_codestream.cpp.
References ojph::size::area(), cur_precinct_loc, ojph::local::precinct::img_point, num_precincts, precincts, ojph::size::w, ojph::point::x, and ojph::point::y.
Referenced by ojph::local::tile_comp::get_top_left_precinct().
|
inline |
Definition at line 270 of file ojph_codestream_local.h.
References child_res.
Referenced by ojph::local::tile_comp::get_top_left_precinct(), ojph::local::tile_comp::parse_one_precinct(), ojph::local::tile_comp::parse_precincts(), ojph::local::tile_comp::write_one_precinct(), and ojph::local::tile_comp::write_precincts().
void ojph::local::resolution::parse_all_precincts | ( | ui32 & | data_left, |
infile_base * | file | ||
) |
Definition at line 2816 of file ojph_codestream.cpp.
References ojph::size::area(), cur_precinct_loc, elastic, level_index, num_precincts, ojph::local::precinct::parse(), precincts, skipped_res_for_read, tag_tree_size, ojph::size::w, ojph::point::x, and ojph::point::y.
Referenced by ojph::local::tile_comp::parse_precincts().
void ojph::local::resolution::parse_one_precinct | ( | ui32 & | data_left, |
infile_base * | file | ||
) |
Definition at line 2835 of file ojph_codestream.cpp.
References ojph::size::area(), cur_precinct_loc, elastic, level_index, num_precincts, ojph::local::precinct::parse(), precincts, skipped_res_for_read, tag_tree_size, ojph::size::w, ojph::point::x, and ojph::point::y.
Referenced by ojph::local::tile_comp::parse_one_precinct().
|
static |
Definition at line 2107 of file ojph_codestream.cpp.
References ojph::size::area(), ojph::local::codestream::get_allocator(), ojph::local::codestream::get_cod(), ojph::local::param_cod::get_log_precinct_size(), ojph::local::param_cod::get_num_decompositions(), ojph::local::codestream::get_skipped_res_for_recon(), ojph::size::h, ojph::local::param_cod::is_reversible(), log_PP, num_lines, num_precincts, ojph_div_ceil, ojph::rect::org, ojph::local::subband::pre_alloc(), ojph::mem_fixed_allocator::pre_alloc_data(), ojph::mem_fixed_allocator::pre_alloc_obj(), res_num, res_rect, reversible, ojph::rect::siz, skipped_res_for_recon, ojph::size::w, ojph::point::x, and ojph::point::y.
Referenced by ojph::local::tile_comp::pre_alloc().
ui32 ojph::local::resolution::prepare_precinct | ( | ) |
Definition at line 2767 of file ojph_codestream.cpp.
References ojph::size::area(), child_res, elastic, level_index, num_precincts, precincts, prepare_precinct(), res_num, and tag_tree_size.
Referenced by prepare_precinct(), and ojph::local::tile_comp::prepare_precincts().
line_buf * ojph::local::resolution::pull_line | ( | ) |
Definition at line 2608 of file ojph_codestream.cpp.
References bands, child_res, cur_line, ojph::line_buf::f32, ojph::size::h, horz_even, ojph::line_buf::i32, ojph::local::irrev_horz_wvlt_bwd_tx, ojph::local::irrev_vert_wvlt_K, ojph::local::irrev_vert_wvlt_step, lines, num_bands, num_lines, pull_line(), ojph::local::subband::pull_line(), res_num, res_rect, ojph::local::rev_horz_wvlt_bwd_tx, ojph::local::rev_vert_wvlt_bwd_predict, ojph::local::rev_vert_wvlt_bwd_update, reversible, ojph::local::rotate_buffers(), ojph::rect::siz, skipped_res_for_recon, vert_even, and ojph::size::w.
Referenced by ojph::local::tile_comp::pull_line(), and pull_line().
void ojph::local::resolution::push_line | ( | ) |
Definition at line 2341 of file ojph_codestream.cpp.
References bands, child_res, cur_line, ojph::local::subband::exchange_buf(), get_line(), ojph::local::subband::get_line(), ojph::size::h, horz_even, ojph::line_buf::i32, ojph::local::irrev_horz_wvlt_fwd_tx, ojph::local::irrev_vert_wvlt_K, ojph::local::irrev_vert_wvlt_step, lines, num_bands, num_lines, push_line(), ojph::local::subband::push_line(), res_num, res_rect, ojph::local::rev_horz_wvlt_fwd_tx, ojph::local::rev_vert_wvlt_fwd_predict, ojph::local::rev_vert_wvlt_fwd_update, reversible, ojph::local::rotate_buffers(), ojph::rect::siz, vert_even, and ojph::size::w.
Referenced by ojph::local::tile_comp::push_line(), and push_line().
void ojph::local::resolution::write_one_precinct | ( | outfile_base * | file | ) |
Definition at line 2802 of file ojph_codestream.cpp.
References ojph::size::area(), cur_precinct_loc, num_precincts, precincts, ojph::size::w, ojph::local::precinct::write(), ojph::point::x, and ojph::point::y.
Referenced by ojph::local::tile_comp::write_one_precinct().
void ojph::local::resolution::write_precincts | ( | outfile_base * | file | ) |
Definition at line 2782 of file ojph_codestream.cpp.
References ojph::size::area(), num_precincts, and precincts.
Referenced by ojph::local::tile_comp::write_precincts().
|
private |
Definition at line 282 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), pull_line(), and push_line().
|
private |
Definition at line 284 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), next_resolution(), prepare_precinct(), pull_line(), and push_line().
|
private |
Definition at line 279 of file ojph_codestream_local.h.
Referenced by finalize_alloc().
|
private |
Definition at line 278 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), and get_comp_num().
|
private |
Definition at line 294 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), pull_line(), and push_line().
|
private |
Definition at line 292 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), get_top_left_precinct(), parse_all_precincts(), parse_one_precinct(), and write_one_precinct().
|
private |
Definition at line 296 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), parse_all_precincts(), parse_one_precinct(), and prepare_precinct().
|
private |
Definition at line 295 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), pull_line(), and push_line().
|
private |
Definition at line 291 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), parse_all_precincts(), parse_one_precinct(), and prepare_precinct().
|
private |
Definition at line 281 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), get_line(), pull_line(), and push_line().
|
private |
Definition at line 288 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), and pre_alloc().
|
private |
Definition at line 289 of file ojph_codestream_local.h.
Referenced by finalize_alloc().
|
private |
Definition at line 277 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), pull_line(), and push_line().
|
private |
Definition at line 276 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), pre_alloc(), pull_line(), and push_line().
|
private |
Definition at line 287 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), get_top_left_precinct(), parse_all_precincts(), parse_one_precinct(), pre_alloc(), prepare_precinct(), write_one_precinct(), and write_precincts().
|
private |
Definition at line 283 of file ojph_codestream_local.h.
Referenced by finalize_alloc().
|
private |
Definition at line 284 of file ojph_codestream_local.h.
Referenced by finalize_alloc().
|
private |
Definition at line 286 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), get_top_left_precinct(), parse_all_precincts(), parse_one_precinct(), prepare_precinct(), write_one_precinct(), and write_precincts().
|
private |
Definition at line 277 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), pre_alloc(), prepare_precinct(), pull_line(), and push_line().
|
private |
Definition at line 280 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), get_rect(), pre_alloc(), pull_line(), and push_line().
|
private |
Definition at line 275 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), pre_alloc(), pull_line(), and push_line().
|
private |
Definition at line 275 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), parse_all_precincts(), and parse_one_precinct().
|
private |
Definition at line 275 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), pre_alloc(), and pull_line().
|
private |
Definition at line 290 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), parse_all_precincts(), parse_one_precinct(), and prepare_precinct().
|
private |
Definition at line 295 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), pull_line(), and push_line().