OpenJPH
Open-source implementation of JPEG2000 Part-15
Loading...
Searching...
No Matches
ojph::local::codestream Class Reference

#include <ojph_codestream_local.h>

Public Member Functions

 codestream ()
 ~codestream ()
void restart ()
void pre_alloc ()
void finalize_alloc ()
ojph::param_siz access_siz ()
const param_sizget_siz ()
ojph::param_cod access_cod ()
const param_codget_cod ()
const param_codget_coc (ui32 comp_num)
const param_qcdaccess_qcd ()
const param_dfsaccess_dfs ()
const param_nltget_nlt ()
mem_fixed_allocatorget_allocator ()
mem_elastic_allocatorget_elastic_alloc ()
outfile_baseget_file ()
line_bufexchange (line_buf *line, ui32 &next_component)
void write_headers (outfile_base *file, const comment_exchange *comments, ui32 num_comments)
void enable_resilience ()
bool is_resilient ()
void read_headers (infile_base *file)
void restrict_input_resolution (ui32 skipped_res_for_data, ui32 skipped_res_for_recon)
void read ()
void set_planar (int planar)
void set_profile (const char *s)
void set_tilepart_divisions (ui32 value)
void request_tlm_marker (bool needed)
line_bufpull (ui32 &comp_num)
void flush ()
void close ()
bool is_planar () const
si32 get_profile () const
ui32 get_tilepart_div () const
bool is_tlm_needed () const
void check_imf_validity ()
void check_broadcast_validity ()
ui8get_precinct_scratch ()
ui32 get_skipped_res_for_recon ()
ui32 get_skipped_res_for_read ()

Private Attributes

ui32 precinct_scratch_needed_bytes
ui8precinct_scratch
ui32 cur_line
ui32 cur_comp
ui32 cur_tile_row
bool resilient
ui32 skipped_res_for_read
ui32 skipped_res_for_recon
size num_tiles
tiletiles
line_buflines
ui32 num_comps
sizecomp_size
sizerecon_comp_size
bool employ_color_transform
int planar
int profile
ui32 tilepart_div
bool need_tlm
param_siz siz
param_cod cod
param_cap cap
param_qcd qcd
param_tlm tlm
param_nlt nlt
param_dfs dfs
param_atk atk
mem_fixed_allocatorallocator
mem_elastic_allocatorelastic_alloc
outfile_baseoutfile
infile_baseinfile

Detailed Description

Definition at line 64 of file ojph_codestream_local.h.

Constructor & Destructor Documentation

◆ codestream()

◆ ~codestream()

ojph::local::codestream::~codestream ( )

Definition at line 69 of file ojph_codestream_local.cpp.

References allocator, and elastic_alloc.

Member Function Documentation

◆ access_cod()

ojph::param_cod ojph::local::codestream::access_cod ( )
inline

Definition at line 81 of file ojph_codestream_local.h.

References cod.

Referenced by ojph::local::tile::finalize_alloc().

◆ access_dfs()

const param_dfs * ojph::local::codestream::access_dfs ( )
inline

◆ access_qcd()

const param_qcd * ojph::local::codestream::access_qcd ( )
inline

◆ access_siz()

ojph::param_siz ojph::local::codestream::access_siz ( )
inline

Definition at line 77 of file ojph_codestream_local.h.

References siz.

Referenced by finalize_alloc(), and pre_alloc().

◆ check_broadcast_validity()

◆ check_imf_validity()

◆ close()

void ojph::local::codestream::close ( )

◆ enable_resilience()

void ojph::local::codestream::enable_resilience ( )

Definition at line 914 of file ojph_codestream_local.cpp.

References infile, OJPH_ERROR, and resilient.

Referenced by ojph::codestream::enable_resilience().

◆ exchange()

line_buf * ojph::local::codestream::exchange ( line_buf * line,
ui32 & next_component )

◆ finalize_alloc()

◆ flush()

◆ get_allocator()

◆ get_coc()

◆ get_cod()

const param_cod * ojph::local::codestream::get_cod ( )
inline

Definition at line 83 of file ojph_codestream_local.h.

References cod.

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

◆ get_elastic_alloc()

mem_elastic_allocator * ojph::local::codestream::get_elastic_alloc ( )
inline

◆ get_file()

outfile_base * ojph::local::codestream::get_file ( )
inline

Definition at line 95 of file ojph_codestream_local.h.

References outfile.

◆ get_nlt()

const param_nlt * ojph::local::codestream::get_nlt ( )
inline

Definition at line 91 of file ojph_codestream_local.h.

References nlt.

Referenced by ojph::local::tile::finalize_alloc().

◆ get_precinct_scratch()

ui8 * ojph::local::codestream::get_precinct_scratch ( )
inline

Definition at line 122 of file ojph_codestream_local.h.

References precinct_scratch.

Referenced by ojph::local::resolution::finalize_alloc().

◆ get_profile()

si32 ojph::local::codestream::get_profile ( ) const
inline

Definition at line 115 of file ojph_codestream_local.h.

References profile.

Referenced by ojph::local::tile::finalize_alloc().

◆ get_siz()

const param_siz * ojph::local::codestream::get_siz ( )
inline

◆ get_skipped_res_for_read()

ui32 ojph::local::codestream::get_skipped_res_for_read ( )
inline

◆ get_skipped_res_for_recon()

ui32 ojph::local::codestream::get_skipped_res_for_recon ( )
inline

◆ get_tilepart_div()

◆ is_planar()

bool ojph::local::codestream::is_planar ( ) const
inline

Definition at line 114 of file ojph_codestream_local.h.

References planar.

Referenced by ojph::codestream::is_planar().

◆ is_resilient()

bool ojph::local::codestream::is_resilient ( )
inline

◆ is_tlm_needed()

bool ojph::local::codestream::is_tlm_needed ( ) const
inline

◆ pre_alloc()

◆ pull()

line_buf * ojph::local::codestream::pull ( ui32 & comp_num)

◆ read()

◆ read_headers()

void ojph::local::codestream::read_headers ( infile_base * file)

Definition at line 769 of file ojph_codestream_local.cpp.

References ojph::local::param_cod::add_coc_object(), ojph::local::param_qcd::add_qcc_object(), ojph::local::ATK, atk, ojph::local::CAP, cap, ojph::local::COC, ojph::local::COD, cod, ojph::local::COM, ojph::local::CPF, ojph::local::CRG, ojph::local::DFS, dfs, ojph::local::param_dfs::exists(), ojph::local::find_marker(), ojph::local::param_nlt::find_unsupported_nlt(), ojph::local::param_cod::get_coc(), ojph::local::param_cod::get_comp_idx(), ojph::local::param_qcd::get_comp_idx(), ojph::local::param_siz::get_num_components(), ojph::param_cod::get_num_layers(), ojph::local::param_qcd::get_qcc(), infile, ojph::local::param_cod::is_employing_color_transform(), ojph::local::param_siz::link(), ojph::local::NLT, nlt, num_comps, ojph::local::param_cod::OJPH_COD_UNKNOWN, OJPH_ERROR, OJPH_INFO, ojph::OJPH_MSG_INFO, ojph::OJPH_MSG_NO_MSG, ojph::OJPH_MSG_WARN, ojph::local::param_qcd::OJPH_QCD_UNKNOWN, planar, ojph::local::PLM, ojph::local::POC, ojph::local::PPM, ojph::local::PRF, ojph::local::QCC, ojph::local::QCD, qcd, ojph::local::param_atk::read(), ojph::local::param_cap::read(), ojph::local::param_cod::read(), ojph::local::param_dfs::read(), ojph::local::param_nlt::read(), ojph::local::param_qcd::read(), ojph::local::param_siz::read(), ojph::local::param_cod::read_coc(), ojph::local::param_qcd::read_qcc(), ojph::local::RGN, ojph::local::SIZ, siz, ojph::local::skip_marker(), ojph::local::SOC, ojph::local::SOT, ojph::local::TLM, and ojph::local::param_cod::update_atk().

Referenced by ojph::codestream::read_headers().

◆ request_tlm_marker()

void ojph::local::codestream::request_tlm_marker ( bool needed)

Definition at line 1153 of file ojph_codestream_local.cpp.

References need_tlm.

Referenced by ojph::codestream::request_tlm_marker().

◆ restart()

◆ restrict_input_resolution()

void ojph::local::codestream::restrict_input_resolution ( ui32 skipped_res_for_data,
ui32 skipped_res_for_recon )

◆ set_planar()

void ojph::local::codestream::set_planar ( int planar)

Definition at line 1129 of file ojph_codestream_local.cpp.

References planar.

Referenced by ojph::codestream::set_planar().

◆ set_profile()

void ojph::local::codestream::set_profile ( const char * s)

◆ set_tilepart_divisions()

void ojph::local::codestream::set_tilepart_divisions ( ui32 value)

Definition at line 1147 of file ojph_codestream_local.cpp.

References tilepart_div.

Referenced by ojph::codestream::set_tilepart_divisions().

◆ write_headers()

void ojph::local::codestream::write_headers ( outfile_base * file,
const comment_exchange * comments,
ui32 num_comments )

Definition at line 556 of file ojph_codestream_local.cpp.

References atk, cap, check_broadcast_validity(), check_imf_validity(), ojph::local::param_cap::check_validity(), ojph::local::param_cod::check_validity(), ojph::local::param_nlt::check_validity(), ojph::local::param_qcd::check_validity(), ojph::local::param_siz::check_validity(), cod, ojph::local::COM, ojph::comment_exchange::data, finalize_alloc(), ojph::local::param_siz::get_image_extent(), ojph::local::param_siz::get_image_offset(), ojph::param_cod::get_progression_order(), ojph::local::param_siz::get_tile_size(), ojph::size::h, ojph::local::param_cod::is_employing_color_transform(), ojph::comment_exchange::len, nlt, num_comps, OJPH_ERROR, OJPH_INFO, OJPH_INT_TO_STRING, ojph::OJPH_PN_BROADCAST, ojph::OJPH_PN_IMF, ojph::OJPH_PO_CPRL, ojph::OJPH_PO_LRCP, ojph::OJPH_PO_PCRL, ojph::OJPH_PO_RLCP, ojph::OJPH_PO_RPCL, ojph::OJPH_TILEPART_COMPONENTS, ojph::OJPH_TILEPART_RESOLUTIONS, OJPH_WARN, OPENJPH_VERSION_MAJOR, OPENJPH_VERSION_MINOR, OPENJPH_VERSION_PATCH, outfile, planar, pre_alloc(), profile, qcd, ojph::local::param_siz::set_cod(), ojph::local::param_siz::set_tile_size(), siz, ojph::local::SOC, tilepart_div, ojph::local::param_cod::update_atk(), ojph::size::w, ojph::local::param_cap::write(), ojph::local::param_cod::write(), ojph::local::param_nlt::write(), ojph::local::param_qcd::write(), ojph::local::param_siz::write(), ojph::outfile_base::write(), ojph::local::param_cod::write_coc(), ojph::local::param_qcd::write_qcc(), ojph::point::x, and ojph::point::y.

Referenced by ojph::codestream::write_headers().

Member Data Documentation

◆ allocator

mem_fixed_allocator* ojph::local::codestream::allocator
private

◆ atk

param_atk ojph::local::codestream::atk
private

Definition at line 162 of file ojph_codestream_local.h.

Referenced by read_headers(), restart(), and write_headers().

◆ cap

param_cap ojph::local::codestream::cap
private

Definition at line 155 of file ojph_codestream_local.h.

Referenced by read_headers(), and write_headers().

◆ cod

◆ comp_size

size* ojph::local::codestream::comp_size
private

Definition at line 144 of file ojph_codestream_local.h.

Referenced by exchange(), finalize_alloc(), and restart().

◆ cur_comp

ui32 ojph::local::codestream::cur_comp
private

Definition at line 134 of file ojph_codestream_local.h.

Referenced by exchange(), finalize_alloc(), pull(), and restart().

◆ cur_line

ui32 ojph::local::codestream::cur_line
private

Definition at line 133 of file ojph_codestream_local.h.

Referenced by exchange(), finalize_alloc(), pull(), and restart().

◆ cur_tile_row

ui32 ojph::local::codestream::cur_tile_row
private

Definition at line 135 of file ojph_codestream_local.h.

Referenced by exchange(), pull(), and restart().

◆ dfs

param_dfs ojph::local::codestream::dfs
private

Definition at line 161 of file ojph_codestream_local.h.

Referenced by access_dfs(), read_headers(), and restart().

◆ elastic_alloc

mem_elastic_allocator* ojph::local::codestream::elastic_alloc
private

Definition at line 166 of file ojph_codestream_local.h.

Referenced by codestream(), get_elastic_alloc(), restart(), and ~codestream().

◆ employ_color_transform

bool ojph::local::codestream::employ_color_transform
private

Definition at line 146 of file ojph_codestream_local.h.

Referenced by finalize_alloc(), and restart().

◆ infile

infile_base* ojph::local::codestream::infile
private

Definition at line 168 of file ojph_codestream_local.h.

Referenced by close(), enable_resilience(), read(), read_headers(), and restart().

◆ lines

line_buf* ojph::local::codestream::lines
private

Definition at line 142 of file ojph_codestream_local.h.

Referenced by exchange(), finalize_alloc(), pull(), and restart().

◆ need_tlm

bool ojph::local::codestream::need_tlm
private

◆ nlt

param_nlt ojph::local::codestream::nlt
private

◆ num_comps

ui32 ojph::local::codestream::num_comps
private

◆ num_tiles

size ojph::local::codestream::num_tiles
private

Definition at line 140 of file ojph_codestream_local.h.

Referenced by exchange(), finalize_alloc(), flush(), pre_alloc(), pull(), and read().

◆ outfile

outfile_base* ojph::local::codestream::outfile
private

◆ planar

int ojph::local::codestream::planar
private

◆ precinct_scratch

ui8* ojph::local::codestream::precinct_scratch
private

Definition at line 130 of file ojph_codestream_local.h.

Referenced by codestream(), finalize_alloc(), and get_precinct_scratch().

◆ precinct_scratch_needed_bytes

ui32 ojph::local::codestream::precinct_scratch_needed_bytes
private

Definition at line 129 of file ojph_codestream_local.h.

Referenced by finalize_alloc(), pre_alloc(), and restart().

◆ profile

int ojph::local::codestream::profile
private

Definition at line 148 of file ojph_codestream_local.h.

Referenced by get_profile(), restart(), set_profile(), and write_headers().

◆ qcd

param_qcd ojph::local::codestream::qcd
private

◆ recon_comp_size

size* ojph::local::codestream::recon_comp_size
private

Definition at line 145 of file ojph_codestream_local.h.

Referenced by finalize_alloc(), pull(), and restart().

◆ resilient

bool ojph::local::codestream::resilient
private

Definition at line 136 of file ojph_codestream_local.h.

Referenced by enable_resilience(), is_resilient(), read(), and restart().

◆ siz

◆ skipped_res_for_read

ui32 ojph::local::codestream::skipped_res_for_read
private

◆ skipped_res_for_recon

ui32 ojph::local::codestream::skipped_res_for_recon
private

◆ tilepart_div

ui32 ojph::local::codestream::tilepart_div
private

◆ tiles

tile* ojph::local::codestream::tiles
private

Definition at line 141 of file ojph_codestream_local.h.

Referenced by exchange(), finalize_alloc(), flush(), pull(), read(), and restart().

◆ tlm

param_tlm ojph::local::codestream::tlm
private

Definition at line 157 of file ojph_codestream_local.h.

Referenced by finalize_alloc(), and flush().


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