OpenJPH
Open-source implementation of JPEG2000 Part-15
Loading...
Searching...
No Matches
ojph::param_cod Class Reference

#include <ojph_params.h>

Public Member Functions

 param_cod (local::param_cod *p)
void set_num_decomposition (ui32 num_decompositions)
void set_block_dims (ui32 width, ui32 height)
void set_precinct_size (int num_levels, size *precinct_size)
void set_progression_order (const char *name)
void set_color_transform (bool color_transform)
void set_reversible (bool reversible)
ui32 get_num_decompositions () const
size get_block_dims () const
size get_log_block_dims () const
bool is_reversible () const
size get_precinct_size (ui32 level_num) const
size get_log_precinct_size (ui32 level_num) const
int get_progression_order () const
const char * get_progression_order_as_string () const
int get_num_layers () const
bool is_using_color_transform () const
bool packets_may_use_sop () const
bool packets_use_eph () const
bool get_block_vertical_causality () const
void set_num_decomposition (ui32 comp_idx, ui32 num_decompositions)
void set_block_dims (ui32 comp_idx, ui32 width, ui32 height)
void set_precinct_size (ui32 comp_idx, int num_levels, size *precinct_size)
void set_reversible (ui32 comp_idx, bool reversible)
ui32 get_num_decompositions (ui32 comp_idx) const
size get_block_dims (ui32 comp_idx) const
size get_log_block_dims (ui32 comp_idx) const
bool is_reversible (ui32 comp_idx) const
size get_precinct_size (ui32 comp_idx, ui32 level_num) const
size get_log_precinct_size (ui32 comp_idx, ui32 level_num) const
bool get_block_vertical_causality (ui32 comp_idx) const

Private Attributes

local::param_codstate

Detailed Description

Definition at line 119 of file ojph_params.h.

Constructor & Destructor Documentation

◆ param_cod()

ojph::param_cod::param_cod ( local::param_cod * p)
inline

Definition at line 122 of file ojph_params.h.

References state.

Member Function Documentation

◆ get_block_dims() [1/2]

size ojph::param_cod::get_block_dims ( ) const

Definition at line 290 of file ojph_params.cpp.

References state.

◆ get_block_dims() [2/2]

size ojph::param_cod::get_block_dims ( ui32 comp_idx) const

Definition at line 378 of file ojph_params.cpp.

References state.

◆ get_block_vertical_causality() [1/2]

bool ojph::param_cod::get_block_vertical_causality ( ) const

Definition at line 368 of file ojph_params.cpp.

References state.

◆ get_block_vertical_causality() [2/2]

bool ojph::param_cod::get_block_vertical_causality ( ui32 comp_idx) const

Definition at line 398 of file ojph_params.cpp.

References state.

◆ get_log_block_dims() [1/2]

size ojph::param_cod::get_log_block_dims ( ) const

◆ get_log_block_dims() [2/2]

size ojph::param_cod::get_log_block_dims ( ui32 comp_idx) const

Definition at line 382 of file ojph_params.cpp.

References state.

◆ get_log_precinct_size() [1/2]

size ojph::param_cod::get_log_precinct_size ( ui32 comp_idx,
ui32 level_num ) const

Definition at line 394 of file ojph_params.cpp.

References state.

◆ get_log_precinct_size() [2/2]

size ojph::param_cod::get_log_precinct_size ( ui32 level_num) const

◆ get_num_decompositions() [1/2]

ui32 ojph::param_cod::get_num_decompositions ( ) const

◆ get_num_decompositions() [2/2]

ui32 ojph::param_cod::get_num_decompositions ( ui32 comp_idx) const

Definition at line 374 of file ojph_params.cpp.

References state.

◆ get_num_layers()

int ojph::param_cod::get_num_layers ( ) const

Definition at line 344 of file ojph_params.cpp.

References state.

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

◆ get_precinct_size() [1/2]

size ojph::param_cod::get_precinct_size ( ui32 comp_idx,
ui32 level_num ) const

Definition at line 390 of file ojph_params.cpp.

References state.

◆ get_precinct_size() [2/2]

size ojph::param_cod::get_precinct_size ( ui32 level_num) const

Definition at line 308 of file ojph_params.cpp.

References state.

Referenced by LLVMFuzzerTestOneInput().

◆ get_progression_order()

◆ get_progression_order_as_string()

◆ is_reversible() [1/2]

bool ojph::param_cod::is_reversible ( ) const

Definition at line 302 of file ojph_params.cpp.

References state.

Referenced by ojph::local::codestream::check_imf_validity(), and TEST().

◆ is_reversible() [2/2]

bool ojph::param_cod::is_reversible ( ui32 comp_idx) const

Definition at line 386 of file ojph_params.cpp.

References state.

◆ is_using_color_transform()

bool ojph::param_cod::is_using_color_transform ( ) const

Definition at line 350 of file ojph_params.cpp.

References state.

Referenced by main().

◆ packets_may_use_sop()

bool ojph::param_cod::packets_may_use_sop ( ) const

Definition at line 356 of file ojph_params.cpp.

References state.

◆ packets_use_eph()

bool ojph::param_cod::packets_use_eph ( ) const

Definition at line 362 of file ojph_params.cpp.

References state.

◆ set_block_dims() [1/2]

void ojph::param_cod::set_block_dims ( ui32 comp_idx,
ui32 width,
ui32 height )

Definition at line 262 of file ojph_params.cpp.

References set_block_dims(), and state.

◆ set_block_dims() [2/2]

void ojph::param_cod::set_block_dims ( ui32 width,
ui32 height )

Definition at line 174 of file ojph_params.cpp.

References ojph::count_leading_zeros(), OJPH_ERROR, and state.

Referenced by main(), set_block_dims(), and TEST().

◆ set_color_transform()

void ojph::param_cod::set_color_transform ( bool color_transform)

Definition at line 243 of file ojph_params.cpp.

References state.

Referenced by LLVMFuzzerTestOneInput(), main(), and TEST().

◆ set_num_decomposition() [1/2]

void ojph::param_cod::set_num_decomposition ( ui32 comp_idx,
ui32 num_decompositions )

Definition at line 255 of file ojph_params.cpp.

References set_num_decomposition(), and state.

◆ set_num_decomposition() [2/2]

void ojph::param_cod::set_num_decomposition ( ui32 num_decompositions)

Definition at line 165 of file ojph_params.cpp.

References OJPH_ERROR, and state.

Referenced by LLVMFuzzerTestOneInput(), main(), set_num_decomposition(), and TEST().

◆ set_precinct_size() [1/2]

void ojph::param_cod::set_precinct_size ( int num_levels,
size * precinct_size )

Definition at line 188 of file ojph_params.cpp.

References ojph::count_leading_zeros(), ojph::size::h, OJPH_ERROR, state, and ojph::size::w.

Referenced by main(), and set_precinct_size().

◆ set_precinct_size() [2/2]

void ojph::param_cod::set_precinct_size ( ui32 comp_idx,
int num_levels,
size * precinct_size )

Definition at line 269 of file ojph_params.cpp.

References set_precinct_size(), and state.

◆ set_progression_order()

◆ set_reversible() [1/2]

void ojph::param_cod::set_reversible ( bool reversible)

Definition at line 249 of file ojph_params.cpp.

References state.

Referenced by LLVMFuzzerTestOneInput(), main(), set_reversible(), and TEST().

◆ set_reversible() [2/2]

void ojph::param_cod::set_reversible ( ui32 comp_idx,
bool reversible )

Definition at line 277 of file ojph_params.cpp.

References set_reversible(), and state.

Member Data Documentation

◆ state


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