OpenJPH
Open-source implementation of JPEG2000 Part-15
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 ()
 
param_qcdaccess_qcd (ui32 comp_num)
 
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
 
int used_qcc_fields
 
param_qcc qcc_store [4]
 
param_qccqcc
 
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 93 of file ojph_codestream_local.cpp.

References allocator, elastic_alloc, qcc, and qcc_store.

Member Function Documentation

◆ access_cod()

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

◆ access_qcd()

param_qcd * ojph::local::codestream::access_qcd ( ui32  comp_num)
inline

Definition at line 87 of file ojph_codestream_local.h.

References qcc, qcd, and used_qcc_fields.

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

◆ 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 841 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_cod()

◆ 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_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()

ui32 ojph::local::codestream::get_tilepart_div ( ) const
inline

◆ 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

Definition at line 119 of file ojph_codestream_local.h.

References need_tlm.

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

◆ pre_alloc()

◆ pull()

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

◆ read()

◆ read_headers()

◆ request_tlm_marker()

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

Definition at line 1065 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 1041 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 1059 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

◆ 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().

◆ elastic_alloc

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

Definition at line 168 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 170 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

◆ 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().

◆ qcc

param_qcc * ojph::local::codestream::qcc
private

Definition at line 163 of file ojph_codestream_local.h.

Referenced by access_qcd(), codestream(), read_headers(), and ~codestream().

◆ qcc_store

param_qcc ojph::local::codestream::qcc_store[4]
private

Definition at line 163 of file ojph_codestream_local.h.

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

◆ 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().

◆ used_qcc_fields

int ojph::local::codestream::used_qcc_fields
private

Definition at line 162 of file ojph_codestream_local.h.

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


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