OpenJPH
Open-source implementation of JPEG2000 Part-15
|
#include <ojph_params.h>
Public Member Functions | |
param_cod (local::param_cod *p) | |
void | set_num_decomposition (ui32 num_decompositions) |
void | set_block_dims (ui32 width, ui32 height) |
void | set_precinct_size (int num_levels, size *precinct_size) |
void | set_progression_order (const char *name) |
void | set_color_transform (bool color_transform) |
void | set_reversible (bool reversible) |
ui32 | get_num_decompositions () const |
size | get_block_dims () const |
size | get_log_block_dims () const |
bool | is_reversible () const |
size | get_precinct_size (ui32 level_num) const |
size | get_log_precinct_size (ui32 level_num) const |
int | get_progression_order () const |
const char * | get_progression_order_as_string () const |
int | get_num_layers () const |
bool | is_using_color_transform () const |
bool | packets_may_use_sop () const |
bool | packets_use_eph () const |
bool | get_block_vertical_causality () const |
Private Attributes | |
local::param_cod * | state |
Definition at line 93 of file ojph_params.h.
|
inline |
Definition at line 96 of file ojph_params.h.
size ojph::param_cod::get_block_dims | ( | ) | const |
Definition at line 264 of file ojph_params.cpp.
References ojph::local::param_cod::get_block_dims(), and state.
bool ojph::param_cod::get_block_vertical_causality | ( | ) | const |
Definition at line 347 of file ojph_params.cpp.
References ojph::local::cod_SPcod::block_style, ojph::local::param_cod::SPcod, state, and ojph::local::param_cod::VERT_CAUSAL_MODE.
Referenced by ojph::local::codeblock::finalize_alloc().
size ojph::param_cod::get_log_block_dims | ( | ) | const |
Definition at line 270 of file ojph_params.cpp.
References ojph::local::param_cod::get_log_block_dims(), and state.
Referenced by ojph::local::codestream::check_broadcast_validity(), and ojph::local::codestream::check_imf_validity().
Definition at line 293 of file ojph_params.cpp.
References ojph::local::param_cod::get_log_precinct_size(), and state.
Referenced by ojph::local::codestream::check_broadcast_validity(), and ojph::local::codestream::check_imf_validity().
ui32 ojph::param_cod::get_num_decompositions | ( | ) | const |
Definition at line 258 of file ojph_params.cpp.
References ojph::local::param_cod::get_num_decompositions(), and state.
Referenced by ojph::local::codestream::check_broadcast_validity(), ojph::local::codestream::check_imf_validity(), and ojph::local::tile_comp::pre_alloc().
int ojph::param_cod::get_num_layers | ( | ) | const |
Definition at line 323 of file ojph_params.cpp.
References ojph::local::cod_SGcod::num_layers, ojph::local::param_cod::SGCod, and state.
Referenced by ojph::local::codestream::read_headers().
Definition at line 287 of file ojph_params.cpp.
References ojph::local::param_cod::get_precinct_size(), and state.
int ojph::param_cod::get_progression_order | ( | ) | const |
Definition at line 299 of file ojph_params.cpp.
References ojph::local::cod_SGcod::prog_order, ojph::local::param_cod::SGCod, and state.
Referenced by ojph::local::codestream::check_broadcast_validity(), ojph::local::codestream::check_imf_validity(), ojph::local::tile::finalize_alloc(), and ojph::local::codestream::write_headers().
const char * ojph::param_cod::get_progression_order_as_string | ( | ) | const |
Definition at line 305 of file ojph_params.cpp.
References ojph::OJPH_PO_CPRL, ojph::OJPH_PO_LRCP, ojph::OJPH_PO_PCRL, ojph::OJPH_PO_RLCP, ojph::OJPH_PO_RPCL, ojph::OJPH_PO_STRING_CPRL, ojph::OJPH_PO_STRING_LRCP, ojph::OJPH_PO_STRING_PCRL, ojph::OJPH_PO_STRING_RLCP, ojph::OJPH_PO_STRING_RPCL, ojph::local::cod_SGcod::prog_order, ojph::local::param_cod::SGCod, and state.
bool ojph::param_cod::is_reversible | ( | ) | const |
Definition at line 276 of file ojph_params.cpp.
References ojph::local::param_cod::access_atk(), ojph::local::param_cod::atk, ojph::local::param_cod::DWT_REV53, ojph::local::param_cod::get_wavelet_kern(), ojph::local::param_atk::is_reversible(), ojph::local::param_cod::SPcod, state, and ojph::local::cod_SPcod::wavelet_trans.
Referenced by ojph::local::codestream::check_imf_validity(), ojph::local::codeblock::finalize_alloc(), and main().
bool ojph::param_cod::is_using_color_transform | ( | ) | const |
Definition at line 329 of file ojph_params.cpp.
References ojph::local::param_cod::is_employing_color_transform(), and state.
Referenced by main().
bool ojph::param_cod::packets_may_use_sop | ( | ) | const |
Definition at line 335 of file ojph_params.cpp.
References ojph::local::param_cod::packets_may_use_sop(), and state.
bool ojph::param_cod::packets_use_eph | ( | ) | const |
Definition at line 341 of file ojph_params.cpp.
References ojph::local::param_cod::packets_use_eph(), and state.
Definition at line 177 of file ojph_params.cpp.
References ojph::local::cod_SPcod::block_height, ojph::local::cod_SPcod::block_width, ojph::count_leading_zeros(), OJPH_ERROR, ojph::local::param_cod::SPcod, and state.
Referenced by main().
void ojph::param_cod::set_color_transform | ( | bool | color_transform | ) |
Definition at line 246 of file ojph_params.cpp.
References ojph::local::param_cod::employ_color_transform(), and state.
Referenced by main().
void ojph::param_cod::set_num_decomposition | ( | ui32 | num_decompositions | ) |
Definition at line 168 of file ojph_params.cpp.
References ojph::local::cod_SPcod::num_decomp, OJPH_ERROR, ojph::local::param_cod::SPcod, and state.
Referenced by main().
void ojph::param_cod::set_precinct_size | ( | int | num_levels, |
size * | precinct_size | ||
) |
Definition at line 191 of file ojph_params.cpp.
References ojph::count_leading_zeros(), ojph::size::h, ojph::local::cod_SPcod::num_decomp, OJPH_ERROR, ojph::local::cod_SPcod::precinct_size, ojph::local::param_cod::Scod, ojph::local::param_cod::SPcod, state, and ojph::size::w.
Referenced by main().
void ojph::param_cod::set_progression_order | ( | const char * | name | ) |
Definition at line 219 of file ojph_params.cpp.
References OJPH_ERROR, ojph::OJPH_PO_CPRL, ojph::OJPH_PO_LRCP, ojph::OJPH_PO_PCRL, ojph::OJPH_PO_RLCP, ojph::OJPH_PO_RPCL, ojph::OJPH_PO_STRING_CPRL, ojph::OJPH_PO_STRING_LRCP, ojph::OJPH_PO_STRING_PCRL, ojph::OJPH_PO_STRING_RLCP, ojph::OJPH_PO_STRING_RPCL, ojph::local::cod_SGcod::prog_order, ojph::local::param_cod::SGCod, and state.
Referenced by main().
void ojph::param_cod::set_reversible | ( | bool | reversible | ) |
Definition at line 252 of file ojph_params.cpp.
References ojph::local::param_cod::set_reversible(), and state.
Referenced by main().
|
private |
Definition at line 120 of file ojph_params.h.
Referenced by get_block_dims(), get_block_vertical_causality(), get_log_block_dims(), get_log_precinct_size(), get_num_decompositions(), get_num_layers(), get_precinct_size(), get_progression_order(), get_progression_order_as_string(), is_reversible(), is_using_color_transform(), packets_may_use_sop(), packets_use_eph(), set_block_dims(), set_color_transform(), set_num_decomposition(), set_precinct_size(), set_progression_order(), and set_reversible().