OpenJPH
Open-source implementation of JPEG2000 Part-15
|
#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_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 |
Definition at line 165 of file ojph_params_local.h.
anonymous enum : ui16 |
Enumerator | |
---|---|
RSIZ_NLT_FLAG | |
RSIZ_HT_FLAG | |
RSIZ_EXT_FLAG |
Definition at line 170 of file ojph_params_local.h.
|
inline |
Definition at line 177 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.
|
inline |
Definition at line 191 of file ojph_params_local.h.
|
privatedelete |
|
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().
Definition at line 237 of file ojph_params_local.h.
Referenced by ojph::local::param_qcd::check_validity(), ojph::local::param_nlt::check_validity(), ojph::local::tile::finalize_alloc(), ojph::param_siz::get_bit_depth(), and ojph::local::param_cod::propose_precision().
Definition at line 247 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 273 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 236 of file ojph_params_local.h.
References Csiz.
Referenced by ojph::local::param_cod::check_validity(), ojph::local::param_qcd::check_validity(), ojph::local::param_nlt::check_validity(), ojph::local::tile::finalize_alloc(), get_height(), get_recon_downsampling(), get_recon_size(), get_width(), ojph::local::tile::pre_alloc(), and ojph::local::codestream::read_headers().
Definition at line 688 of file ojph_params.cpp.
References cod, cptr, dfs, ojph::local::param_cod::get_cod(), ojph::local::param_dfs::get_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().
Definition at line 285 of file ojph_params_local.h.
References get_recon_size(), and ojph::point::y.
Referenced by ojph::local::codestream::finalize_alloc(), and ojph::param_siz::get_recon_height().
Definition at line 704 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().
Definition at line 283 of file ojph_params_local.h.
References get_recon_size(), and ojph::point::x.
Referenced by ojph::local::codestream::finalize_alloc(), ojph::param_siz::get_recon_width(), and ojph::local::codestream::pre_alloc().
Definition at line 265 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 289 of file ojph_params_local.h.
References dfs_support_needed.
|
inline |
Definition at line 242 of file ojph_params_local.h.
Referenced by ojph::local::param_qcd::check_validity(), ojph::local::param_nlt::check_validity(), ojph::local::tile::finalize_alloc(), ojph::param_siz::is_signed(), and set_comp_info().
|
inline |
Definition at line 288 of file ojph_params_local.h.
References ws_kern_support_needed.
|
inline |
Definition at line 256 of file ojph_params_local.h.
References cod.
Referenced by ojph::local::codestream::read_headers().
|
inline |
Definition at line 259 of file ojph_params_local.h.
References dfs.
void ojph::local::param_siz::read | ( | infile_base * | file | ) |
Definition at line 621 of file ojph_params.cpp.
References cptr, Csiz, dfs_support_needed, Lsiz, OJPH_ERROR, OJPH_WARN, old_Csiz, ojph::infile_base::read(), Rsiz, ojph::local::siz_comp_info::SSiz, store, ojph::local::swap_byte(), ws_kern_support_needed, 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 293 of file ojph_params_local.h.
References Rsiz.
|
inline |
Definition at line 209 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 196 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 291 of file ojph_params_local.h.
References Rsiz.
Referenced by ojph::local::param_nlt::check_validity().
|
inline |
Definition at line 262 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 576 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 316 of file ojph_params_local.h.
Referenced by check_validity(), get_recon_downsampling(), link(), and param_siz().
|
private |
Definition at line 308 of file ojph_params_local.h.
Referenced by get_bit_depth(), get_downsampling(), get_height(), get_recon_downsampling(), get_width(), is_signed(), param_siz(), read(), set_comp_info(), set_num_components(), write(), and ~param_siz().
|
private |
Definition at line 307 of file ojph_params_local.h.
Referenced by get_bit_depth(), get_downsampling(), get_num_components(), ojph::param_siz::get_num_components(), is_signed(), param_siz(), read(), set_comp_info(), set_num_components(), and write().
|
private |
Definition at line 317 of file ojph_params_local.h.
Referenced by get_recon_downsampling(), link(), and param_siz().
|
private |
Definition at line 315 of file ojph_params_local.h.
Referenced by is_dfs_support_needed(), param_siz(), and read().
|
private |
Definition at line 297 of file ojph_params_local.h.
Referenced by param_siz(), read(), and write().
|
private |
Definition at line 312 of file ojph_params_local.h.
Referenced by param_siz(), read(), and set_num_components().
|
private |
Definition at line 298 of file ojph_params_local.h.
Referenced by param_siz(), read(), reset_Rsiz_flag(), set_Rsiz_flag(), and write().
|
private |
Definition at line 311 of file ojph_params_local.h.
Referenced by get_recon_downsampling(), param_siz(), and set_skipped_resolutions().
|
private |
Definition at line 313 of file ojph_params_local.h.
Referenced by param_siz(), read(), set_num_components(), and ~param_siz().
|
private |
Definition at line 314 of file ojph_params_local.h.
Referenced by is_ws_kern_support_needed(), param_siz(), and read().
|
private |
Definition at line 301 of file ojph_params_local.h.
Referenced by check_validity(), ojph::param_siz::get_image_offset(), get_recon_size(), get_width(), param_siz(), read(), ojph::param_siz::set_image_offset(), and write().
|
private |
Definition at line 299 of file ojph_params_local.h.
Referenced by check_validity(), ojph::param_siz::get_image_extent(), get_recon_size(), get_width(), param_siz(), read(), ojph::param_siz::set_image_extent(), and write().
|
private |
Definition at line 305 of file ojph_params_local.h.
Referenced by check_validity(), ojph::param_siz::get_tile_offset(), param_siz(), read(), ojph::param_siz::set_tile_offset(), and write().
|
private |
Definition at line 303 of file ojph_params_local.h.
Referenced by check_validity(), ojph::param_siz::get_tile_size(), param_siz(), read(), ojph::param_siz::set_tile_size(), and write().
|
private |
Definition at line 302 of file ojph_params_local.h.
Referenced by check_validity(), get_height(), ojph::param_siz::get_image_offset(), get_recon_size(), param_siz(), read(), ojph::param_siz::set_image_offset(), and write().
|
private |
Definition at line 300 of file ojph_params_local.h.
Referenced by check_validity(), get_height(), ojph::param_siz::get_image_extent(), get_recon_size(), param_siz(), read(), ojph::param_siz::set_image_extent(), and write().
|
private |
Definition at line 306 of file ojph_params_local.h.
Referenced by check_validity(), ojph::param_siz::get_tile_offset(), param_siz(), read(), ojph::param_siz::set_tile_offset(), and write().
|
private |
Definition at line 304 of file ojph_params_local.h.
Referenced by check_validity(), ojph::param_siz::get_tile_size(), param_siz(), read(), ojph::param_siz::set_tile_size(), and write().