]> granicus.if.org Git - openjpeg/commit
Allow several repeated calls to opj_set_decode_area() and opj_decode() for single...
authorEven Rouault <even.rouault@spatialys.com>
Fri, 1 Sep 2017 14:30:48 +0000 (16:30 +0200)
committerEven Rouault <even.rouault@spatialys.com>
Fri, 1 Sep 2017 14:30:48 +0000 (16:30 +0200)
commit0ae3cba3404674bbe2028ea9a801301a4c951b33
tree8150750654ca96ea629ded16cc2731d9e0bd9cdf
parent5d07d463fdb0a5eeffa90eba1566cc21697011b8
Allow several repeated calls to opj_set_decode_area() and opj_decode() for single-tiled images

* Only works for single-tiled images --> will error out cleanly, as currently
  in other cases
* Save re-reading the codestream for the tile, and re-use code-blocks of the
  previous decoding pass.
* Future improvements might involve improving opj_decompress, and the image writing logic,
  to use this strategy.
src/lib/openjp2/j2k.c
src/lib/openjp2/openjpeg.h
src/lib/openjp2/t1.c
tests/CMakeLists.txt
tests/test_decode_area.c