OpenJPH
Open-source implementation of JPEG2000 Part-15
ojph::local::codeblock Class Reference

#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, const size &nominal)
 

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
 
codeblock_fun codeblock_functions
 

Friends

struct precinct
 

Detailed Description

Definition at line 65 of file ojph_codeblock.h.

Member Function Documentation

◆ decode()

◆ encode()

◆ finalize_alloc()

◆ pre_alloc()

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

◆ pull_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 Function Documentation

◆ precinct

friend struct precinct
friend

Definition at line 67 of file ojph_codeblock.h.

Member Data Documentation

◆ buf

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

Definition at line 82 of file ojph_codeblock.h.

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

◆ buf_size

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

Definition at line 86 of file ojph_codeblock.h.

Referenced by finalize_alloc(), and recreate().

◆ cb_size

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

Definition at line 84 of file ojph_codeblock.h.

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

◆ codeblock_functions

codeblock_fun ojph::local::codeblock::codeblock_functions
private

Definition at line 98 of file ojph_codeblock.h.

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

◆ coded_cb

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

Definition at line 97 of file ojph_codeblock.h.

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

◆ cur_line

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

Definition at line 89 of file ojph_codeblock.h.

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

◆ delta

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

Definition at line 90 of file ojph_codeblock.h.

Referenced by finalize_alloc(), and pull_line().

◆ delta_inv

float ojph::local::codeblock::delta_inv
private

Definition at line 90 of file ojph_codeblock.h.

Referenced by finalize_alloc(), and push().

◆ K_max

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

Definition at line 91 of file ojph_codeblock.h.

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

◆ line_offset

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

Definition at line 88 of file ojph_codeblock.h.

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

◆ max_val

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

Definition at line 96 of file ojph_codeblock.h.

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

◆ nominal_size

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

Definition at line 83 of file ojph_codeblock.h.

Referenced by finalize_alloc().

◆ parent

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

Definition at line 87 of file ojph_codeblock.h.

Referenced by finalize_alloc().

◆ resilient

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

Definition at line 93 of file ojph_codeblock.h.

Referenced by decode(), and finalize_alloc().

◆ reversible

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

Definition at line 92 of file ojph_codeblock.h.

Referenced by finalize_alloc().

◆ stride

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

Definition at line 85 of file ojph_codeblock.h.

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

◆ stripe_causal

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

Definition at line 94 of file ojph_codeblock.h.

Referenced by decode(), and finalize_alloc().

◆ zero_block

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

Definition at line 95 of file ojph_codeblock.h.

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


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