OpenJPH
Open-source implementation of JPEG2000 Part-15
|
#include <ojph_params.h>
Public Member Functions | |
OJPH_EXPORT | param_siz (local::param_siz *p) |
OJPH_EXPORT void | set_image_extent (point extent) |
OJPH_EXPORT void | set_tile_size (size s) |
OJPH_EXPORT void | set_image_offset (point offset) |
OJPH_EXPORT void | set_tile_offset (point offset) |
OJPH_EXPORT void | set_num_components (ui32 num_comps) |
OJPH_EXPORT void | set_component (ui32 comp_num, const point &downsampling, ui32 bit_depth, bool is_signed) |
OJPH_EXPORT point | get_image_extent () const |
OJPH_EXPORT point | get_image_offset () const |
OJPH_EXPORT size | get_tile_size () const |
OJPH_EXPORT point | get_tile_offset () const |
OJPH_EXPORT ui32 | get_num_components () const |
OJPH_EXPORT ui32 | get_bit_depth (ui32 comp_num) const |
OJPH_EXPORT bool | is_signed (ui32 comp_num) const |
OJPH_EXPORT point | get_downsampling (ui32 comp_num) const |
OJPH_EXPORT ui32 | get_recon_width (ui32 comp_num) const |
OJPH_EXPORT ui32 | get_recon_height (ui32 comp_num) const |
Private Attributes | |
local::param_siz * | state |
Definition at line 58 of file ojph_params.h.
|
inline |
Definition at line 62 of file ojph_params.h.
Definition at line 130 of file ojph_params.cpp.
References ojph::local::param_siz::get_bit_depth(), and state.
Referenced by ojph::local::codestream::check_broadcast_validity(), ojph::local::codestream::check_imf_validity(), get_j2c_bit_depth(), and main().
Definition at line 142 of file ojph_params.cpp.
References ojph::local::param_siz::get_downsampling(), and state.
Referenced by ojph::local::codestream::check_broadcast_validity(), ojph::local::codestream::check_imf_validity(), get_j2c_downsampling_x(), get_j2c_downsampling_y(), and main().
point ojph::param_siz::get_image_extent | ( | ) | const |
Definition at line 100 of file ojph_params.cpp.
References state, ojph::local::param_siz::Xsiz, and ojph::local::param_siz::Ysiz.
Referenced by ojph::local::codestream::check_broadcast_validity(), ojph::local::codestream::check_imf_validity(), ojph::local::codestream::finalize_alloc(), main(), and ojph::local::codestream::pre_alloc().
point ojph::param_siz::get_image_offset | ( | ) | const |
Definition at line 106 of file ojph_params.cpp.
References state, ojph::local::param_siz::XOsiz, and ojph::local::param_siz::YOsiz.
Referenced by ojph::local::codestream::check_broadcast_validity(), ojph::local::codestream::check_imf_validity(), ojph::local::codestream::finalize_alloc(), main(), and ojph::local::codestream::pre_alloc().
ui32 ojph::param_siz::get_num_components | ( | ) | const |
Definition at line 124 of file ojph_params.cpp.
References ojph::local::param_siz::Csiz, and state.
Referenced by ojph::local::codestream::check_broadcast_validity(), ojph::local::codestream::check_imf_validity(), ojph::local::codestream::finalize_alloc(), get_j2c_bit_depth(), get_j2c_downsampling_x(), get_j2c_downsampling_y(), get_j2c_is_signed(), get_j2c_num_components(), main(), and ojph::local::codestream::pre_alloc().
Definition at line 154 of file ojph_params.cpp.
References ojph::local::param_siz::get_recon_height(), and state.
Referenced by get_j2c_height(), and main().
Definition at line 148 of file ojph_params.cpp.
References ojph::local::param_siz::get_recon_width(), and state.
Referenced by get_j2c_width(), and main().
point ojph::param_siz::get_tile_offset | ( | ) | const |
Definition at line 118 of file ojph_params.cpp.
References state, ojph::local::param_siz::XTOsiz, and ojph::local::param_siz::YTOsiz.
Referenced by ojph::local::codestream::check_broadcast_validity(), ojph::local::codestream::check_imf_validity(), ojph::local::codestream::finalize_alloc(), and ojph::local::codestream::pre_alloc().
size ojph::param_siz::get_tile_size | ( | ) | const |
Definition at line 112 of file ojph_params.cpp.
References state, ojph::local::param_siz::XTsiz, and ojph::local::param_siz::YTsiz.
Referenced by ojph::local::codestream::check_broadcast_validity(), ojph::local::codestream::check_imf_validity(), ojph::local::codestream::finalize_alloc(), and ojph::local::codestream::pre_alloc().
bool ojph::param_siz::is_signed | ( | ui32 | comp_num | ) | const |
Definition at line 136 of file ojph_params.cpp.
References ojph::local::param_siz::is_signed(), and state.
Referenced by ojph::local::codestream::check_broadcast_validity(), ojph::local::codestream::check_imf_validity(), get_j2c_is_signed(), main(), and set_component().
void ojph::param_siz::set_component | ( | ui32 | comp_num, |
const point & | downsampling, | ||
ui32 | bit_depth, | ||
bool | is_signed | ||
) |
Definition at line 93 of file ojph_params.cpp.
References is_signed(), ojph::local::param_siz::set_comp_info(), and state.
Referenced by main().
void ojph::param_siz::set_image_extent | ( | point | extent | ) |
Definition at line 59 of file ojph_params.cpp.
References state, ojph::point::x, ojph::local::param_siz::Xsiz, ojph::point::y, and ojph::local::param_siz::Ysiz.
Referenced by main().
void ojph::param_siz::set_image_offset | ( | point | offset | ) |
Definition at line 73 of file ojph_params.cpp.
References state, ojph::point::x, ojph::local::param_siz::XOsiz, ojph::point::y, and ojph::local::param_siz::YOsiz.
Referenced by main().
void ojph::param_siz::set_num_components | ( | ui32 | num_comps | ) |
Definition at line 87 of file ojph_params.cpp.
References ojph::local::param_siz::set_num_components(), and state.
Referenced by main().
void ojph::param_siz::set_tile_offset | ( | point | offset | ) |
Definition at line 80 of file ojph_params.cpp.
References state, ojph::point::x, ojph::local::param_siz::XTOsiz, ojph::point::y, and ojph::local::param_siz::YTOsiz.
Referenced by main().
void ojph::param_siz::set_tile_size | ( | size | s | ) |
Definition at line 66 of file ojph_params.cpp.
References ojph::size::h, state, ojph::size::w, ojph::local::param_siz::XTsiz, and ojph::local::param_siz::YTsiz.
Referenced by main().
|
private |
Definition at line 104 of file ojph_params.h.
Referenced by get_bit_depth(), get_downsampling(), get_image_extent(), get_image_offset(), get_num_components(), get_recon_height(), get_recon_width(), get_tile_offset(), get_tile_size(), is_signed(), set_component(), set_image_extent(), set_image_offset(), set_num_components(), set_tile_offset(), and set_tile_size().