OpenJPH
Open-source implementation of JPEG2000 Part-15
|
#include <ojph_tile_comp.h>
Public Member Functions | |
void | finalize_alloc (codestream *codestream, tile *parent, ui32 comp_num, const rect &comp_rect, const rect &recon_comp_rect) |
ui32 | get_num_resolutions () |
ui32 | get_num_decompositions () |
tile * | get_tile () |
line_buf * | get_line () |
void | push_line () |
line_buf * | pull_line () |
ui32 | prepare_precincts () |
void | write_precincts (ui32 res_num, outfile_base *file) |
bool | get_top_left_precinct (ui32 res_num, point &top_left) |
void | write_one_precinct (ui32 res_num, outfile_base *file) |
void | parse_precincts (ui32 res_num, ui32 &data_left, infile_base *file) |
void | parse_one_precinct (ui32 res_num, ui32 &data_left, infile_base *file) |
ui32 | get_num_bytes () const |
ui32 | get_num_bytes (ui32 resolution_num) const |
Static Public Member Functions | |
static void | pre_alloc (codestream *codestream, const rect &comp_rect, const rect &recon_comp_rect) |
Private Attributes | |
tile * | parent_tile |
resolution * | res |
rect | comp_rect |
ojph::point | comp_downsamp |
ui32 | num_decomps |
ui32 | comp_num |
ui32 | num_bytes |
Definition at line 62 of file ojph_tile_comp.h.
void ojph::local::tile_comp::finalize_alloc | ( | codestream * | codestream, |
tile * | parent, | ||
ui32 | comp_num, | ||
const rect & | comp_rect, | ||
const rect & | recon_comp_rect | ||
) |
Definition at line 68 of file ojph_tile_comp.cpp.
References comp_downsamp, comp_num, comp_rect, ojph::local::resolution::finalize_alloc(), ojph::local::codestream::get_allocator(), ojph::local::codestream::get_cod(), ojph::local::param_siz::get_downsampling(), ojph::local::param_cod::get_num_decompositions(), ojph::local::codestream::get_siz(), num_bytes, num_decomps, parent_tile, ojph::mem_fixed_allocator::post_alloc_obj(), and res.
Referenced by ojph::local::tile::finalize_alloc().
line_buf * ojph::local::tile_comp::get_line | ( | ) |
Definition at line 89 of file ojph_tile_comp.cpp.
References ojph::local::resolution::get_line(), and res.
Referenced by ojph::local::tile::push().
|
inline |
Definition at line 86 of file ojph_tile_comp.h.
References num_bytes.
Referenced by ojph::local::tile::fill_tlm(), and ojph::local::tile::flush().
Definition at line 194 of file ojph_tile_comp.cpp.
References ojph::local::resolution::get_num_bytes(), and res.
|
inline |
Definition at line 72 of file ojph_tile_comp.h.
References num_decomps.
Referenced by ojph::local::tile::flush(), and ojph::local::tile::parse_tile_header().
|
inline |
Definition at line 71 of file ojph_tile_comp.h.
References num_decomps.
|
inline |
Definition at line 73 of file ojph_tile_comp.h.
References parent_tile.
Referenced by ojph::local::resolution::finalize_alloc().
Definition at line 129 of file ojph_tile_comp.cpp.
References ojph::local::resolution::get_top_left_precinct(), ojph::local::resolution::next_resolution(), num_decomps, and res.
void ojph::local::tile_comp::parse_one_precinct | ( | ui32 | res_num, |
ui32 & | data_left, | ||
infile_base * | file | ||
) |
Definition at line 178 of file ojph_tile_comp.cpp.
References ojph::local::resolution::next_resolution(), num_decomps, ojph::local::resolution::parse_one_precinct(), and res.
Referenced by ojph::local::tile::parse_tile_header().
void ojph::local::tile_comp::parse_precincts | ( | ui32 | res_num, |
ui32 & | data_left, | ||
infile_base * | file | ||
) |
Definition at line 161 of file ojph_tile_comp.cpp.
References ojph::local::resolution::next_resolution(), num_decomps, ojph::local::resolution::parse_all_precincts(), and res.
Referenced by ojph::local::tile::parse_tile_header().
|
static |
Definition at line 54 of file ojph_tile_comp.cpp.
References ojph::local::codestream::access_cod(), comp_rect, ojph::local::codestream::get_allocator(), ojph::param_cod::get_num_decompositions(), num_decomps, ojph::local::resolution::pre_alloc(), and ojph::mem_fixed_allocator::pre_alloc_obj().
Referenced by ojph::local::tile::pre_alloc().
ui32 ojph::local::tile_comp::prepare_precincts | ( | ) |
Definition at line 107 of file ojph_tile_comp.cpp.
References num_bytes, ojph::local::resolution::prepare_precinct(), and res.
line_buf * ojph::local::tile_comp::pull_line | ( | ) |
Definition at line 101 of file ojph_tile_comp.cpp.
References ojph::local::resolution::pull_line(), and res.
Referenced by ojph::local::tile::pull().
void ojph::local::tile_comp::push_line | ( | ) |
Definition at line 95 of file ojph_tile_comp.cpp.
References ojph::local::resolution::push_line(), and res.
Referenced by ojph::local::tile::push().
void ojph::local::tile_comp::write_one_precinct | ( | ui32 | res_num, |
outfile_base * | file | ||
) |
Definition at line 146 of file ojph_tile_comp.cpp.
References ojph::local::resolution::next_resolution(), num_decomps, res, and ojph::local::resolution::write_one_precinct().
Referenced by ojph::local::tile::flush().
void ojph::local::tile_comp::write_precincts | ( | ui32 | res_num, |
outfile_base * | file | ||
) |
Definition at line 114 of file ojph_tile_comp.cpp.
References ojph::local::resolution::next_resolution(), num_decomps, res, and ojph::local::resolution::write_precincts().
Referenced by ojph::local::tile::flush().
|
private |
Definition at line 93 of file ojph_tile_comp.h.
Referenced by finalize_alloc().
|
private |
Definition at line 95 of file ojph_tile_comp.h.
Referenced by finalize_alloc().
|
private |
Definition at line 92 of file ojph_tile_comp.h.
Referenced by finalize_alloc(), and pre_alloc().
|
private |
Definition at line 96 of file ojph_tile_comp.h.
Referenced by finalize_alloc(), get_num_bytes(), and prepare_precincts().
|
private |
Definition at line 94 of file ojph_tile_comp.h.
Referenced by finalize_alloc(), get_num_decompositions(), get_num_resolutions(), get_top_left_precinct(), parse_one_precinct(), parse_precincts(), pre_alloc(), write_one_precinct(), and write_precincts().
|
private |
Definition at line 90 of file ojph_tile_comp.h.
Referenced by finalize_alloc(), and get_tile().
|
private |
Definition at line 91 of file ojph_tile_comp.h.
Referenced by finalize_alloc(), get_line(), get_num_bytes(), get_top_left_precinct(), parse_one_precinct(), parse_precincts(), prepare_precincts(), pull_line(), push_line(), write_one_precinct(), and write_precincts().