OpenJPH
Open-source implementation of JPEG2000 Part-15
Loading...
Searching...
No Matches
ojph::local::codeblock Class Reference

#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)
 

Private Attributes

ui32buf
 
size nominal_size
 
size cb_size
 
ui32 stride
 
ui32 buf_size
 
subbandparent
 
int line_offset
 
ui32 cur_line
 
float delta
 
float delta_inv
 
ui32 K_max
 
bool reversible
 
bool resilient
 
bool stripe_causal
 
bool zero_block
 
ui32 max_val [8]
 
coded_cb_headercoded_cb
 
mem_clear_fun mem_clear
 
find_max_val_fun find_max_val
 
tx_to_cb_fun tx_to_cb
 
tx_from_cb_fun tx_from_cb
 

Static Private Attributes

static cb_decoder_fun decode_cb = NULL
 

Friends

struct precinct
 

Detailed Description

Definition at line 362 of file ojph_codestream_local.h.

Member Typedef Documentation

◆ cb_decoder_fun

typedef bool(* ojph::local::codeblock::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)
private

Definition at line 430 of file ojph_codestream_local.h.

◆ find_max_val_fun

typedef ui32(* ojph::local::codeblock::find_max_val_fun) (ui32 *addr)
private

Definition at line 404 of file ojph_codestream_local.h.

◆ mem_clear_fun

typedef void(* ojph::local::codeblock::mem_clear_fun) (void *addr, size_t count)
private

Definition at line 398 of file ojph_codestream_local.h.

◆ tx_from_cb_fun

typedef void(* ojph::local::codeblock::tx_from_cb_fun) (const ui32 *sp, void *dp, ui32 K_max, float delta, ui32 count)
private

Definition at line 420 of file ojph_codestream_local.h.

◆ tx_to_cb_fun

typedef void(* ojph::local::codeblock::tx_to_cb_fun) (const void *sp, ui32 *dp, ui32 K_max, float delta_inv, ui32 count, ui32 *max_val)
private

Definition at line 410 of file ojph_codestream_local.h.

Member Function Documentation

◆ decode()

◆ encode()

◆ finalize_alloc()

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

◆ gen_find_max_val()

static ui32 ojph::local::codeblock::gen_find_max_val ( ui32 addr)
inlinestaticprivate

Definition at line 407 of file ojph_codestream_local.h.

Referenced by finalize_alloc().

◆ gen_irv_tx_from_cb()

void ojph::local::codeblock::gen_irv_tx_from_cb ( const ui32 sp,
void dp,
ui32  K_max,
float  delta,
ui32  count 
)
staticprivate

Definition at line 4142 of file ojph_codestream.cpp.

References delta, K_max, and ojph_unused.

Referenced by finalize_alloc().

◆ gen_irv_tx_to_cb()

void ojph::local::codeblock::gen_irv_tx_to_cb ( const void sp,
ui32 dp,
ui32  K_max,
float  delta_inv,
ui32  count,
ui32 max_val 
)
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().

◆ gen_mem_clear()

void ojph::local::codeblock::gen_mem_clear ( void addr,
size_t  count 
)
staticprivate

Definition at line 4075 of file ojph_codestream.cpp.

Referenced by finalize_alloc().

◆ gen_rev_tx_from_cb()

void ojph::local::codeblock::gen_rev_tx_from_cb ( const ui32 sp,
void dp,
ui32  K_max,
float  delta,
ui32  count 
)
staticprivate

Definition at line 4126 of file ojph_codestream.cpp.

References delta, K_max, and ojph_unused.

Referenced by finalize_alloc().

◆ gen_rev_tx_to_cb()

void ojph::local::codeblock::gen_rev_tx_to_cb ( const void sp,
ui32 dp,
ui32  K_max,
float  delta_inv,
ui32  count,
ui32 max_val 
)
staticprivate

Definition at line 4083 of file ojph_codestream.cpp.

References delta_inv, K_max, max_val, and ojph_unused.

Referenced by finalize_alloc().

◆ pre_alloc()

void ojph::local::codeblock::pre_alloc ( codestream codestream,
const size nominal 
)
static

◆ pull_line()

void ojph::local::codeblock::pull_line ( line_buf line)

◆ push()

void ojph::local::codeblock::push ( line_buf line)

◆ recreate()

void ojph::local::codeblock::recreate ( const size cb_size,
coded_cb_header coded_cb 
)

Friends And Related Symbol Documentation

◆ precinct

Definition at line 364 of file ojph_codestream_local.h.

Member Data Documentation

◆ buf

ui32* ojph::local::codeblock::buf
private

Definition at line 379 of file ojph_codestream_local.h.

Referenced by decode(), encode(), finalize_alloc(), pull_line(), and push().

◆ buf_size

ui32 ojph::local::codeblock::buf_size
private

Definition at line 383 of file ojph_codestream_local.h.

Referenced by finalize_alloc(), and recreate().

◆ cb_size

size ojph::local::codeblock::cb_size
private

Definition at line 381 of file ojph_codestream_local.h.

Referenced by decode(), encode(), finalize_alloc(), pull_line(), push(), and recreate().

◆ coded_cb

coded_cb_header* ojph::local::codeblock::coded_cb
private

Definition at line 394 of file ojph_codestream_local.h.

Referenced by decode(), encode(), finalize_alloc(), and recreate().

◆ cur_line

ui32 ojph::local::codeblock::cur_line
private

Definition at line 386 of file ojph_codestream_local.h.

Referenced by finalize_alloc(), pull_line(), push(), and recreate().

◆ decode_cb

codeblock::cb_decoder_fun ojph::local::codeblock::decode_cb = NULL
staticprivate

Definition at line 434 of file ojph_codestream_local.h.

Referenced by decode(), and finalize_alloc().

◆ delta

float ojph::local::codeblock::delta
private

◆ delta_inv

float ojph::local::codeblock::delta_inv
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().

◆ find_max_val

find_max_val_fun ojph::local::codeblock::find_max_val
private

Definition at line 406 of file ojph_codestream_local.h.

Referenced by encode(), and finalize_alloc().

◆ K_max

ui32 ojph::local::codeblock::K_max
private

◆ line_offset

int ojph::local::codeblock::line_offset
private

Definition at line 385 of file ojph_codestream_local.h.

Referenced by finalize_alloc(), pull_line(), and push().

◆ max_val

ui32 ojph::local::codeblock::max_val[8]
private

◆ mem_clear

mem_clear_fun ojph::local::codeblock::mem_clear
private

Definition at line 400 of file ojph_codestream_local.h.

Referenced by finalize_alloc(), and pull_line().

◆ nominal_size

size ojph::local::codeblock::nominal_size
private

Definition at line 380 of file ojph_codestream_local.h.

Referenced by finalize_alloc().

◆ parent

subband* ojph::local::codeblock::parent
private

Definition at line 384 of file ojph_codestream_local.h.

Referenced by finalize_alloc().

◆ resilient

bool ojph::local::codeblock::resilient
private

Definition at line 390 of file ojph_codestream_local.h.

Referenced by decode(), and finalize_alloc().

◆ reversible

bool ojph::local::codeblock::reversible
private

Definition at line 389 of file ojph_codestream_local.h.

Referenced by finalize_alloc().

◆ stride

ui32 ojph::local::codeblock::stride
private

◆ stripe_causal

bool ojph::local::codeblock::stripe_causal
private

Definition at line 391 of file ojph_codestream_local.h.

Referenced by decode(), and finalize_alloc().

◆ tx_from_cb

tx_from_cb_fun ojph::local::codeblock::tx_from_cb
private

Definition at line 423 of file ojph_codestream_local.h.

Referenced by finalize_alloc(), and pull_line().

◆ tx_to_cb

tx_to_cb_fun ojph::local::codeblock::tx_to_cb
private

Definition at line 413 of file ojph_codestream_local.h.

Referenced by finalize_alloc(), and push().

◆ zero_block

bool ojph::local::codeblock::zero_block
private

Definition at line 392 of file ojph_codestream_local.h.

Referenced by decode(), finalize_alloc(), pull_line(), and recreate().


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