Skip to content

Commit ba1edf6

Browse files
committed
Reduce number of occurrences of orient function argument
This is essentially used to shift inside the lut_ctxno_zc, which we can precompute at the beginning of opj_t1_decode_cblk() / opj_t1_encode_cblk()
1 parent 23a01df commit ba1edf6

File tree

2 files changed

+47
-81
lines changed

2 files changed

+47
-81
lines changed

src/lib/openjp2/mqc.h

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ typedef struct opj_mqc {
7777
OPJ_BYTE *end;
7878
opj_mqc_state_t *ctxs[MQC_NUMCTXS];
7979
opj_mqc_state_t **curctx;
80+
const OPJ_BYTE *lut_ctxno_zc_orient; /* lut_ctxno_zc shifted by 256 * bandno */
8081
#ifdef MQC_PERF_OPT
8182
unsigned char *buffer;
8283
#endif

0 commit comments

Comments
 (0)