OpenJPH
Open-source implementation of JPEG2000 Part-15
|
#include <ojph_params_local.h>
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 () |
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 | set_skipped_resolutions (ui32 skipped_resolutions) |
ui32 | get_width (ui32 comp_num) const |
ui32 | get_height (ui32 comp_num) const |
ui32 | get_recon_width (ui32 comp_num) const |
ui32 | get_recon_height (ui32 comp_num) const |
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] |
Definition at line 151 of file ojph_params_local.h.
|
inline |
|
inline |
Definition at line 164 of file ojph_params_local.h.
|
privatedelete |
|
inline |
Definition at line 192 of file ojph_params_local.h.
References OJPH_ERROR, XOsiz, Xsiz, XTOsiz, XTsiz, YOsiz, Ysiz, YTOsiz, and YTsiz.
Referenced by ojph::local::codestream::write_headers().
Definition at line 208 of file ojph_params_local.h.
Referenced by ojph::local::param_qcd::check_validity(), ojph::local::tile::finalize_alloc(), and ojph::param_siz::get_bit_depth().
Definition at line 218 of file ojph_params_local.h.
Referenced by ojph::local::param_cod::check_validity(), ojph::local::tile::finalize_alloc(), ojph::local::tile_comp::finalize_alloc(), ojph::param_siz::get_downsampling(), and ojph::local::tile::pre_alloc().
Definition at line 238 of file ojph_params_local.h.
References cptr, get_num_components(), ojph_div_ceil, YOsiz, and Ysiz.
Referenced by ojph::local::codestream::finalize_alloc().
|
inline |
Definition at line 207 of file ojph_params_local.h.
References Csiz.
Referenced by ojph::local::param_cod::check_validity(), ojph::local::param_qcd::check_validity(), ojph::local::tile::finalize_alloc(), get_height(), get_recon_height(), get_recon_width(), get_width(), ojph::local::tile::pre_alloc(), and ojph::local::codestream::read_headers().
Definition at line 252 of file ojph_params_local.h.
References cptr, get_num_components(), ojph_div_ceil, skipped_resolutions, YOsiz, and Ysiz.
Referenced by ojph::local::codestream::finalize_alloc(), and ojph::param_siz::get_recon_height().
Definition at line 245 of file ojph_params_local.h.
References cptr, get_num_components(), ojph_div_ceil, skipped_resolutions, XOsiz, and Xsiz.
Referenced by ojph::local::codestream::finalize_alloc(), ojph::param_siz::get_recon_width(), and ojph::local::codestream::pre_alloc().
Definition at line 231 of file ojph_params_local.h.
References cptr, get_num_components(), ojph_div_ceil, XOsiz, and Xsiz.
Referenced by ojph::local::codestream::finalize_alloc().
|
inline |
Definition at line 213 of file ojph_params_local.h.
Referenced by ojph::local::param_qcd::check_validity(), ojph::local::tile::finalize_alloc(), ojph::param_siz::is_signed(), and set_comp_info().
void ojph::local::param_siz::read | ( | infile_base * | file | ) |
Definition at line 585 of file ojph_params.cpp.
References cptr, Csiz, Lsiz, OJPH_ERROR, OJPH_WARN, old_Csiz, ojph::infile_base::read(), Rsiz, ojph::local::siz_comp_info::SSiz, store, ojph::local::swap_byte(), XOsiz, ojph::local::siz_comp_info::XRsiz, Xsiz, XTOsiz, XTsiz, YOsiz, ojph::local::siz_comp_info::YRsiz, Ysiz, YTOsiz, and YTsiz.
Referenced by ojph::local::codestream::read_headers().
|
inline |
Definition at line 182 of file ojph_params_local.h.
References cptr, Csiz, is_signed(), ojph::local::siz_comp_info::SSiz, ojph::point::x, ojph::local::siz_comp_info::XRsiz, ojph::point::y, and ojph::local::siz_comp_info::YRsiz.
Referenced by ojph::param_siz::set_component().
|
inline |
Definition at line 169 of file ojph_params_local.h.
References cptr, Csiz, old_Csiz, and store.
Referenced by ojph::param_siz::set_num_components().
|
inline |
Definition at line 227 of file ojph_params_local.h.
References skipped_resolutions.
Referenced by ojph::local::codestream::restrict_input_resolution().
bool ojph::local::param_siz::write | ( | outfile_base * | file | ) |
Definition at line 540 of file ojph_params.cpp.
References cptr, Csiz, Lsiz, Rsiz, ojph::local::SIZ, ojph::local::siz_comp_info::SSiz, ojph::local::swap_byte(), ojph::outfile_base::write(), XOsiz, ojph::local::siz_comp_info::XRsiz, Xsiz, XTOsiz, XTsiz, YOsiz, ojph::local::siz_comp_info::YRsiz, Ysiz, YTOsiz, and YTsiz.
Referenced by ojph::local::codestream::write_headers().
|
private |
Definition at line 272 of file ojph_params_local.h.
Referenced by get_bit_depth(), get_downsampling(), get_height(), get_recon_height(), get_recon_width(), get_width(), is_signed(), param_siz(), read(), set_comp_info(), set_num_components(), write(), and ~param_siz().
|
private |
Definition at line 271 of file ojph_params_local.h.
Referenced by get_bit_depth(), get_downsampling(), get_num_components(), ojph::param_siz::get_num_components(), is_signed(), read(), set_comp_info(), set_num_components(), and write().
|
private |
Definition at line 261 of file ojph_params_local.h.
|
private |
Definition at line 276 of file ojph_params_local.h.
Referenced by param_siz(), read(), and set_num_components().
|
private |
Definition at line 262 of file ojph_params_local.h.
Referenced by param_siz(), read(), and write().
|
private |
Definition at line 275 of file ojph_params_local.h.
Referenced by get_recon_height(), get_recon_width(), and set_skipped_resolutions().
|
private |
Definition at line 277 of file ojph_params_local.h.
Referenced by param_siz(), read(), set_num_components(), and ~param_siz().
|
private |
Definition at line 265 of file ojph_params_local.h.
Referenced by check_validity(), ojph::param_siz::get_image_offset(), get_recon_width(), get_width(), read(), ojph::param_siz::set_image_offset(), and write().
|
private |
Definition at line 263 of file ojph_params_local.h.
Referenced by check_validity(), ojph::param_siz::get_image_extent(), get_recon_width(), get_width(), read(), ojph::param_siz::set_image_extent(), and write().
|
private |
Definition at line 269 of file ojph_params_local.h.
Referenced by check_validity(), ojph::param_siz::get_tile_offset(), read(), ojph::param_siz::set_tile_offset(), and write().
|
private |
Definition at line 267 of file ojph_params_local.h.
Referenced by check_validity(), ojph::param_siz::get_tile_size(), read(), ojph::param_siz::set_tile_size(), and write().
|
private |
Definition at line 266 of file ojph_params_local.h.
Referenced by check_validity(), get_height(), ojph::param_siz::get_image_offset(), get_recon_height(), read(), ojph::param_siz::set_image_offset(), and write().
|
private |
Definition at line 264 of file ojph_params_local.h.
Referenced by check_validity(), get_height(), ojph::param_siz::get_image_extent(), get_recon_height(), read(), ojph::param_siz::set_image_extent(), and write().
|
private |
Definition at line 270 of file ojph_params_local.h.
Referenced by check_validity(), ojph::param_siz::get_tile_offset(), read(), ojph::param_siz::set_tile_offset(), and write().
|
private |
Definition at line 268 of file ojph_params_local.h.
Referenced by check_validity(), ojph::param_siz::get_tile_size(), read(), ojph::param_siz::set_tile_size(), and write().