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 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_atkatk
 
param_atk atk_store [3]
 
mem_fixed_allocatorallocator
 
mem_elastic_allocatorelastic_alloc
 
outfile_baseoutfile
 
infile_baseinfile
 

Detailed Description

Definition at line 68 of file ojph_codestream_local.h.

Constructor & Destructor Documentation

◆ codestream()

◆ ~codestream()

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

Definition at line 96 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 83 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 79 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 866 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 85 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 97 of file ojph_codestream_local.h.

References outfile.

◆ get_nlt()

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

Definition at line 93 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 124 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 117 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 116 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 732 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_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::INFO, ojph::local::param_cod::is_employing_color_transform(), ojph::local::param_siz::link(), ojph::local::NLT, nlt, ojph::NO_MSG, num_comps, ojph::local::param_cod::OJPH_COD_UNKNOWN, OJPH_ERROR, OJPH_INFO, 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, ojph::local::param_cod::update_atk(), and ojph::WARN.

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

◆ request_tlm_marker()

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

Definition at line 1099 of file ojph_codestream_local.cpp.

References need_tlm.

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

◆ 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 1075 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 1093 of file ojph_codestream_local.cpp.

References tilepart_div.

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

◆ 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 164 of file ojph_codestream_local.h.

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

◆ atk_store

param_atk ojph::local::codestream::atk_store[3]
private

Definition at line 165 of file ojph_codestream_local.h.

Referenced by codestream().

◆ cap

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

Definition at line 157 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 146 of file ojph_codestream_local.h.

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

◆ cur_comp

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

Definition at line 136 of file ojph_codestream_local.h.

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

◆ cur_line

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

Definition at line 135 of file ojph_codestream_local.h.

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

◆ cur_tile_row

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

Definition at line 137 of file ojph_codestream_local.h.

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

◆ dfs

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

Definition at line 163 of file ojph_codestream_local.h.

Referenced by access_dfs(), and read_headers().

◆ elastic_alloc

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

Definition at line 169 of file ojph_codestream_local.h.

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

◆ employ_color_transform

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

Definition at line 148 of file ojph_codestream_local.h.

Referenced by codestream(), and finalize_alloc().

◆ infile

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

Definition at line 171 of file ojph_codestream_local.h.

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

◆ lines

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

Definition at line 144 of file ojph_codestream_local.h.

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

◆ 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 142 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 132 of file ojph_codestream_local.h.

Referenced by finalize_alloc(), and get_precinct_scratch().

◆ precinct_scratch_needed_bytes

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

Definition at line 131 of file ojph_codestream_local.h.

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

◆ profile

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

Definition at line 150 of file ojph_codestream_local.h.

Referenced by codestream(), get_profile(), 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 147 of file ojph_codestream_local.h.

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

◆ resilient

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

Definition at line 138 of file ojph_codestream_local.h.

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

◆ 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 143 of file ojph_codestream_local.h.

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

◆ tlm

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

Definition at line 159 of file ojph_codestream_local.h.

Referenced by finalize_alloc(), and flush().


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