|
OpenJPH
Open-source implementation of JPEG2000 Part-15
|
#include <ojph_params_local.h>
Public Types | |
| enum | default_comp_num : ui16 { OJPH_COD_UNKNOWN = 65534 , OJPH_COD_DEFAULT = 65535 } |
| enum | BLOCK_CODING_STYLES { VERT_CAUSAL_MODE = 0x8 , HT_MODE = 0x40 } |
| enum | cod_type : ui8 { UNDEFINED = 0 , COD_MAIN = 1 , COC_MAIN = 2 , COD_TILE = 3 , COC_TILE = 4 } |
| enum | dwt_type : ui8 { DWT_IRV97 = 0 , DWT_REV53 = 1 } |
Private Member Functions | |
| void | init (param_cod *top_cod, ui16 comp_idx) |
| void | destroy () |
| bool | internal_write_coc (outfile_base *file, ui32 num_comps) |
Private Attributes | |
| cod_type | type |
| ui16 | Lcod |
| ui8 | Scod |
| cod_SGcod | SGCod |
| cod_SPcod | SPcod |
| param_cod * | next |
| const param_atk * | atk |
| param_cod * | top_cod |
| ui16 | comp_idx |
| param_cod * | avail |
Definition at line 384 of file ojph_params_local.h.
| Enumerator | |
|---|---|
| VERT_CAUSAL_MODE | |
| HT_MODE | |
Definition at line 394 of file ojph_params_local.h.
| Enumerator | |
|---|---|
| UNDEFINED | |
| COD_MAIN | |
| COC_MAIN | |
| COD_TILE | |
| COC_TILE | |
Definition at line 399 of file ojph_params_local.h.
| Enumerator | |
|---|---|
| OJPH_COD_UNKNOWN | |
| OJPH_COD_DEFAULT | |
Definition at line 388 of file ojph_params_local.h.
| Enumerator | |
|---|---|
| DWT_IRV97 | |
| DWT_REV53 | |
Definition at line 407 of file ojph_params_local.h.
|
inline |
Definition at line 413 of file ojph_params_local.h.
References avail, comp_idx, init(), OJPH_COD_DEFAULT, param_cod(), and top_cod.
Referenced by add_coc_object(), get_coc(), get_coc(), init(), param_cod(), read_coc(), restart(), update_atk(), and write_coc().
|
inline |
Definition at line 415 of file ojph_params_local.h.
References destroy().
|
inline |
Definition at line 606 of file ojph_params_local.h.
References atk.
Referenced by ojph::local::resolution::finalize_alloc(), ojph::local::subband::finalize_alloc(), ojph::local::resolution::pre_alloc(), and ojph::local::subband::pre_alloc().
Definition at line 1110 of file ojph_params.cpp.
References avail, COD_MAIN, comp_idx, init(), next, param_cod(), and type.
|
inline |
Definition at line 443 of file ojph_params_local.h.
References COD_MAIN, ojph::local::param_siz::get_bit_depth(), ojph::local::param_siz::get_downsampling(), ojph::local::param_siz::get_num_components(), ojph::local::param_siz::is_signed(), OJPH_ERROR, ojph::OJPH_PO_PCRL, ojph::OJPH_PO_RPCL, SGCod, type, ojph::point::x, and ojph::point::y.
|
inlineprivate |
Definition at line 639 of file ojph_params_local.h.
Referenced by ~param_cod().
|
inline |
|
inline |
Definition at line 522 of file ojph_params_local.h.
References SPcod.
|
inline |
Definition at line 578 of file ojph_params_local.h.
References SPcod, and VERT_CAUSAL_MODE.
Referenced by ojph::local::codeblock::finalize_alloc().
Definition at line 1101 of file ojph_params.cpp.
References comp_idx, get_coc(), and param_cod().
Definition at line 1087 of file ojph_params.cpp.
References COD_MAIN, comp_idx, next, param_cod(), top_cod, and type.
Referenced by ojph::local::param_qcd::check_validity(), get_coc(), and ojph::local::param_qcd::propose_precision().
|
inline |
Definition at line 618 of file ojph_params_local.h.
References COC_MAIN, COD_MAIN, comp_idx, OJPH_COD_DEFAULT, and type.
Referenced by ojph::local::param_qcd::propose_precision(), and ojph::local::codestream::read_headers().
|
inline |
Definition at line 614 of file ojph_params_local.h.
References SPcod.
Referenced by ojph::local::resolution::finalize_alloc(), ojph::local::subband::finalize_alloc(), ojph::local::param_siz::get_recon_downsampling(), and ojph::local::resolution::pre_alloc().
|
inline |
Definition at line 526 of file ojph_params_local.h.
References SPcod.
Referenced by ojph::local::resolution::finalize_alloc(), ojph::local::subband::finalize_alloc(), and ojph::local::subband::pre_alloc().
Definition at line 553 of file ojph_params_local.h.
Referenced by ojph::local::resolution::finalize_alloc(), ojph::local::subband::finalize_alloc(), get_precinct_size(), ojph::local::resolution::pre_alloc(), and ojph::local::subband::pre_alloc().
|
inline |
Definition at line 504 of file ojph_params_local.h.
References COC_MAIN, COD_MAIN, is_dfs_defined(), SPcod, top_cod, and type.
Referenced by ojph::local::param_qcd::check_validity(), ojph::local::resolution::finalize_alloc(), ojph::local::subband::finalize_alloc(), ojph::local::tile::finalize_alloc(), ojph::local::tile_comp::finalize_alloc(), ojph::local::resolution::pre_alloc(), ojph::local::tile::pre_alloc(), ojph::local::tile_comp::pre_alloc(), read(), and read_coc().
Definition at line 546 of file ojph_params_local.h.
References get_log_precinct_size(), ojph::size::h, and ojph::size::w.
|
inline |
Definition at line 530 of file ojph_params_local.h.
References SPcod.
Referenced by ojph::local::param_cap::check_validity(), ojph::local::param_qcd::check_validity(), and is_reversible().
Definition at line 627 of file ojph_params_local.h.
References atk, COC_MAIN, COD_MAIN, comp_idx, Lcod, next, param_cod(), Scod, top_cod, and type.
Referenced by add_coc_object(), param_cod(), and restart().
|
private |
Definition at line 909 of file ojph_params.cpp.
References ojph::local::COC, COC_MAIN, comp_idx, Lcod, Scod, SPcod, ojph::local::swap_byte(), type, and ojph::outfile_base::write().
Referenced by write_coc().
|
inline |
Definition at line 610 of file ojph_params_local.h.
References SPcod.
Referenced by ojph::local::resolution::finalize_alloc(), ojph::local::subband::finalize_alloc(), get_num_decompositions(), ojph::local::param_siz::get_recon_downsampling(), and ojph::local::resolution::pre_alloc().
|
inline |
Definition at line 537 of file ojph_params_local.h.
References COD_MAIN, COD_TILE, SGCod, top_cod, and type.
Referenced by ojph::local::param_qcd::check_validity(), ojph::local::tile::finalize_alloc(), and ojph::local::tile::pre_alloc().
| bool ojph::local::param_cod::is_reversible | ( | ) | const |
Definition at line 841 of file ojph_params.cpp.
References atk, DWT_REV53, get_wavelet_kern(), and SPcod.
Referenced by ojph::local::codeblock::finalize_alloc(), ojph::local::tile::finalize_alloc(), and ojph::local::tile::pre_alloc().
|
inline |
Definition at line 562 of file ojph_params_local.h.
References COD_MAIN, COD_TILE, Scod, and type.
Referenced by ojph::local::resolution::finalize_alloc().
|
inline |
Definition at line 570 of file ojph_params_local.h.
References COD_MAIN, COD_TILE, Scod, and type.
Referenced by ojph::local::resolution::finalize_alloc().
| void ojph::local::param_cod::read | ( | infile_base * | file | ) |
Definition at line 955 of file ojph_params.cpp.
References COD_MAIN, get_num_decompositions(), Lcod, OJPH_ERROR, ojph::infile_base::read(), Scod, SGCod, SPcod, ojph::local::swap_byte(), and type.
| void ojph::local::param_cod::read_coc | ( | infile_base * | file, |
| ui32 | num_comps, | ||
| param_cod * | top_cod ) |
Definition at line 1004 of file ojph_params.cpp.
References COC_MAIN, comp_idx, get_num_decompositions(), Lcod, OJPH_ERROR, OJPH_WARN, param_cod(), ojph::infile_base::read(), Scod, SGCod, SPcod, ojph::local::swap_byte(), top_cod, and type.
Referenced by ojph::local::codestream::read_headers().
|
inline |
Definition at line 418 of file ojph_params_local.h.
References avail, init(), next, OJPH_COD_DEFAULT, param_cod(), and top_cod.
|
inline |
| void ojph::local::param_cod::update_atk | ( | param_atk * | atk | ) |
Definition at line 1066 of file ojph_params.cpp.
References atk, COD_MAIN, next, OJPH_ERROR, param_cod(), SPcod, type, and ojph::local::cod_SPcod::wavelet_trans.
| bool ojph::local::param_cod::write | ( | outfile_base * | file | ) |
Definition at line 852 of file ojph_params.cpp.
References ojph::local::COD, COD_MAIN, Lcod, Scod, SGCod, SPcod, ojph::local::swap_byte(), type, and ojph::outfile_base::write().
| bool ojph::local::param_cod::write_coc | ( | outfile_base * | file, |
| ui32 | num_comps ) |
Definition at line 894 of file ojph_params.cpp.
References COD_MAIN, comp_idx, internal_write_coc(), next, param_cod(), and type.
|
private |
Definition at line 659 of file ojph_params_local.h.
Referenced by access_atk(), init(), is_reversible(), and update_atk().
|
private |
Definition at line 666 of file ojph_params_local.h.
Referenced by add_coc_object(), destroy(), param_cod(), and restart().
|
private |
Definition at line 663 of file ojph_params_local.h.
Referenced by add_coc_object(), get_coc(), get_coc(), get_comp_idx(), init(), internal_write_coc(), param_cod(), read_coc(), and write_coc().
|
private |
Definition at line 654 of file ojph_params_local.h.
Referenced by init(), internal_write_coc(), read(), read_coc(), and write().
|
private |
Definition at line 658 of file ojph_params_local.h.
Referenced by add_coc_object(), destroy(), get_coc(), init(), restart(), update_atk(), and write_coc().
|
private |
Definition at line 655 of file ojph_params_local.h.
Referenced by get_log_precinct_size(), init(), internal_write_coc(), packets_may_use_sop(), packets_use_eph(), read(), read_coc(), and write().
|
private |
Definition at line 656 of file ojph_params_local.h.
Referenced by check_validity(), employ_color_transform(), is_employing_color_transform(), read(), read_coc(), and write().
|
private |
Definition at line 657 of file ojph_params_local.h.
Referenced by get_block_dims(), get_block_vertical_causality(), get_dfs_index(), get_log_block_dims(), get_log_precinct_size(), get_num_decompositions(), get_wavelet_kern(), internal_write_coc(), is_dfs_defined(), is_reversible(), read(), read_coc(), set_reversible(), update_atk(), and write().
|
private |
Definition at line 662 of file ojph_params_local.h.
Referenced by get_coc(), get_num_decompositions(), init(), is_employing_color_transform(), param_cod(), read_coc(), and restart().
|
private |
Definition at line 653 of file ojph_params_local.h.
Referenced by add_coc_object(), check_validity(), employ_color_transform(), get_coc(), get_comp_idx(), get_num_decompositions(), init(), internal_write_coc(), is_employing_color_transform(), packets_may_use_sop(), packets_use_eph(), read(), read_coc(), set_reversible(), update_atk(), write(), and write_coc().