OpenJPH
Open-source implementation of JPEG2000 Part-15
ojph::local::param_siz Struct Reference

#include <ojph_params_local.h>

Public Types

enum  : ui16 { RSIZ_NLT_FLAG = 0x200 , RSIZ_HT_FLAG = 0x4000 , RSIZ_EXT_FLAG = 0x8000 }
 

Public Member Functions

 param_siz ()
 
 ~param_siz ()
 
void set_num_components (ui32 num_comps)
 
void set_comp_info (ui32 comp_num, const point &downsampling, ui32 bit_depth, bool is_signed)
 
void check_validity (const param_cod &cod)
 
ui16 get_num_components () const
 
ui32 get_bit_depth (ui32 comp_num) const
 
bool is_signed (ui32 comp_num) const
 
point get_downsampling (ui32 comp_num) const
 
bool write (outfile_base *file)
 
void read (infile_base *file)
 
void link (const param_cod *cod)
 
void link (const param_dfs *dfs)
 
void set_skipped_resolutions (ui32 skipped_resolutions)
 
ui32 get_width (ui32 comp_num) const
 
ui32 get_height (ui32 comp_num) const
 
point get_recon_downsampling (ui32 comp_num) const
 
point get_recon_size (ui32 comp_num) const
 
ui32 get_recon_width (ui32 comp_num) const
 
ui32 get_recon_height (ui32 comp_num) const
 
bool is_ws_kern_support_needed ()
 
bool is_dfs_support_needed ()
 
void set_Rsiz_flag (ui16 flag)
 
void reset_Rsiz_flag (ui16 flag)
 

Private Member Functions

 param_siz (const param_siz &)=delete
 
param_sizoperator= (const param_siz &)=delete
 

Private Attributes

ui16 Lsiz
 
ui16 Rsiz
 
ui32 Xsiz
 
ui32 Ysiz
 
ui32 XOsiz
 
ui32 YOsiz
 
ui32 XTsiz
 
ui32 YTsiz
 
ui32 XTOsiz
 
ui32 YTOsiz
 
ui16 Csiz
 
siz_comp_infocptr
 
ui32 skipped_resolutions
 
int old_Csiz
 
siz_comp_info store [4]
 
bool ws_kern_support_needed
 
bool dfs_support_needed
 
const param_codcod
 
const param_dfsdfs
 

Detailed Description

Definition at line 165 of file ojph_params_local.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : ui16
Enumerator
RSIZ_NLT_FLAG 
RSIZ_HT_FLAG 
RSIZ_EXT_FLAG 

Definition at line 170 of file ojph_params_local.h.

Constructor & Destructor Documentation

◆ param_siz() [1/2]

ojph::local::param_siz::param_siz ( )
inline

◆ ~param_siz()

ojph::local::param_siz::~param_siz ( )
inline

Definition at line 191 of file ojph_params_local.h.

References cptr, and store.

◆ param_siz() [2/2]

ojph::local::param_siz::param_siz ( const param_siz )
privatedelete

Member Function Documentation

◆ check_validity()

void ojph::local::param_siz::check_validity ( const param_cod cod)
inline

Definition at line 219 of file ojph_params_local.h.

References cod, OJPH_ERROR, XOsiz, Xsiz, XTOsiz, XTsiz, YOsiz, Ysiz, YTOsiz, and YTsiz.

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

◆ get_bit_depth()

◆ get_downsampling()

point ojph::local::param_siz::get_downsampling ( ui32  comp_num) const
inline

◆ get_height()

ui32 ojph::local::param_siz::get_height ( ui32  comp_num) const
inline

◆ get_num_components()

◆ get_recon_downsampling()

◆ get_recon_height()

ui32 ojph::local::param_siz::get_recon_height ( ui32  comp_num) const
inline

◆ get_recon_size()

point ojph::local::param_siz::get_recon_size ( ui32  comp_num) const

◆ get_recon_width()

ui32 ojph::local::param_siz::get_recon_width ( ui32  comp_num) const
inline

◆ get_width()

ui32 ojph::local::param_siz::get_width ( ui32  comp_num) const
inline

◆ is_dfs_support_needed()

bool ojph::local::param_siz::is_dfs_support_needed ( )
inline

Definition at line 289 of file ojph_params_local.h.

References dfs_support_needed.

◆ is_signed()

◆ is_ws_kern_support_needed()

bool ojph::local::param_siz::is_ws_kern_support_needed ( )
inline

Definition at line 288 of file ojph_params_local.h.

References ws_kern_support_needed.

◆ link() [1/2]

void ojph::local::param_siz::link ( const param_cod cod)
inline

Definition at line 256 of file ojph_params_local.h.

References cod.

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

◆ link() [2/2]

void ojph::local::param_siz::link ( const param_dfs dfs)
inline

Definition at line 259 of file ojph_params_local.h.

References dfs.

◆ operator=()

param_siz & ojph::local::param_siz::operator= ( const param_siz )
privatedelete

◆ read()

◆ reset_Rsiz_flag()

void ojph::local::param_siz::reset_Rsiz_flag ( ui16  flag)
inline

Definition at line 293 of file ojph_params_local.h.

References Rsiz.

◆ set_comp_info()

void ojph::local::param_siz::set_comp_info ( ui32  comp_num,
const point downsampling,
ui32  bit_depth,
bool  is_signed 
)
inline

◆ set_num_components()

void ojph::local::param_siz::set_num_components ( ui32  num_comps)
inline

Definition at line 196 of file ojph_params_local.h.

References cptr, Csiz, old_Csiz, and store.

Referenced by ojph::param_siz::set_num_components().

◆ set_Rsiz_flag()

void ojph::local::param_siz::set_Rsiz_flag ( ui16  flag)
inline

Definition at line 291 of file ojph_params_local.h.

References Rsiz.

Referenced by ojph::local::param_nlt::check_validity().

◆ set_skipped_resolutions()

void ojph::local::param_siz::set_skipped_resolutions ( ui32  skipped_resolutions)
inline

◆ write()

Member Data Documentation

◆ cod

const param_cod* ojph::local::param_siz::cod
private

Definition at line 316 of file ojph_params_local.h.

Referenced by check_validity(), get_recon_downsampling(), link(), and param_siz().

◆ cptr

◆ Csiz

◆ dfs

const param_dfs* ojph::local::param_siz::dfs
private

Definition at line 317 of file ojph_params_local.h.

Referenced by get_recon_downsampling(), link(), and param_siz().

◆ dfs_support_needed

bool ojph::local::param_siz::dfs_support_needed
private

Definition at line 315 of file ojph_params_local.h.

Referenced by is_dfs_support_needed(), param_siz(), and read().

◆ Lsiz

ui16 ojph::local::param_siz::Lsiz
private

Definition at line 297 of file ojph_params_local.h.

Referenced by param_siz(), read(), and write().

◆ old_Csiz

int ojph::local::param_siz::old_Csiz
private

Definition at line 312 of file ojph_params_local.h.

Referenced by param_siz(), read(), and set_num_components().

◆ Rsiz

ui16 ojph::local::param_siz::Rsiz
private

Definition at line 298 of file ojph_params_local.h.

Referenced by param_siz(), read(), reset_Rsiz_flag(), set_Rsiz_flag(), and write().

◆ skipped_resolutions

ui32 ojph::local::param_siz::skipped_resolutions
private

Definition at line 311 of file ojph_params_local.h.

Referenced by get_recon_downsampling(), param_siz(), and set_skipped_resolutions().

◆ store

siz_comp_info ojph::local::param_siz::store[4]
private

Definition at line 313 of file ojph_params_local.h.

Referenced by param_siz(), read(), set_num_components(), and ~param_siz().

◆ ws_kern_support_needed

bool ojph::local::param_siz::ws_kern_support_needed
private

Definition at line 314 of file ojph_params_local.h.

Referenced by is_ws_kern_support_needed(), param_siz(), and read().

◆ XOsiz

◆ Xsiz

◆ XTOsiz

ui32 ojph::local::param_siz::XTOsiz
private

◆ XTsiz

ui32 ojph::local::param_siz::XTsiz
private

◆ YOsiz

◆ Ysiz

◆ YTOsiz

ui32 ojph::local::param_siz::YTOsiz
private

◆ YTsiz

ui32 ojph::local::param_siz::YTsiz
private

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