26 | | * in principle this should be possible using [https://cdn.rawgit.com/libjpeg-turbo/libjpeg-turbo/dev/java/doc/org/libjpegturbo/turbojpeg/TJDecompressor.html#decompress(int%5B%5D,%20int,%20int,%20int,%20int,%20int,%20int,%20int) this decompress variant] instead of the convenience function |
| 26 | * ~~in principle this should be possible using [https://cdn.rawgit.com/libjpeg-turbo/libjpeg-turbo/dev/java/doc/org/libjpegturbo/turbojpeg/TJDecompressor.html#decompress(int%5B%5D,%20int,%20int,%20int,%20int,%20int,%20int,%20int) this decompress variant] instead of the convenience function~~ |
| 27 | * not true currently: this variant merely enables to write to another offset than (0,0) in the dest buffer |
| 28 | * while partial jpeg decoding [https://github.com/libjpeg-turbo/libjpeg-turbo/blob/19b393b62422c97d97de4a5f2943d2cf4dc44120/ChangeLog.md#1490-15-beta1 was added in turbojpeg 1.5] it has [https://github.com/libjpeg-turbo/libjpeg-turbo/blob/19b393b62422c97d97de4a5f2943d2cf4dc44120/turbojpeg-jni.c#L630 not been promoted to the callable jni] functions yet |
| 29 | * i.e. turbojpeg-jni.c lacks sth. like {{{TJDecompressor_decompress_partial}}} that employs [https://github.com/libjpeg-turbo/libjpeg-turbo/blob/5bc43c7821df982f65aa1c738f67fbf7cba8bd69/jdapistd.c#L143 jpeg_crop_scanline(..)] and [https://github.com/libjpeg-turbo/libjpeg-turbo/blob/5bc43c7821df982f65aa1c738f67fbf7cba8bd69/jdapistd.c#L361 jpeg_skip_scanlines(..)] |
| 30 | * once this is added to the jni interface of turbojpeg it might be feasible to load the visible subregions (resulting from zoom or drag operations) dynamically from a large jpeg file as needed |