diff options
| author | Even Rouault <even.rouault@mines-paris.org> | 2017-09-05 22:18:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-05 22:18:58 +0200 |
| commit | 968e36bbd989fdf789c6a02c80c747346bb851c5 (patch) | |
| tree | 6773f7cdc63663119105f031c2c5499cc9c5ffd7 /src/lib/openjp2/openjpeg.h | |
| parent | 3a382d312306f45853b3ad78b770754d4bc7e440 (diff) | |
| parent | 579b8937eae7e6b6868b8b5c6286a742c10a5130 (diff) | |
Merge pull request #1010 from rouault/subtile_decoding_stage3
Subtile decoding: memory use reduction and perf improvements
Diffstat (limited to 'src/lib/openjp2/openjpeg.h')
| -rw-r--r-- | src/lib/openjp2/openjpeg.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/openjp2/openjpeg.h b/src/lib/openjp2/openjpeg.h index 66993b7b..79e0bb4f 100644 --- a/src/lib/openjp2/openjpeg.h +++ b/src/lib/openjp2/openjpeg.h @@ -1343,6 +1343,12 @@ OPJ_API OPJ_BOOL OPJ_CALLCONV opj_read_header(opj_stream_t *p_stream, * that is to say at the highest resolution level, even if requesting the image at lower * resolution levels. * + * Generally opj_set_decode_area() should be followed by opj_decode(), and the + * codec cannot be re-used. + * In the particular case of an image made of a single tile, several sequences of + * calls to opoj_set_decode_area() and opj_decode() are allowed, and will bring + * performance improvements when reading an image by chunks. + * * @param p_codec the jpeg2000 codec. * @param p_image the decoded image previously setted by opj_read_header * @param p_start_x the left position of the rectangle to decode (in image coordinates). |
