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 68 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 85 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 81 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 ( )

Definition at line 1132 of file ojph_codestream_local.cpp.

References infile, and outfile.

◆ enable_resilience()

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

Definition at line 874 of file ojph_codestream_local.cpp.

References infile, OJPH_ERROR, and resilient.

◆ exchange()

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

◆ finalize_alloc()

◆ flush()

void ojph::local::codestream::flush ( )

◆ get_allocator()

◆ get_coc()

◆ get_cod()

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

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

References outfile.

◆ get_nlt()

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

Definition at line 95 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 126 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 119 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 118 of file ojph_codestream_local.h.

References 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 121 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)

Definition at line 1192 of file ojph_codestream_local.cpp.

References cur_comp, cur_line, cur_tile_row, lines, num_comps, num_tiles, planar, pull(), recon_comp_size, and tiles.

Referenced by pull().

◆ read()

◆ read_headers()

◆ request_tlm_marker()

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

Definition at line 1107 of file ojph_codestream_local.cpp.

References need_tlm.

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

References 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 1101 of file ojph_codestream_local.cpp.

References tilepart_div.

◆ 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 166 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 159 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 148 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 138 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 137 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 139 of file ojph_codestream_local.h.

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

◆ dfs

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

Definition at line 165 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 170 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 150 of file ojph_codestream_local.h.

Referenced by finalize_alloc(), and restart().

◆ infile

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

Definition at line 172 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 146 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

Definition at line 162 of file ojph_codestream_local.h.

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

◆ num_comps

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

◆ num_tiles

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

Definition at line 144 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 134 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 133 of file ojph_codestream_local.h.

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

◆ profile

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

Definition at line 152 of file ojph_codestream_local.h.

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

◆ qcd

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

Definition at line 160 of file ojph_codestream_local.h.

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

◆ recon_comp_size

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

Definition at line 149 of file ojph_codestream_local.h.

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

◆ resilient

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

Definition at line 140 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 145 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 161 of file ojph_codestream_local.h.

Referenced by finalize_alloc(), and flush().


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