|
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 370 of file ojph_params_local.h.
| Enumerator | |
|---|---|
| VERT_CAUSAL_MODE | |
| HT_MODE | |
Definition at line 380 of file ojph_params_local.h.
| Enumerator | |
|---|---|
| UNDEFINED | |
| COD_MAIN | |
| COC_MAIN | |
| COD_TILE | |
| COC_TILE | |
Definition at line 385 of file ojph_params_local.h.
| Enumerator | |
|---|---|
| OJPH_COD_UNKNOWN | |
| OJPH_COD_DEFAULT | |
Definition at line 374 of file ojph_params_local.h.
| Enumerator | |
|---|---|
| DWT_IRV97 | |
| DWT_REV53 | |
Definition at line 393 of file ojph_params_local.h.
|
inline |
Definition at line 399 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 401 of file ojph_params_local.h.
References destroy().
|
inline |
Definition at line 592 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 1080 of file ojph_params.cpp.
References avail, COD_MAIN, comp_idx, init(), next, param_cod(), and type.
|
inline |
Definition at line 429 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 625 of file ojph_params_local.h.
Referenced by ~param_cod().
|
inline |
|
inline |
Definition at line 508 of file ojph_params_local.h.
References SPcod.
|
inline |
Definition at line 564 of file ojph_params_local.h.
References SPcod, and VERT_CAUSAL_MODE.
Referenced by ojph::local::codeblock::finalize_alloc().
Definition at line 1071 of file ojph_params.cpp.
References comp_idx, get_coc(), and param_cod().
Definition at line 1057 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 604 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 600 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 512 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 539 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 490 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(), and read_coc().
Definition at line 532 of file ojph_params_local.h.
References get_log_precinct_size(), ojph::size::h, and ojph::size::w.
|
inline |
Definition at line 516 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 613 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 905 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 596 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 523 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 837 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 548 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 556 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 951 of file ojph_params.cpp.
References COD_MAIN, 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 987 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 404 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 1036 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 848 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 890 of file ojph_params.cpp.
References COD_MAIN, comp_idx, internal_write_coc(), next, param_cod(), and type.
|
private |
Definition at line 645 of file ojph_params_local.h.
Referenced by access_atk(), init(), is_reversible(), and update_atk().
|
private |
Definition at line 652 of file ojph_params_local.h.
Referenced by add_coc_object(), destroy(), param_cod(), and restart().
|
private |
Definition at line 649 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 640 of file ojph_params_local.h.
Referenced by init(), internal_write_coc(), read(), read_coc(), and write().
|
private |
Definition at line 644 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 641 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 642 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 643 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 648 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 639 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().