Skip to content

Commit

Permalink
Reduce number of occurrences of orient function argument
Browse files Browse the repository at this point in the history
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()
  • Loading branch information
rouault committed May 21, 2016
1 parent 23a01df commit ba1edf6
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 81 deletions.
1 change: 1 addition & 0 deletions src/lib/openjp2/mqc.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ typedef struct opj_mqc {
OPJ_BYTE *end;
opj_mqc_state_t *ctxs[MQC_NUMCTXS];
opj_mqc_state_t **curctx;
const OPJ_BYTE *lut_ctxno_zc_orient; /* lut_ctxno_zc shifted by 256 * bandno */
#ifdef MQC_PERF_OPT
unsigned char *buffer;
#endif
Expand Down
Loading

0 comments on commit ba1edf6

Please sign in to comment.