OpenJPH
Open-source implementation of JPEG2000 Part-15
Loading...
Searching...
No Matches
ojph::local::param_nlt Struct Reference

#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)
 
void set_nonlinear_transform (ui32 comp_num, ui8 nl_type)
 
bool get_nonlinear_transform (ui32 comp_num, ui8 &bit_depth, bool &is_signed, ui8 &nl_type) const
 
bool write (outfile_base *file) const
 
void read (infile_base *file)
 

Private Member Functions

void init ()
 
void destroy ()
 
const param_nltget_nlt_object (ui32 comp_num) const
 
param_nltget_nlt_object (ui32 comp_num)
 
param_nltadd_object (ui32 comp_num)
 
bool is_any_enabled () const
 
void trim_non_existing_components (ui32 num_comps)
 

Private Attributes

ui16 Lnlt
 
ui16 Cnlt
 
ui8 BDnlt
 
ui8 Tnlt
 
bool enabled
 
param_nltnext
 
param_nltavail
 

Detailed Description

Definition at line 787 of file ojph_params_local.h.

Member Typedef Documentation

◆ nonlinearity

◆ special_comp_num

Constructor & Destructor Documentation

◆ param_nlt()

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

Definition at line 792 of file ojph_params_local.h.

References avail, and init().

Referenced by add_object().

◆ ~param_nlt()

ojph::local::param_nlt::~param_nlt ( )
inline

Definition at line 793 of file ojph_params_local.h.

References destroy().

Member Function Documentation

◆ add_object()

param_nlt * ojph::local::param_nlt::add_object ( ui32  comp_num)
private

Definition at line 1980 of file ojph_params.cpp.

References avail, Cnlt, init(), next, and param_nlt().

Referenced by check_validity(), read(), and set_nonlinear_transform().

◆ check_validity()

◆ destroy()

void ojph::local::param_nlt::destroy ( )
inlineprivate

Definition at line 824 of file ojph_params_local.h.

References avail, and next.

Referenced by ~param_nlt().

◆ get_nlt_object() [1/2]

param_nlt * ojph::local::param_nlt::get_nlt_object ( ui32  comp_num)
private

Definition at line 1962 of file ojph_params.cpp.

References get_nlt_object().

◆ get_nlt_object() [2/2]

const param_nlt * ojph::local::param_nlt::get_nlt_object ( ui32  comp_num) const
private

Definition at line 1971 of file ojph_params.cpp.

References Cnlt, and next.

Referenced by check_validity(), get_nlt_object(), get_nonlinear_transform(), read(), and set_nonlinear_transform().

◆ get_nonlinear_transform()

bool ojph::local::param_nlt::get_nonlinear_transform ( ui32  comp_num,
ui8 bit_depth,
bool &  is_signed,
ui8 nl_type 
) const

◆ init()

void ojph::local::param_nlt::init ( )
inlineprivate

Definition at line 814 of file ojph_params_local.h.

References BDnlt, Cnlt, enabled, Lnlt, next, and Tnlt.

Referenced by add_object(), param_nlt(), and restart().

◆ is_any_enabled()

bool ojph::local::param_nlt::is_any_enabled ( ) const
private

Definition at line 2003 of file ojph_params.cpp.

References enabled, and next.

Referenced by check_validity(), and write().

◆ read()

void ojph::local::param_nlt::read ( infile_base file)

◆ restart()

void ojph::local::param_nlt::restart ( )
inline

Definition at line 796 of file ojph_params_local.h.

References avail, init(), and next.

Referenced by ojph::local::codestream::restart().

◆ set_nonlinear_transform()

void ojph::local::param_nlt::set_nonlinear_transform ( ui32  comp_num,
ui8  nl_type 
)

◆ trim_non_existing_components()

void ojph::local::param_nlt::trim_non_existing_components ( ui32  num_comps)
private

Definition at line 2013 of file ojph_params.cpp.

References Cnlt, enabled, next, and OJPH_INFO.

Referenced by check_validity().

◆ write()

bool ojph::local::param_nlt::write ( outfile_base file) const

Member Data Documentation

◆ avail

param_nlt* ojph::local::param_nlt::avail
private

Definition at line 855 of file ojph_params_local.h.

Referenced by add_object(), destroy(), param_nlt(), and restart().

◆ BDnlt

ui8 ojph::local::param_nlt::BDnlt
private

Definition at line 844 of file ojph_params_local.h.

Referenced by check_validity(), get_nonlinear_transform(), init(), read(), and write().

◆ Cnlt

ui16 ojph::local::param_nlt::Cnlt
private

◆ enabled

bool ojph::local::param_nlt::enabled
private

◆ Lnlt

ui16 ojph::local::param_nlt::Lnlt
private

Definition at line 842 of file ojph_params_local.h.

Referenced by init(), and write().

◆ next

param_nlt* ojph::local::param_nlt::next
private

◆ Tnlt

ui8 ojph::local::param_nlt::Tnlt
private

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