opj_dwt_decode_partial_97(): perf improvement: limit copy of coefficients at end of horizontal pass to actual range of interest

This commit is contained in:
Even Rouault 2017-08-23 18:58:32 +02:00
parent 8180eeace1
commit bc71bd1219
1 changed files with 2 additions and 2 deletions

View File

@ -2404,7 +2404,7 @@ OPJ_BOOL opj_dwt_decode_partial_97(opj_tcd_t *tcd,
opj_v4dwt_interleave_h(&h, aj, w, rh - j); opj_v4dwt_interleave_h(&h, aj, w, rh - j);
opj_v4dwt_decode(&h); opj_v4dwt_decode(&h);
for (k = 0; k < rw; k++) { for (k = win_tr_x0; k < win_tr_x1; k++) {
aj[k ] = h.wavelet[k].f[0]; aj[k ] = h.wavelet[k].f[0];
aj[k + w ] = h.wavelet[k].f[1]; aj[k + w ] = h.wavelet[k].f[1];
aj[k + w * 2] = h.wavelet[k].f[2]; aj[k + w * 2] = h.wavelet[k].f[2];
@ -2420,7 +2420,7 @@ OPJ_BOOL opj_dwt_decode_partial_97(opj_tcd_t *tcd,
OPJ_UINT32 k; OPJ_UINT32 k;
opj_v4dwt_interleave_h(&h, aj, w, rh - j); opj_v4dwt_interleave_h(&h, aj, w, rh - j);
opj_v4dwt_decode(&h); opj_v4dwt_decode(&h);
for (k = 0; k < rw; k++) { for (k = win_tr_x0; k < win_tr_x1; k++) {
switch (rh - j) { switch (rh - j) {
case 3: case 3:
aj[k + w * 2] = h.wavelet[k].f[2]; aj[k + w * 2] = h.wavelet[k].f[2];