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, 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_recget_nlt_rec (ui32 comp_num) const

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
nlt_rec rec
bool enabled
param_nltnext
param_nltavail

Detailed Description

Definition at line 909 of file ojph_params_local.h.

Member Typedef Documentation

◆ nonlinearity

◆ special_comp_num

Constructor & Destructor Documentation

◆ param_nlt()

◆ ~param_nlt()

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

Definition at line 919 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 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().

◆ check_validity()

◆ destroy()

void ojph::local::param_nlt::destroy ( )
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().

◆ find_unsupported_nlt()

◆ get_nlt_object() [1/2]

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

Definition at line 2734 of file ojph_params.cpp.

References get_nlt_object(), and param_nlt().

◆ get_nlt_object() [2/2]

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

◆ get_nlt_rec()

const nlt_rec * ojph::local::param_nlt::get_nlt_rec ( ui32 comp_num) const

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().

◆ get_nonlinear_transform()

bool ojph::local::param_nlt::get_nonlinear_transform ( ui32 comp_num,
ui8 & decoded_bit_depth,
bool & decoded_signedness,
ui8 & nl_type ) const

◆ init()

void ojph::local::param_nlt::init ( )
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().

◆ is_any_enabled()

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

Definition at line 2779 of file ojph_params.cpp.

References enabled, next, and param_nlt().

Referenced by check_validity(), and write().

◆ read()

◆ restart()

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

Definition at line 922 of file ojph_params_local.h.

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

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

◆ set_nonlinear_transform() [1/2]

◆ set_nonlinear_transform() [2/2]

◆ trim_non_existing_components()

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

Definition at line 2789 of file ojph_params.cpp.

References Cnlt, enabled, next, OJPH_INFO, and param_nlt().

Referenced by check_validity().

◆ write()

Member Data Documentation

◆ avail

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

Definition at line 1005 of file ojph_params_local.h.

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

◆ Cnlt

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

◆ enabled

◆ Lnlt

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

Definition at line 993 of file ojph_params_local.h.

Referenced by init(), set_nonlinear_transform(), set_nonlinear_transform(), and write().

◆ next

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

◆ rec


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