OpenJPH
Open-source implementation of JPEG2000 Part-15
ojph::param_nlt Class Reference

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 More...
 
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 More...
 

Private Attributes

local::param_nltstate
 

Detailed Description

non-linearity point transformation object (implements NLT marker segment)

Definition at line 140 of file ojph_params.h.

Member Enumeration Documentation

◆ special_comp_num

Enumerator
ALL_COMPS 

Definition at line 143 of file ojph_params.h.

Constructor & Destructor Documentation

◆ param_nlt()

ojph::param_nlt::param_nlt ( local::param_nlt p)
inline

Definition at line 145 of file ojph_params.h.

Member Function Documentation

◆ get_type3_transformation()

bool ojph::param_nlt::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

Parameters
comp_numcomponent number, or 65535 for the default setting
bit_depthreturns the bit depth of the component/default
is_signedreturns true if the component/default is signed
Returns
true if enabled or false if not.

Definition at line 382 of file ojph_params.cpp.

References ojph::local::param_nlt::get_type3_transformation(), and state.

Referenced by main().

◆ set_type3_transformation()

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.

Parameters
comp_numcomponent number, or 65535 for the default setting
enabletrue 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().

Member Data Documentation

◆ state

local::param_nlt* ojph::param_nlt::state
private

Definition at line 173 of file ojph_params.h.

Referenced by get_type3_transformation(), and set_type3_transformation().


The documentation for this class was generated from the following files: