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_siz & | operator= (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_info * | cptr
ui32 | skipped_resolutions
int | old_Csiz
siz_comp_info | store [4]
bool | ws_kern_support_needed
bool | dfs_support_needed
const param_cod * | cod
const param_dfs * | dfs

## 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 & |  | ) |
| private delete

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

Definition at line 238 of file ojph_params_local.h.

References cptr, and Csiz.

Referenced by ojph::local::param_cod::check_validity(), ojph::local::param_nlt::check_validity(), ojph::local::param_qcd::check_validity(), and ojph::local::tile::finalize_alloc().

## ◆ get_downsampling()

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

Definition at line 248 of file ojph_params_local.h.

References cptr, and Csiz.

Referenced by ojph::local::param_cod::check_validity(), ojph::local::tile::finalize_alloc(), ojph::local::tile_comp::finalize_alloc(), and ojph::local::tile::pre_alloc().

## ◆ 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()

ui16 ojph::local::param_siz::get_num_components | ( |  | ) | const
| inline

Definition at line 237 of file ojph_params_local.h.

References Csiz.

Referenced by ojph::local::param_cod::check_validity(), ojph::local::param_nlt::check_validity(), ojph::local::param_qcd::check_validity(), ojph::local::tile::finalize_alloc(), get_height(), get_recon_downsampling(), get_recon_size(), get_width(), and ojph::local::tile::pre_alloc().

## ◆ get_recon_downsampling()

point ojph::local::param_siz::get_recon_downsampling | ( | ui32 | comp_num | ) | const

Definition at line 751 of file ojph_params.cpp.

References cod, cptr, dfs, ojph::local::param_cod::get_dfs_index(), get_num_components(), ojph::local::param_dfs::get_res_downsamp(), ojph::local::param_cod::is_dfs_defined(), skipped_resolutions, ojph::point::x, and ojph::point::y.

Referenced by ojph::local::tile::finalize_alloc(), and get_recon_size().

## ◆ 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

Definition at line 767 of file ojph_params.cpp.

References get_num_components(), get_recon_downsampling(), ojph_div_ceil, ojph::point::x, XOsiz, Xsiz, ojph::point::y, YOsiz, and Ysiz.

Referenced by get_recon_height(), and get_recon_width().

## ◆ 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

Definition at line 180 of file ojph_params_local.h.

References cod, cptr, Csiz, dfs, dfs_support_needed, Lsiz, old_Csiz, Rsiz, RSIZ_HT_FLAG, skipped_resolutions, store, ws_kern_support_needed, XOsiz, Xsiz, XTOsiz, XTsiz, YOsiz, Ysiz, YTOsiz, and YTsiz.

Referenced by param_siz().

## ◆ 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

Definition at line 243 of file ojph_params_local.h.

References cptr, and Csiz.

Referenced by ojph::local::param_cod::check_validity(), ojph::local::param_nlt::check_validity(), ojph::local::param_qcd::check_validity(), ojph::local::tile::finalize_alloc(), and set_comp_info().

## ◆ 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 & |  | ) |
| private delete

References param_siz().

## ◆ read()

void ojph::local::param_siz::read | ( | infile_base * | file | ) |

Definition at line 684 of file ojph_params.cpp.

References cptr, Csiz, dfs_support_needed, Lsiz, OJPH_ERROR, OJPH_WARN, ojph::infile_base::read(), Rsiz, set_num_components(), ojph::local::swap_byte(), ws_kern_support_needed, XOsiz, Xsiz, XTOsiz, XTsiz, YOsiz, Ysiz, YTOsiz, and YTsiz.

## ◆ 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 | ) |

Definition at line 639 of file ojph_params.cpp.

References cptr, Csiz, Lsiz, Rsiz, ojph::local::SIZ, ojph::local::swap_byte(), ojph::outfile_base::write(), XOsiz, Xsiz, XTOsiz, XTsiz, YOsiz, Ysiz, YTOsiz, and YTsiz.

## 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

siz_comp_info* ojph::local::param_siz::cptr
| private

Definition at line 309 of file ojph_params_local.h.

Referenced by destroy(), get_bit_depth(), get_downsampling(), get_height(), get_recon_downsampling(), get_width(), init(), is_signed(), read(), set_comp_info(), set_num_components(), and write().

## ◆ Csiz

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

Definition at line 308 of file ojph_params_local.h.

Referenced by get_bit_depth(), get_downsampling(), get_num_components(), init(), is_signed(), read(), set_comp_info(), set_num_components(), and write().

## ◆ 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:

- /build/openjph/src/OpenJPH/src/core/codestream/ojph_params_local.h
- /build/openjph/src/OpenJPH/src/core/codestream/ojph_params.cpp