diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2022-08-11 16:46:55 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2022-08-11 18:06:50 +0200 |
| commit | 3d9bcd37534ce1166e1f0a7764faf69bea4d89b1 (patch) | |
| tree | b36495b136fd3eeec11a4c02cfb7326d69ba31a6 /wrapping/java/openjp2/java-sources/org | |
| parent | e9fc08a52acaf34bdcc0e04b7f716f0a3fb2b846 (diff) | |
Significant speed-up rate allocation by rate/distoratio ratio
- Avoid doing 128 iterations all the time, and stop when the threshold
doesn't vary much
- Avoid calling costly opj_t2_encode_packets() repeatdly when bisecting the
layer ratio if the truncation points haven't changed since the last
iteration.
When used with the GDAL gdal_translate application to convert a 11977 x
8745 raster with data type UInt16 and 8 channels, the conversion time
to JPEG2000 with 20 quality layers using disto/rate allocation (
-co "IC=C8" -co "JPEG2000_DRIVER=JP2OPENJPEG" -co "PROFILE=NPJE_NUMERICALLY_LOSSLESS"
creation options of the GDAL NITF driver) goes from 5m56 wall clock
(8m20s total, 12 vCPUs) down to 1m16 wall clock (3m45 total).
Diffstat (limited to 'wrapping/java/openjp2/java-sources/org')
0 files changed, 0 insertions, 0 deletions
