Changes between Version 3 and Version 5 of Ticket #15574


Ignore:
Timestamp:
2017-11-23T03:28:29+01:00 (6 years ago)
Author:
cmuelle8
Comment:

clarified situation on partial jpeg decoding with turbojpeg, implemented in C, but not exported to jni atm..

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15574 – Description

    v3 v5  
    2424* as the loaded image will be a scaled version, zooming in 1:1 will not be possible
    2525  * this may be overcome by reloading subregions of the source image from file as needed
    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
    2731
     32-----
    2833Test data (a jpeg image with 30.000x21.952 pixels) may be found under
    2934* https://commons.wikimedia.org/wiki/File:Pieter_Bruegel_the_Elder_-_The_Tower_of_Babel_(Vienna)_-_Google_Art_Project_-_edited.jpg