Grok 10.0.5
|
#include <algorithm>
#include "coding_units.hpp"
#include "ht_block_encoding.hpp"
#include "coding_local.hpp"
#include "enc_CxtVLC_tables.hpp"
#include "utils.hpp"
Macros | |
#define | Q0 0 |
#define | Q1 1 |
#define | MAKE_STORAGE() |
Functions | |
void | print_block (const j2k_codeblock *const block) |
static void | make_storage (const j2k_codeblock *const block, const uint16_t qy, const uint16_t qx, const uint16_t QH, const uint16_t QW, uint8_t *const sigma_n, uint32_t *const v_n, int32_t *const E_n, uint8_t *const rho_q) |
static void | make_storage_one (const j2k_codeblock *const block, const uint16_t qy, const uint16_t qx, const uint16_t QH, const uint16_t QW, uint8_t *const sigma_n, uint32_t *const v_n, int32_t *const E_n, uint8_t *const rho_q) |
int32_t | termMELandVLC (state_VLC_enc &VLC, state_MEL_enc &MEL) |
int32_t | htj2k_encode (j2k_codeblock *const block, const uint8_t ROIshift) noexcept |
Variables | |
auto | encode_UVLC0 |
auto | encode_UVLC1 |
#define MAKE_STORAGE | ( | ) |
Referenced by htj2k_encode().
#define Q0 0 |
Referenced by htj2k_encode().
#define Q1 1 |
Referenced by htj2k_encode().
|
noexcept |
References a, ceil_int, state_MS_enc::emitMagSgnBits(), state_VLC_enc::emitVLCBits(), enc_CxtVLC_table0, enc_CxtVLC_table1, encode_UVLC0, encode_UVLC1, state_MEL_enc::encodeMEL(), MAKE_STORAGE, make_storage_one(), MAX_Lcup, MAX_Scup, popcount32(), Q0, Q1, round_up, state_MEL_enc::termMEL(), termMELandVLC(), and state_MS_enc::termMS().
Referenced by openhtj2k::T1OpenHTJ2K::compress().
|
inlinestatic |
References count_leading_zeros(), j2k_codeblock::get_state(), j2k_codeblock::sample_buf, Sigma(), j2k_codeblock::size, element_siz::x, x, element_siz::y, and y.
|
inlinestatic |
References count_leading_zeros(), j2k_codeblock::get_state(), j2k_codeblock::sample_buf, Sigma(), j2k_codeblock::size, element_siz::x, x, element_siz::y, and y.
Referenced by htj2k_encode().
void print_block | ( | const j2k_codeblock *const | block | ) |
References buf, ceil_int, j2k_codeblock::sample_buf, j2k_codeblock::size, element_siz::x, x, element_siz::y, and y.
int32_t termMELandVLC | ( | state_VLC_enc & | VLC, |
state_MEL_enc & | MEL ) |
Referenced by htj2k_encode().
auto encode_UVLC0 |
Referenced by htj2k_encode().
auto encode_UVLC1 |
Referenced by htj2k_encode().