76 ui32 K_max,
int line_offset,
82 this->
stride = (nominal.
w + f) & ~f;
86 this->precision =
BUF32;
90 this->precision =
BUF64;
102 for (
int i = 0; i < 4; ++i)
145 if (mv >= 1u << (31 -
K_max))
161 if (mv >= 1ULL << (63 -
K_max))
182 for (
int i = 0; i < 4; ++i)
215 OJPH_INFO(0x000300A1,
"Error decoding a codeblock.");
219 OJPH_ERROR(0x000300A1,
"Error decoding a codeblock.");
coded_cb_header * coded_cb
void finalize_alloc(codestream *codestream, subband *parent, const size &nominal, const size &cb_size, coded_cb_header *coded_cb, ui32 K_max, int tbx0, ui32 precision, ui32 comp_idx)
void push(line_buf *line)
static void pre_alloc(codestream *codestream, const size &nominal, ui32 precision)
void encode(mem_elastic_allocator *elastic)
void recreate(const size &cb_size, coded_cb_header *coded_cb)
codeblock_fun codeblock_functions
void pull_line(line_buf *line)
const param_cod * get_coc(ui32 comp_num)
mem_fixed_allocator * get_allocator()
void pre_alloc_data(size_t num_ele, ui32 pre_size)
T * post_alloc_data(size_t num_ele, ui32 pre_size)
const ui32 byte_alignment
#define OJPH_INFO(t,...)
MACROs to insert file and line number for info, warning, and error.
#define OJPH_ERROR(t,...)
tx_to_cb_fun64 tx_to_cb64
cb_encoder_fun64 encode_cb64
void init(bool reversible)
find_max_val_fun32 find_max_val32
tx_from_cb_fun32 tx_from_cb32
tx_to_cb_fun32 tx_to_cb32
find_max_val_fun64 find_max_val64
cb_decoder_fun32 decode_cb32
cb_encoder_fun32 encode_cb32
cb_decoder_fun64 decode_cb64
tx_from_cb_fun64 tx_from_cb64
bool get_block_vertical_causality() const
bool is_reversible() const