OpenJPH
Open-source implementation of JPEG2000 Part-15
|
#include <ojph_codeblock.h>
Public Member Functions | |
void | finalize_alloc (codestream *codestream, subband *parent, const size &nominal, const size &cb_size, coded_cb_header *coded_cb, ui32 K_max, int tbx0) |
void | push (line_buf *line) |
void | encode (mem_elastic_allocator *elastic) |
void | recreate (const size &cb_size, coded_cb_header *coded_cb) |
void | decode () |
void | pull_line (line_buf *line) |
Static Public Member Functions | |
static void | pre_alloc (codestream *codestream, ui32 comp_num, const size &nominal) |
Private Types | |
enum | : ui32 { BUF32 = 4 , BUF64 = 8 } |
Private Attributes | ||
ui32 | precision | |
union { | ||
ui32 * buf32 | ||
ui64 * buf64 | ||
}; | ||
size | nominal_size | |
size | cb_size | |
ui32 | stride | |
ui32 | buf_size | |
subband * | parent | |
int | line_offset | |
ui32 | cur_line | |
float | delta | |
float | delta_inv | |
ui32 | K_max | |
bool | reversible | |
bool | resilient | |
bool | stripe_causal | |
bool | zero_block | |
union { | ||
ui32 max_val32 [8] | ||
ui64 max_val64 [4] | ||
}; | ||
coded_cb_header * | coded_cb | |
codeblock_fun | codeblock_functions | |
Friends | |
struct | precinct |
Definition at line 65 of file ojph_codeblock.h.
|
private |
Enumerator | |
---|---|
BUF32 | |
BUF64 |
Definition at line 68 of file ojph_codeblock.h.
void ojph::local::codeblock::decode | ( | ) |
Definition at line 194 of file ojph_codeblock.cpp.
References ojph::coded_lists::buf, BUF32, buf32, BUF64, buf64, cb_size, codeblock_functions, coded_cb, ojph::local::codeblock_fun::decode_cb32, ojph::local::codeblock_fun::decode_cb64, ojph::size::h, ojph::local::coded_cb_header::missing_msbs, ojph::local::coded_cb_header::next_coded, ojph::local::coded_cb_header::num_passes, OJPH_ERROR, OJPH_INFO, ojph::local::coded_cb_header::pass_length, precision, ojph::local::coded_cb_header::prefix_buf_size, resilient, stride, stripe_causal, ojph::size::w, and zero_block.
Referenced by ojph::local::subband::pull_line().
void ojph::local::codeblock::encode | ( | mem_elastic_allocator * | elastic | ) |
Definition at line 146 of file ojph_codeblock.cpp.
References BUF32, buf32, BUF64, buf64, cb_size, codeblock_functions, coded_cb, ojph::local::codeblock_fun::encode_cb32, ojph::local::codeblock_fun::encode_cb64, ojph::local::codeblock_fun::find_max_val32, ojph::local::codeblock_fun::find_max_val64, ojph::size::h, K_max, max_val32, max_val64, ojph::local::coded_cb_header::missing_msbs, ojph::local::coded_cb_header::next_coded, ojph::local::coded_cb_header::num_passes, ojph::local::coded_cb_header::pass_length, precision, stride, and ojph::size::w.
void ojph::local::codeblock::finalize_alloc | ( | codestream * | codestream, |
subband * | parent, | ||
const size & | nominal, | ||
const size & | cb_size, | ||
coded_cb_header * | coded_cb, | ||
ui32 | K_max, | ||
int | tbx0 | ||
) |
Definition at line 75 of file ojph_codeblock.cpp.
References ojph::local::codestream::access_cod(), BUF32, buf32, BUF64, buf64, buf_size, ojph::byte_alignment, cb_size, codeblock_functions, coded_cb, cur_line, delta, delta_inv, ojph::local::codestream::get_allocator(), ojph::param_cod::get_block_vertical_causality(), ojph::local::codestream::get_cod(), ojph::local::resolution::get_comp_num(), ojph::local::subband::get_delta(), ojph::local::subband::get_parent(), ojph::local::codestream::get_siz(), ojph::size::h, ojph::local::codeblock_fun::init(), ojph::local::codestream::is_resilient(), ojph::param_cod::is_reversible(), K_max, line_offset, max_val64, nominal_size, parent, ojph::mem_fixed_allocator::post_alloc_data(), precision, ojph::local::param_cod::propose_precision(), resilient, reversible, stride, stripe_causal, ojph::size::w, and zero_block.
Referenced by ojph::local::subband::finalize_alloc().
|
static |
Definition at line 56 of file ojph_codeblock.cpp.
References ojph::byte_alignment, ojph::local::codestream::get_allocator(), ojph::local::codestream::get_cod(), ojph::local::codestream::get_siz(), ojph::size::h, ojph::mem_fixed_allocator::pre_alloc_data(), precision, ojph::local::param_cod::propose_precision(), stride, and ojph::size::w.
Referenced by ojph::local::subband::pre_alloc().
void ojph::local::codeblock::pull_line | ( | line_buf * | line | ) |
Definition at line 234 of file ojph_codeblock.cpp.
References BUF32, buf32, BUF64, buf64, cb_size, codeblock_functions, cur_line, delta, ojph::line_buf::flags, ojph::size::h, ojph::line_buf::i32, ojph::line_buf::i64, K_max, ojph::line_buf::LFT_32BIT, ojph::line_buf::LFT_64BIT, line_offset, ojph::local::codeblock_fun::mem_clear, precision, stride, ojph::local::codeblock_fun::tx_from_cb32, ojph::local::codeblock_fun::tx_from_cb64, ojph::size::w, and zero_block.
void ojph::local::codeblock::push | ( | line_buf * | line | ) |
Definition at line 121 of file ojph_codeblock.cpp.
References BUF32, buf32, BUF64, buf64, cb_size, codeblock_functions, cur_line, delta_inv, ojph::line_buf::flags, ojph::line_buf::i32, ojph::line_buf::i64, K_max, ojph::line_buf::LFT_32BIT, ojph::line_buf::LFT_64BIT, line_offset, max_val32, max_val64, precision, stride, ojph::local::codeblock_fun::tx_to_cb32, ojph::local::codeblock_fun::tx_to_cb64, and ojph::size::w.
void ojph::local::codeblock::recreate | ( | const size & | cb_size, |
coded_cb_header * | coded_cb | ||
) |
Definition at line 182 of file ojph_codeblock.cpp.
References buf_size, cb_size, coded_cb, cur_line, ojph::size::h, max_val64, stride, ojph::size::w, and zero_block.
Referenced by ojph::local::subband::pull_line(), and ojph::local::subband::push_line().
|
friend |
Definition at line 67 of file ojph_codeblock.h.
union { ... } ojph::local::codeblock |
union { ... } ojph::local::codeblock |
ui32* ojph::local::codeblock::buf32 |
Definition at line 90 of file ojph_codeblock.h.
Referenced by decode(), encode(), finalize_alloc(), pull_line(), and push().
ui64* ojph::local::codeblock::buf64 |
Definition at line 91 of file ojph_codeblock.h.
Referenced by decode(), encode(), finalize_alloc(), pull_line(), and push().
|
private |
Definition at line 96 of file ojph_codeblock.h.
Referenced by finalize_alloc(), and recreate().
|
private |
Definition at line 94 of file ojph_codeblock.h.
Referenced by decode(), encode(), finalize_alloc(), pull_line(), push(), and recreate().
|
private |
Definition at line 111 of file ojph_codeblock.h.
Referenced by decode(), encode(), finalize_alloc(), pull_line(), and push().
|
private |
Definition at line 110 of file ojph_codeblock.h.
Referenced by decode(), encode(), finalize_alloc(), and recreate().
|
private |
Definition at line 99 of file ojph_codeblock.h.
Referenced by finalize_alloc(), pull_line(), push(), and recreate().
|
private |
Definition at line 100 of file ojph_codeblock.h.
Referenced by finalize_alloc(), and pull_line().
|
private |
Definition at line 100 of file ojph_codeblock.h.
Referenced by finalize_alloc(), and push().
|
private |
Definition at line 101 of file ojph_codeblock.h.
Referenced by encode(), finalize_alloc(), pull_line(), and push().
|
private |
Definition at line 98 of file ojph_codeblock.h.
Referenced by finalize_alloc(), pull_line(), and push().
ui32 ojph::local::codeblock::max_val32[8] |
Definition at line 107 of file ojph_codeblock.h.
ui64 ojph::local::codeblock::max_val64[4] |
Definition at line 108 of file ojph_codeblock.h.
Referenced by encode(), finalize_alloc(), push(), and recreate().
|
private |
Definition at line 93 of file ojph_codeblock.h.
Referenced by finalize_alloc().
|
private |
Definition at line 97 of file ojph_codeblock.h.
Referenced by finalize_alloc().
|
private |
Definition at line 88 of file ojph_codeblock.h.
Referenced by decode(), encode(), finalize_alloc(), pre_alloc(), pull_line(), and push().
|
private |
Definition at line 103 of file ojph_codeblock.h.
Referenced by decode(), and finalize_alloc().
|
private |
Definition at line 102 of file ojph_codeblock.h.
Referenced by finalize_alloc().
|
private |
Definition at line 95 of file ojph_codeblock.h.
Referenced by decode(), encode(), finalize_alloc(), pre_alloc(), pull_line(), push(), and recreate().
|
private |
Definition at line 104 of file ojph_codeblock.h.
Referenced by decode(), and finalize_alloc().
|
private |
Definition at line 105 of file ojph_codeblock.h.
Referenced by decode(), finalize_alloc(), pull_line(), and recreate().