OpenJPH
Open-source implementation of JPEG2000 Part-15
Loading...
Searching...
No Matches
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 init ()
void destroy ()
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

Definition at line 177 of file ojph_params_local.h.

References init().

Referenced by operator=(), and param_siz().

◆ ~param_siz()

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

Definition at line 178 of file ojph_params_local.h.

References destroy().

◆ param_siz() [2/2]

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

References param_siz().

Member Function Documentation

◆ check_validity()

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

Definition at line 220 of file ojph_params_local.h.

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

◆ destroy()

void ojph::local::param_siz::destroy ( )
inline

Definition at line 194 of file ojph_params_local.h.

References cptr, and store.

Referenced by ~param_siz().

◆ get_bit_depth()

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

◆ 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

Definition at line 274 of file ojph_params_local.h.

References cptr, get_num_components(), ojph_div_ceil, YOsiz, and Ysiz.

◆ get_num_components()

◆ get_recon_downsampling()

◆ get_recon_height()

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

Definition at line 286 of file ojph_params_local.h.

References get_recon_size(), and ojph::point::y.

◆ 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

Definition at line 284 of file ojph_params_local.h.

References get_recon_size(), and ojph::point::x.

◆ get_width()

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

Definition at line 266 of file ojph_params_local.h.

References cptr, get_num_components(), ojph_div_ceil, XOsiz, and Xsiz.

◆ init()

void ojph::local::param_siz::init ( )
inline

◆ is_dfs_support_needed()

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

Definition at line 290 of file ojph_params_local.h.

References dfs_support_needed.

◆ is_signed()

bool ojph::local::param_siz::is_signed ( ui32 comp_num) const
inline

◆ is_ws_kern_support_needed()

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

Definition at line 289 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 257 of file ojph_params_local.h.

References cod.

◆ link() [2/2]

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

Definition at line 260 of file ojph_params_local.h.

References dfs.

◆ operator=()

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

References param_siz().

◆ read()

◆ reset_Rsiz_flag()

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

Definition at line 294 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

Definition at line 210 of file ojph_params_local.h.

References cptr, Csiz, is_signed(), ojph::point::x, and ojph::point::y.

◆ set_num_components()

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

Definition at line 197 of file ojph_params_local.h.

References cptr, Csiz, old_Csiz, and store.

Referenced by read().

◆ set_Rsiz_flag()

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

Definition at line 292 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

Definition at line 263 of file ojph_params_local.h.

References skipped_resolutions.

◆ write()

bool ojph::local::param_siz::write ( outfile_base * file)

Member Data Documentation

◆ cod

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

Definition at line 317 of file ojph_params_local.h.

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

◆ cptr

◆ Csiz

ui16 ojph::local::param_siz::Csiz
private

◆ dfs

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

Definition at line 318 of file ojph_params_local.h.

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

◆ dfs_support_needed

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

Definition at line 316 of file ojph_params_local.h.

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

◆ Lsiz

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

Definition at line 298 of file ojph_params_local.h.

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

◆ old_Csiz

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

Definition at line 313 of file ojph_params_local.h.

Referenced by init(), and set_num_components().

◆ Rsiz

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

Definition at line 299 of file ojph_params_local.h.

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

◆ skipped_resolutions

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

Definition at line 312 of file ojph_params_local.h.

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

◆ store

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

Definition at line 314 of file ojph_params_local.h.

Referenced by destroy(), init(), and set_num_components().

◆ ws_kern_support_needed

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

Definition at line 315 of file ojph_params_local.h.

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

◆ XOsiz

ui32 ojph::local::param_siz::XOsiz
private

Definition at line 302 of file ojph_params_local.h.

Referenced by check_validity(), get_recon_size(), get_width(), init(), read(), and write().

◆ Xsiz

ui32 ojph::local::param_siz::Xsiz
private

Definition at line 300 of file ojph_params_local.h.

Referenced by check_validity(), get_recon_size(), get_width(), init(), read(), and write().

◆ XTOsiz

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

Definition at line 306 of file ojph_params_local.h.

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

◆ XTsiz

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

Definition at line 304 of file ojph_params_local.h.

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

◆ YOsiz

ui32 ojph::local::param_siz::YOsiz
private

Definition at line 303 of file ojph_params_local.h.

Referenced by check_validity(), get_height(), get_recon_size(), init(), read(), and write().

◆ Ysiz

ui32 ojph::local::param_siz::Ysiz
private

Definition at line 301 of file ojph_params_local.h.

Referenced by check_validity(), get_height(), get_recon_size(), init(), read(), and write().

◆ YTOsiz

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

Definition at line 307 of file ojph_params_local.h.

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

◆ YTsiz

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

Definition at line 305 of file ojph_params_local.h.

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


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