OpenJPH
Open-source implementation of JPEG2000 Part-15
|
#include <ojph_codestream_local.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, const size &nominal) |
Private Types | |
typedef void(* | mem_clear_fun) (void *addr, size_t count) |
typedef ui32(* | find_max_val_fun) (ui32 *addr) |
typedef void(* | tx_to_cb_fun) (const void *sp, ui32 *dp, ui32 K_max, float delta_inv, ui32 count, ui32 *max_val) |
typedef void(* | tx_from_cb_fun) (const ui32 *sp, void *dp, ui32 K_max, float delta, ui32 count) |
typedef bool(* | cb_decoder_fun) (ui8 *coded_data, ui32 *decoded_data, ui32 missing_msbs, ui32 num_passes, ui32 lengths1, ui32 lengths2, ui32 width, ui32 height, ui32 stride, bool stripe_causal) |
Static Private Member Functions | |
static void | gen_mem_clear (void *addr, size_t count) |
static ui32 | gen_find_max_val (ui32 *addr) |
static void | gen_rev_tx_to_cb (const void *sp, ui32 *dp, ui32 K_max, float delta_inv, ui32 count, ui32 *max_val) |
static void | gen_irv_tx_to_cb (const void *sp, ui32 *dp, ui32 K_max, float delta_inv, ui32 count, ui32 *max_val) |
static void | gen_rev_tx_from_cb (const ui32 *sp, void *dp, ui32 K_max, float delta, ui32 count) |
static void | gen_irv_tx_from_cb (const ui32 *sp, void *dp, ui32 K_max, float delta, ui32 count) |
Static Private Attributes | |
static cb_decoder_fun | decode_cb = NULL |
Friends | |
struct | precinct |
Definition at line 362 of file ojph_codestream_local.h.
|
private |
Definition at line 430 of file ojph_codestream_local.h.
Definition at line 404 of file ojph_codestream_local.h.
Definition at line 398 of file ojph_codestream_local.h.
|
private |
Definition at line 420 of file ojph_codestream_local.h.
|
private |
Definition at line 410 of file ojph_codestream_local.h.
void ojph::local::codeblock::decode | ( | ) |
Definition at line 4051 of file ojph_codestream.cpp.
References buf, ojph::coded_lists::buf, cb_size, coded_cb, decode_cb, 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::local::coded_cb_header::pass_length, 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 4022 of file ojph_codestream.cpp.
References buf, cb_size, coded_cb, find_max_val, ojph::size::h, K_max, max_val, ojph::local::coded_cb_header::missing_msbs, ojph::local::coded_cb_header::next_coded, ojph::local::coded_cb_header::num_passes, ojph::local::ojph_encode_codeblock(), ojph::local::coded_cb_header::pass_length, 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 3911 of file ojph_codestream.cpp.
References ojph::local::codestream::access_cod(), ojph::local::avx2_find_max_val(), ojph::local::avx2_irv_tx_from_cb(), ojph::local::avx2_irv_tx_to_cb(), ojph::local::avx2_rev_tx_from_cb(), ojph::local::avx2_rev_tx_to_cb(), ojph::local::avx_mem_clear(), buf, buf_size, cb_size, coded_cb, cur_line, decode_cb, delta, delta_inv, find_max_val, gen_find_max_val(), gen_irv_tx_from_cb(), gen_irv_tx_to_cb(), gen_mem_clear(), gen_rev_tx_from_cb(), gen_rev_tx_to_cb(), ojph::local::codestream::get_allocator(), ojph::param_cod::get_block_vertical_causality(), ojph::get_cpu_ext_level(), ojph::local::subband::get_delta(), ojph::size::h, ojph::local::codestream::is_resilient(), ojph::param_cod::is_reversible(), K_max, line_offset, max_val, mem_clear, nominal_size, ojph::local::ojph_decode_codeblock(), ojph::local::ojph_decode_codeblock_ssse3(), ojph::local::ojph_decode_codeblock_wasm(), parent, ojph::mem_fixed_allocator::post_alloc_data(), resilient, reversible, ojph::local::sse2_find_max_val(), ojph::local::sse2_irv_tx_from_cb(), ojph::local::sse2_irv_tx_to_cb(), ojph::local::sse2_rev_tx_from_cb(), ojph::local::sse2_rev_tx_to_cb(), ojph::local::sse_mem_clear(), stride, stripe_causal, tx_from_cb, tx_to_cb, ojph::size::w, ojph::local::wasm_find_max_val(), ojph::local::wasm_irv_tx_from_cb(), ojph::local::wasm_irv_tx_to_cb(), ojph::local::wasm_mem_clear(), ojph::local::wasm_rev_tx_from_cb(), ojph::local::wasm_rev_tx_to_cb(), ojph::X86_CPU_EXT_LEVEL_AVX, ojph::X86_CPU_EXT_LEVEL_AVX2, ojph::X86_CPU_EXT_LEVEL_SSE, ojph::X86_CPU_EXT_LEVEL_SSE2, ojph::X86_CPU_EXT_LEVEL_SSSE3, and zero_block.
Referenced by ojph::local::subband::finalize_alloc().
Definition at line 407 of file ojph_codestream_local.h.
Referenced by finalize_alloc().
|
staticprivate |
Definition at line 4142 of file ojph_codestream.cpp.
References delta, K_max, and ojph_unused.
Referenced by finalize_alloc().
|
staticprivate |
Definition at line 4105 of file ojph_codestream.cpp.
References delta_inv, K_max, max_val, ojph::ojph_trunc(), and ojph_unused.
Referenced by finalize_alloc().
Definition at line 4075 of file ojph_codestream.cpp.
Referenced by finalize_alloc().
|
staticprivate |
Definition at line 4126 of file ojph_codestream.cpp.
References delta, K_max, and ojph_unused.
Referenced by finalize_alloc().
|
staticprivate |
Definition at line 4083 of file ojph_codestream.cpp.
References delta_inv, K_max, max_val, and ojph_unused.
Referenced by finalize_alloc().
|
static |
Definition at line 3901 of file ojph_codestream.cpp.
References ojph::local::codestream::get_allocator(), ojph::size::h, ojph::mem_fixed_allocator::pre_alloc_data(), stride, and ojph::size::w.
Referenced by ojph::local::subband::pre_alloc().
Definition at line 4157 of file ojph_codestream.cpp.
References buf, cb_size, cur_line, delta, ojph::size::h, ojph::line_buf::i32, K_max, line_offset, mem_clear, stride, tx_from_cb, ojph::size::w, and zero_block.
Definition at line 4012 of file ojph_codestream.cpp.
References buf, cb_size, cur_line, delta_inv, ojph::line_buf::i32, K_max, line_offset, max_val, stride, tx_to_cb, and ojph::size::w.
void ojph::local::codeblock::recreate | ( | const size & | cb_size, |
coded_cb_header * | coded_cb | ||
) |
Definition at line 4039 of file ojph_codestream.cpp.
References buf_size, cb_size, coded_cb, cur_line, ojph::size::h, max_val, stride, ojph::size::w, and zero_block.
Referenced by ojph::local::subband::pull_line(), and ojph::local::subband::push_line().
Definition at line 364 of file ojph_codestream_local.h.
|
private |
Definition at line 379 of file ojph_codestream_local.h.
Referenced by decode(), encode(), finalize_alloc(), pull_line(), and push().
|
private |
Definition at line 383 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), and recreate().
|
private |
Definition at line 381 of file ojph_codestream_local.h.
Referenced by decode(), encode(), finalize_alloc(), pull_line(), push(), and recreate().
|
private |
Definition at line 394 of file ojph_codestream_local.h.
Referenced by decode(), encode(), finalize_alloc(), and recreate().
|
private |
Definition at line 386 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), pull_line(), push(), and recreate().
|
staticprivate |
Definition at line 434 of file ojph_codestream_local.h.
Referenced by decode(), and finalize_alloc().
|
private |
Definition at line 387 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), gen_irv_tx_from_cb(), gen_rev_tx_from_cb(), and pull_line().
|
private |
Definition at line 387 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), gen_irv_tx_to_cb(), gen_rev_tx_to_cb(), and push().
|
private |
Definition at line 406 of file ojph_codestream_local.h.
Referenced by encode(), and finalize_alloc().
|
private |
Definition at line 388 of file ojph_codestream_local.h.
Referenced by encode(), finalize_alloc(), gen_irv_tx_from_cb(), gen_irv_tx_to_cb(), gen_rev_tx_from_cb(), gen_rev_tx_to_cb(), pull_line(), and push().
|
private |
Definition at line 385 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), pull_line(), and push().
|
private |
Definition at line 393 of file ojph_codestream_local.h.
Referenced by encode(), finalize_alloc(), gen_irv_tx_to_cb(), gen_rev_tx_to_cb(), push(), and recreate().
|
private |
Definition at line 400 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), and pull_line().
|
private |
Definition at line 380 of file ojph_codestream_local.h.
Referenced by finalize_alloc().
|
private |
Definition at line 384 of file ojph_codestream_local.h.
Referenced by finalize_alloc().
|
private |
Definition at line 390 of file ojph_codestream_local.h.
Referenced by decode(), and finalize_alloc().
|
private |
Definition at line 389 of file ojph_codestream_local.h.
Referenced by finalize_alloc().
|
private |
Definition at line 382 of file ojph_codestream_local.h.
Referenced by decode(), encode(), finalize_alloc(), pre_alloc(), pull_line(), push(), and recreate().
|
private |
Definition at line 391 of file ojph_codestream_local.h.
Referenced by decode(), and finalize_alloc().
|
private |
Definition at line 423 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), and pull_line().
|
private |
Definition at line 413 of file ojph_codestream_local.h.
Referenced by finalize_alloc(), and push().
|
private |
Definition at line 392 of file ojph_codestream_local.h.
Referenced by decode(), finalize_alloc(), pull_line(), and recreate().