OpenJPH
Open-source implementation of JPEG2000 Part-15
|
non-linearity point transformation object (implements NLT marker segment) More...
#include <ojph_params.h>
Public Types | |
enum | special_comp_num : ui16 { ALL_COMPS = 65535 } |
Public Member Functions | |
param_nlt (local::param_nlt *p) | |
void | set_type3_transformation (ui32 comp_num, bool enable) |
enables or disables type 3 nonlinearity for a component or the default setting | |
bool | get_type3_transformation (ui32 comp_num, ui8 &bit_depth, bool &is_signed) |
get the state (enabled or disabled) of type 3 nonlinearity for a component or the default setting | |
Private Attributes | |
local::param_nlt * | state |
non-linearity point transformation object (implements NLT marker segment)
Definition at line 140 of file ojph_params.h.
Enumerator | |
---|---|
ALL_COMPS |
Definition at line 143 of file ojph_params.h.
|
inline |
Definition at line 145 of file ojph_params.h.
get the state (enabled or disabled) of type 3 nonlinearity for a component or the default setting
comp_num | component number, or 65535 for the default setting |
bit_depth | returns the bit depth of the component/default |
is_signed | returns true if the component/default is signed |
Definition at line 382 of file ojph_params.cpp.
References ojph::local::param_nlt::get_type3_transformation(), and state.
Referenced by main().
void ojph::param_nlt::set_type3_transformation | ( | ui32 | comp_num, |
bool | enable | ||
) |
enables or disables type 3 nonlinearity for a component or the default setting
If you think that you need type 3 nonlinearity for all components, call this function with comp_num set to 65535 and enable to true.
comp_num | component number, or 65535 for the default setting |
enable | true to enable nlt type 3 for this component or the default setting, false to disable nlt type 3. |
Definition at line 376 of file ojph_params.cpp.
References ojph::local::param_nlt::set_type3_transformation(), and state.
Referenced by main().
|
private |
Definition at line 173 of file ojph_params.h.
Referenced by get_type3_transformation(), and set_type3_transformation().