Commit c737920
Grok Compression
Fix SparseCanvas sub-band padding allocation for region decompress
PartialBandInfo::alloc used fullRes->band[BAND_INDEX_LH].width() and
fullRes->band[BAND_INDEX_HL].height() to compute sub-band offsets when
pre-allocating DWT filter padding blocks. For resno=1, fullRes points to
resolution 0 which only has 1 band (LL) — band[1] and band[2] are
uninitialized Rect32(0,0,0,0), producing zero offsets.
Use fullRes->width()/height() directly (= LL band dimensions = lower
resolution dimensions), which is correct for all resolution levels.
Also fix grow_IN_PLACE clamp bounds: use fullResNext (current resolution)
dimensions instead of fullRes (lower resolution), since panned sub-band
windows extend beyond the lower resolution's coordinate range.1 parent bf5a6cb commit c737920
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
537 | | - | |
| 537 | + | |
538 | 538 | | |
539 | | - | |
540 | | - | |
541 | | - | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
542 | 542 | | |
| 543 | + | |
543 | 544 | | |
544 | 545 | | |
545 | 546 | | |
546 | | - | |
| 547 | + | |
547 | 548 | | |
548 | 549 | | |
549 | 550 | | |
| |||
553 | 554 | | |
554 | 555 | | |
555 | 556 | | |
556 | | - | |
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
| |||
0 commit comments