OpenJPH
Open-source implementation of JPEG2000 Part-15
ojph::local::resolution Class Reference

#include <ojph_resolution.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_bufget_line ()
 
void push_line ()
 
line_bufpull_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)
 
resolutionnext_resolution ()
 
void parse_all_precincts (ui32 &data_left, infile_base *file)
 
void parse_one_precinct (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 &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
 
ui32 num_bytes
 
point comp_downsamp
 
rect res_rect
 
line_buflines
 
subbandbands
 
tile_compparent_comp
 
resolutionparent_res
 
resolutionchild_res
 
precinctprecincts
 
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_allocatorelastic
 

Detailed Description

Definition at line 61 of file ojph_resolution.h.

Member Function Documentation

◆ finalize_alloc()

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 180 of file ojph_resolution.cpp.

References ojph::size::area(), ojph::local::precinct::bands, 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, ojph::local::precinct::num_bands, num_bands, num_bytes, 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().

◆ get_comp_num()

ui32 ojph::local::resolution::get_comp_num ( )
inline

Definition at line 78 of file ojph_resolution.h.

References comp_num.

Referenced by ojph::local::subband::finalize_alloc().

◆ get_line()

line_buf * ojph::local::resolution::get_line ( )
inline

Definition at line 74 of file ojph_resolution.h.

References lines.

Referenced by ojph::local::tile_comp::get_line(), and push_line().

◆ get_num_bytes() [1/2]

ui32 ojph::local::resolution::get_num_bytes ( ) const
inline

Definition at line 88 of file ojph_resolution.h.

References num_bytes.

Referenced by get_num_bytes(), and ojph::local::tile_comp::get_num_bytes().

◆ get_num_bytes() [2/2]

ui32 ojph::local::resolution::get_num_bytes ( ui32  resolution_num) const

Definition at line 850 of file ojph_resolution.cpp.

References child_res, get_num_bytes(), and res_num.

◆ get_rect()

rect ojph::local::resolution::get_rect ( )
inline

Definition at line 77 of file ojph_resolution.h.

References res_rect.

Referenced by ojph::local::subband::get_cb_indices().

◆ get_top_left_precinct()

bool ojph::local::resolution::get_top_left_precinct ( point top_left)

◆ next_resolution()

◆ parse_all_precincts()

◆ parse_one_precinct()

◆ pre_alloc()

◆ prepare_precinct()

ui32 ojph::local::resolution::prepare_precinct ( )

◆ pull_line()

◆ push_line()

◆ write_one_precinct()

void ojph::local::resolution::write_one_precinct ( outfile_base file)

◆ write_precincts()

void ojph::local::resolution::write_precincts ( outfile_base file)

Member Data Documentation

◆ bands

subband* ojph::local::resolution::bands
private

Definition at line 101 of file ojph_resolution.h.

Referenced by finalize_alloc(), pull_line(), and push_line().

◆ child_res

resolution * ojph::local::resolution::child_res
private

◆ comp_downsamp

point ojph::local::resolution::comp_downsamp
private

Definition at line 98 of file ojph_resolution.h.

Referenced by finalize_alloc().

◆ comp_num

ui32 ojph::local::resolution::comp_num
private

Definition at line 95 of file ojph_resolution.h.

Referenced by finalize_alloc(), and get_comp_num().

◆ cur_line

ui32 ojph::local::resolution::cur_line
private

Definition at line 113 of file ojph_resolution.h.

Referenced by finalize_alloc(), pull_line(), and push_line().

◆ cur_precinct_loc

point ojph::local::resolution::cur_precinct_loc
private

◆ elastic

mem_elastic_allocator* ojph::local::resolution::elastic
private

◆ horz_even

bool ojph::local::resolution::horz_even
private

Definition at line 114 of file ojph_resolution.h.

Referenced by finalize_alloc(), pull_line(), and push_line().

◆ level_index

ui32 ojph::local::resolution::level_index[20]
private

◆ lines

line_buf* ojph::local::resolution::lines
private

Definition at line 100 of file ojph_resolution.h.

Referenced by finalize_alloc(), get_line(), pull_line(), and push_line().

◆ log_PP

size ojph::local::resolution::log_PP
private

Definition at line 107 of file ojph_resolution.h.

Referenced by finalize_alloc(), and pre_alloc().

◆ max_num_levels

ui32 ojph::local::resolution::max_num_levels
private

Definition at line 108 of file ojph_resolution.h.

Referenced by finalize_alloc().

◆ num_bands

ui32 ojph::local::resolution::num_bands
private

Definition at line 94 of file ojph_resolution.h.

Referenced by finalize_alloc(), pull_line(), and push_line().

◆ num_bytes

ui32 ojph::local::resolution::num_bytes
private

Definition at line 96 of file ojph_resolution.h.

Referenced by finalize_alloc(), get_num_bytes(), and prepare_precinct().

◆ num_lines

ui32 ojph::local::resolution::num_lines
private

Definition at line 93 of file ojph_resolution.h.

Referenced by finalize_alloc(), pre_alloc(), pull_line(), and push_line().

◆ num_precincts

◆ parent_comp

tile_comp* ojph::local::resolution::parent_comp
private

Definition at line 102 of file ojph_resolution.h.

Referenced by finalize_alloc().

◆ parent_res

resolution* ojph::local::resolution::parent_res
private

Definition at line 103 of file ojph_resolution.h.

Referenced by finalize_alloc().

◆ precincts

◆ res_num

ui32 ojph::local::resolution::res_num
private

◆ res_rect

rect ojph::local::resolution::res_rect
private

Definition at line 99 of file ojph_resolution.h.

Referenced by finalize_alloc(), get_rect(), pre_alloc(), pull_line(), and push_line().

◆ reversible

bool ojph::local::resolution::reversible
private

Definition at line 92 of file ojph_resolution.h.

Referenced by finalize_alloc(), pre_alloc(), pull_line(), and push_line().

◆ skipped_res_for_read

bool ojph::local::resolution::skipped_res_for_read
private

Definition at line 92 of file ojph_resolution.h.

Referenced by finalize_alloc(), parse_all_precincts(), and parse_one_precinct().

◆ skipped_res_for_recon

bool ojph::local::resolution::skipped_res_for_recon
private

Definition at line 92 of file ojph_resolution.h.

Referenced by finalize_alloc(), pre_alloc(), and pull_line().

◆ tag_tree_size

int ojph::local::resolution::tag_tree_size
private

◆ vert_even

bool ojph::local::resolution::vert_even
private

Definition at line 114 of file ojph_resolution.h.

Referenced by finalize_alloc(), pull_line(), and push_line().


The documentation for this class was generated from the following files: