summaryrefslogtreecommitdiffstats
path: root/kimgio/jpeg.kimgio
diff options
context:
space:
mode:
authormio <stigma@disroot.org>2024-09-21 12:10:59 +1000
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-09-23 18:57:38 +0900
commitc5c7697c1ecff28f44b18c6117203101c2c17a0c (patch)
tree3bdfdc9ae3ff264af5e12c0da254f02b7a4385ca /kimgio/jpeg.kimgio
parent4ba000750e855b6c5a1445e35c0e1cef18e17675 (diff)
downloadtdelibs-c5c7697c1ecff28f44b18c6117203101c2c17a0c.tar.gz
tdelibs-c5c7697c1ecff28f44b18c6117203101c2c17a0c.zip
Improve JasPer 3/4 support
Versions prior to 3 registered an atexit hander which performed resource cleanup with 'jas_cleanup', this was removed in version 3 meaning we were leaking resources. The 'jas_init' and 'jas_cleanup' functions were deprecated in version 3, so we use the newer jas_init_library/jas_init_thread functions. The max memory that JasPer can use has been limited to (at most) 512 MB. Without this change, JasPer will use whatever JAS_DEFAULT_MAX_MEM_USAGE is configured to, which is 1 GB by default. Signed-off-by: mio <stigma@disroot.org> (cherry picked from commit cb2ce97afa2f18427c1b4b3857fd56f69ce83d97)
Diffstat (limited to 'kimgio/jpeg.kimgio')
0 files changed, 0 insertions, 0 deletions