|
OpenJPH
Open-source implementation of JPEG2000 Part-15
|
#include <ojph_params_local.h>
Public Types | |
| using | special_comp_num = ojph::param_nlt::special_comp_num |
| using | nonlinearity = ojph::param_nlt::nonlinearity |
Public Member Functions | |
| param_nlt () | |
| ~param_nlt () | |
| void | restart () |
| void | check_validity (param_siz &siz, const param_cod &cod) |
| int | find_unsupported_nlt (const param_siz &siz, const param_cod &cod) const |
| void | set_nonlinear_transform (ui32 comp_num, ui8 nl_type) |
| void | set_nonlinear_transform (ui32 comp_num, ui8 decoded_bit_depth, bool decoded_signedness, ui32 d_min, ui32 d_max, ui8 pt_val, ui16 num_points, void *points, ui8 nl_type) |
| bool | get_nonlinear_transform (ui32 comp_num, ui8 &decoded_bit_depth, bool &decoded_signedness, ui8 &nl_type) const |
| bool | write (outfile_base *file) const |
| bool | read (infile_base *file) |
| const nlt_rec * | get_nlt_rec (ui32 comp_num) const |
Private Member Functions | |
| void | init () |
| void | destroy () |
| const param_nlt * | get_nlt_object (ui32 comp_num) const |
| param_nlt * | get_nlt_object (ui32 comp_num) |
| param_nlt * | add_object (ui32 comp_num) |
| bool | is_any_enabled () const |
| void | trim_non_existing_components (ui32 num_comps) |
Private Attributes | |
| ui16 | Lnlt |
| ui16 | Cnlt |
| nlt_rec | rec |
| bool | enabled |
| param_nlt * | next |
| param_nlt * | avail |
Definition at line 909 of file ojph_params_local.h.
Definition at line 912 of file ojph_params_local.h.
Definition at line 911 of file ojph_params_local.h.
|
inline |
Definition at line 915 of file ojph_params_local.h.
Referenced by add_object(), check_validity(), get_nlt_object(), get_nlt_object(), get_nlt_rec(), get_nonlinear_transform(), is_any_enabled(), read(), restart(), set_nonlinear_transform(), set_nonlinear_transform(), trim_non_existing_components(), and write().
|
inline |
Definition at line 919 of file ojph_params_local.h.
References destroy().
Definition at line 2756 of file ojph_params.cpp.
References avail, Cnlt, init(), next, and param_nlt().
Referenced by check_validity(), read(), set_nonlinear_transform(), and set_nonlinear_transform().
Definition at line 2255 of file ojph_params.cpp.
References add_object(), ojph::local::nlt_rec::BDnlt, enabled, find_unsupported_nlt(), ojph::local::param_siz::get_bit_depth(), get_nlt_object(), ojph::local::param_siz::get_num_components(), is_any_enabled(), ojph::local::param_siz::is_signed(), OJPH_ERROR, param_nlt(), rec, ojph::local::param_siz::RSIZ_EXT_FLAG, ojph::local::param_siz::RSIZ_NLT_FLAG, ojph::local::param_siz::set_Rsiz_flag(), ojph::local::nlt_rec::Tnlt, and trim_non_existing_components().
Referenced by ojph::local::codestream::write_headers().
|
inlineprivate |
Definition at line 971 of file ojph_params_local.h.
References avail, next, ojph::local::nlt_rec::points_store, and rec.
Referenced by ~param_nlt().
| int ojph::local::param_nlt::find_unsupported_nlt | ( | const param_siz & | siz, |
| const param_cod & | cod ) const |
Definition at line 2234 of file ojph_params.cpp.
References ojph::local::param_cod::get_coc(), get_nlt_rec(), ojph::local::param_siz::get_num_components(), ojph::local::nlt_rec::get_type(), ojph::local::param_cod::is_reversible(), and rec.
Referenced by check_validity(), and ojph::local::codestream::read_headers().
Definition at line 2734 of file ojph_params.cpp.
References get_nlt_object(), and param_nlt().
Definition at line 2743 of file ojph_params.cpp.
References Cnlt, next, and param_nlt().
Referenced by check_validity(), get_nlt_object(), get_nlt_rec(), get_nonlinear_transform(), read(), set_nonlinear_transform(), and set_nonlinear_transform().
Definition at line 2721 of file ojph_params.cpp.
References Cnlt, enabled, get_nlt_object(), param_nlt(), and rec.
Referenced by ojph::local::tile::finalize_alloc(), and find_unsupported_nlt().
| bool ojph::local::param_nlt::get_nonlinear_transform | ( | ui32 | comp_num, |
| ui8 & | decoded_bit_depth, | ||
| bool & | decoded_signedness, | ||
| ui8 & | nl_type ) const |
Definition at line 2505 of file ojph_params.cpp.
References ojph::local::nlt_rec::BDnlt, Cnlt, enabled, get_nlt_object(), param_nlt(), rec, and ojph::local::nlt_rec::Tnlt.
Referenced by ojph::param_nlt::get_nonlinear_transform().
|
inlineprivate |
Definition at line 962 of file ojph_params_local.h.
References Cnlt, enabled, ojph::local::nlt_rec::init(), Lnlt, next, and rec.
Referenced by add_object(), param_nlt(), and restart().
|
private |
Definition at line 2779 of file ojph_params.cpp.
References enabled, next, and param_nlt().
Referenced by check_validity(), and write().
| bool ojph::local::param_nlt::read | ( | infile_base * | file | ) |
Definition at line 2596 of file ojph_params.cpp.
References add_object(), ojph::local::nlt_rec::assign_pointers_for_decoding(), ojph::local::nlt_rec::BDnlt, ojph::local::nlt_rec::bytes_per_point, ojph::local::nlt_rec::cal_store_size_for_decoding(), Cnlt, ojph::local::nlt_rec::d_max, ojph::local::nlt_rec::d_min, enabled, ojph::local::nlt_rec::get_bpp(), get_nlt_object(), ojph::local::nlt_rec::marker_points, ojph::local::nlt_rec::num_points, OJPH_ERROR, param_nlt(), ojph::local::nlt_rec::points_store, ojph::local::nlt_rec::prepare_for_decoding(), ojph::local::nlt_rec::pt_val, ojph::infile_base::read(), rec, ojph::local::nlt_rec::store_size, and ojph::local::nlt_rec::Tnlt.
Referenced by ojph::local::codestream::read_headers().
|
inline |
Definition at line 922 of file ojph_params_local.h.
References avail, init(), next, and param_nlt().
Referenced by ojph::local::codestream::restart().
| void ojph::local::param_nlt::set_nonlinear_transform | ( | ui32 | comp_num, |
| ui8 | decoded_bit_depth, | ||
| bool | decoded_signedness, | ||
| ui32 | d_min, | ||
| ui32 | d_max, | ||
| ui8 | pt_val, | ||
| ui16 | num_points, | ||
| void * | points, | ||
| ui8 | nl_type ) |
Definition at line 2375 of file ojph_params.cpp.
References add_object(), ojph::local::nlt_rec::assign_pointers_for_encoding(), ojph::local::nlt_rec::BDnlt, ojph::local::nlt_rec::bytes_per_point, ojph::local::nlt_rec::cal_store_size_for_encoding(), ojph::local::nlt_rec::d_max, ojph::local::nlt_rec::d_min, enabled, ojph::local::nlt_rec::get_bpp(), get_nlt_object(), Lnlt, ojph::local::nlt_rec::marker_points, ojph::local::nlt_rec::num_points, OJPH_ERROR, ojph_min, ojph::param_nlt::OJPH_NLT_BINARY_COMPLEMENT_PLUS_LUT, ojph::param_nlt::OJPH_NLT_LUT_STYLE_NLT, OJPH_WARN, param_nlt(), ojph::local::nlt_rec::points_store, ojph::local::nlt_rec::prepare_for_encoding(), ojph::local::nlt_rec::pt_val, rec, ojph::local::nlt_rec::store_size, and ojph::local::nlt_rec::Tnlt.
Definition at line 2359 of file ojph_params.cpp.
References add_object(), enabled, get_nlt_object(), Lnlt, OJPH_ERROR, ojph::param_nlt::OJPH_NLT_BINARY_COMPLEMENT_NLT, ojph::param_nlt::OJPH_NLT_NO_NLT, param_nlt(), rec, and ojph::local::nlt_rec::Tnlt.
Referenced by ojph::param_nlt::set_nonlinear_transform(), and ojph::param_nlt::set_nonlinear_transform().
|
private |
Definition at line 2789 of file ojph_params.cpp.
References Cnlt, enabled, next, OJPH_INFO, and param_nlt().
Referenced by check_validity().
| bool ojph::local::param_nlt::write | ( | outfile_base * | file | ) | const |
Definition at line 2525 of file ojph_params.cpp.
References ojph::local::nlt_rec::BDnlt, ojph::local::nlt_rec::bytes_per_point, Cnlt, ojph::local::nlt_rec::d_max, ojph::local::nlt_rec::d_min, enabled, is_any_enabled(), Lnlt, ojph::local::nlt_rec::marker_points, next, ojph::local::NLT, ojph::local::nlt_rec::num_points, param_nlt(), ojph::local::nlt_rec::pt_val, rec, ojph::local::nlt_rec::Tnlt, and ojph::outfile_base::write().
Referenced by ojph::local::codestream::write_headers().
|
private |
Definition at line 1005 of file ojph_params_local.h.
Referenced by add_object(), destroy(), param_nlt(), and restart().
|
private |
Definition at line 994 of file ojph_params_local.h.
Referenced by add_object(), get_nlt_object(), get_nlt_rec(), get_nonlinear_transform(), init(), read(), trim_non_existing_components(), and write().
|
private |
Definition at line 1003 of file ojph_params_local.h.
Referenced by check_validity(), get_nlt_rec(), get_nonlinear_transform(), init(), is_any_enabled(), read(), set_nonlinear_transform(), set_nonlinear_transform(), trim_non_existing_components(), and write().
|
private |
Definition at line 993 of file ojph_params_local.h.
Referenced by init(), set_nonlinear_transform(), set_nonlinear_transform(), and write().
|
private |
Definition at line 1004 of file ojph_params_local.h.
Referenced by add_object(), destroy(), get_nlt_object(), init(), is_any_enabled(), restart(), trim_non_existing_components(), and write().
|
private |
Definition at line 995 of file ojph_params_local.h.
Referenced by check_validity(), destroy(), find_unsupported_nlt(), get_nlt_rec(), get_nonlinear_transform(), init(), read(), set_nonlinear_transform(), set_nonlinear_transform(), and write().