Go to the documentation of this file.
28 #define T1_NUMCTXS_ZC 9
29 #define T1_NUMCTXS_SC 5
30 #define T1_NUMCTXS_MAG 3
31 #define T1_NUMCTXS_AGG 1
32 #define T1_NUMCTXS_UNI 1
35 #define T1_CTXNO_SC (T1_CTXNO_ZC+T1_NUMCTXS_ZC)
36 #define T1_CTXNO_MAG (T1_CTXNO_SC+T1_NUMCTXS_SC)
37 #define T1_CTXNO_AGG (T1_CTXNO_MAG+T1_NUMCTXS_MAG)
38 #define T1_CTXNO_UNI (T1_CTXNO_AGG+T1_NUMCTXS_AGG)
39 #define T1_NUMCTXS (T1_CTXNO_UNI+T1_NUMCTXS_UNI)
64 #define T1_SIGMA_0 (1U << 0)
65 #define T1_SIGMA_1 (1U << 1)
66 #define T1_SIGMA_2 (1U << 2)
67 #define T1_SIGMA_3 (1U << 3)
68 #define T1_SIGMA_4 (1U << 4)
69 #define T1_SIGMA_5 (1U << 5)
70 #define T1_SIGMA_6 (1U << 6)
71 #define T1_SIGMA_7 (1U << 7)
72 #define T1_SIGMA_8 (1U << 8)
73 #define T1_SIGMA_9 (1U << 9)
74 #define T1_SIGMA_10 (1U << 10)
75 #define T1_SIGMA_11 (1U << 11)
76 #define T1_SIGMA_12 (1U << 12)
77 #define T1_SIGMA_13 (1U << 13)
78 #define T1_SIGMA_14 (1U << 14)
79 #define T1_SIGMA_15 (1U << 15)
80 #define T1_SIGMA_16 (1U << 16)
81 #define T1_SIGMA_17 (1U << 17)
104 #define T1_SIGMA_NW T1_SIGMA_0
105 #define T1_SIGMA_N T1_SIGMA_1
106 #define T1_SIGMA_NE T1_SIGMA_2
107 #define T1_SIGMA_W T1_SIGMA_3
108 #define T1_SIGMA_THIS T1_SIGMA_4
109 #define T1_SIGMA_E T1_SIGMA_5
110 #define T1_SIGMA_SW T1_SIGMA_6
111 #define T1_SIGMA_S T1_SIGMA_7
112 #define T1_SIGMA_SE T1_SIGMA_8
113 #define T1_SIGMA_NEIGHBOURS (T1_SIGMA_NW | T1_SIGMA_N | T1_SIGMA_NE | T1_SIGMA_W | T1_SIGMA_E | T1_SIGMA_SW | T1_SIGMA_S | T1_SIGMA_SE)
115 #define T1_CHI_THIS T1_CHI_1
116 #define T1_CHI_THIS_I T1_CHI_1_I
117 #define T1_MU_THIS T1_MU_0
118 #define T1_PI_THIS T1_PI_0
119 #define T1_CHI_S T1_CHI_2
121 #define T1_LUT_SGN_W (1U << 0)
122 #define T1_LUT_SIG_N (1U << 1)
123 #define T1_LUT_SGN_E (1U << 2)
124 #define T1_LUT_SIG_W (1U << 3)
125 #define T1_LUT_SGN_N (1U << 4)
126 #define T1_LUT_SIG_E (1U << 5)
127 #define T1_LUT_SGN_S (1U << 6)
128 #define T1_LUT_SIG_S (1U << 7)
160 uint32_t orient, uint32_t roishift, uint32_t cblksty);
170 uint8_t orient, uint32_t compno, uint32_t level,
171 uint32_t qmfbid,
double stepsize, uint32_t cblksty,
172 const double *mct_norms,
173 uint32_t mct_numcomps,
bool doRateControl);
int32_t * data
Definition: t1.h:138
Definition: t1_common.h:67
double t1_encode_cblk(t1_info *t1, cblk_enc *cblk, uint32_t max, uint8_t orient, uint32_t compno, uint32_t level, uint32_t qmfbid, double stepsize, uint32_t cblksty, const double *mct_norms, uint32_t mct_numcomps, bool doRateControl)
bool encoder
Definition: t1.h:151
bool t1_decode_cblk(t1_info *t1, cblk_dec *cblk, uint32_t orient, uint32_t roishift, uint32_t cblksty)
mqcoder mqc
MQC component.
Definition: t1.h:136
uint32_t h
Definition: t1.h:147
uint32_t flagssize
Definition: t1.h:149
bool t1_allocate_buffers(t1_info *t1, uint32_t w, uint32_t h)
uint32_t grk_flag
Flags for 4 consecutive rows of a column.
Definition: t1.h:43
uint32_t w
Definition: t1.h:146
grk_flag * flags
Flags used by decoder and encoder.
Definition: t1.h:144
Copyright (C) 2016-2020 Grok Image Compression Inc.
Definition: BitIO.h:27
Definition: t1_common.h:86
uint8_t * cblkdatabuffer
Definition: t1.h:154
uint32_t datasize
Definition: t1.h:148
t1_info * t1_create(bool isEncoder)
void t1_destroy(t1_info *p_t1)
uint32_t data_stride
Definition: t1.h:150
uint32_t cblkdatabuffersize
Definition: t1.h:156
void t1_code_block_enc_deallocate(cblk_enc *p_code_block)