Commit Graph

44 Commits

Author SHA1 Message Date
arkon
fbd6601290 Update native libraries 2023-09-27 22:24:43 -04:00
w
04384facd2
Add color management (#2)
* Add support for embedded icc profiles

* Add support for display profile and rgb565

* Disable gray embedded icc

* Do complete color management per decoder

* Use lcms2 bundled with libjxl

* Fix sample size and interlaced for png

* target_profile casing

* Revert Use lcms2 bundled with libjxl

* fix jitpack lcms2 patch

* heif: don't do alpha for rgb565 only

* Update java_wrapper.cpp
2022-12-05 09:59:38 -05:00
w
16eda64574
Run clang-format (#7) 2022-11-19 11:57:30 -05:00
8cAyqpVKio
7879b4527e
refactor: Update libraries, and jitpack config (#6)
* dev: update library versions ->kotlin, gradle, gradle-plugins, ndk, cmake, android-sdk

Each version of android-sdk matched with tachiyomi-app.

* dev: update image library versions ->libjxl, libheif, dav1e, libde265

* dev: update jitpack config

* dev: revert minsdk and targetsdk

* dev: revert minsdk
2022-11-16 22:33:56 -05:00
arkon
c9c7ac4677
Create LICENSE 2021-07-09 22:34:14 -04:00
w
7481a4ac71
Add JPEG XL decoder (#1)
* Add JPEG XL decoder

* Simplify JXL header

* Return not animated for JXL

* Use JxlResizableParallelRunner
2021-07-07 01:39:00 +02:00
inorichi
0e9111170c Improve HEIF and AVIF detection 2021-06-08 13:36:27 +02:00
inorichi
ac5f65c84c Fix dav1d build on jitpack 2021-06-02 16:03:30 +02:00
inorichi
f403b7cd6c Enable HEIF & AVIF decoders 2021-05-31 14:45:38 +02:00
inorichi
f4796d06f4 Restore libjpeg patch workaround 2021-05-31 14:45:28 +02:00
inorichi
96d3acf3b4 Add a function to convert from RGB888 to RGB565. This allows to discard the alpha channel when it's not required and save some memory 2021-05-31 14:33:38 +02:00
inorichi
a65850031e Add missing files 2021-05-31 01:09:52 +02:00
inorichi
66521b11cd Optional decoders 2021-05-30 22:46:29 +02:00
inorichi
8a488c37e4 Improve memory handling 2021-05-30 01:02:24 +02:00
inorichi
e25c1e7b15 Merge branch 'master' into heif 2021-05-29 21:28:37 +02:00
inorichi
7a44c9ba52 Fix WebP crash on some systems 2021-05-29 18:04:32 +02:00
inorichi
24d2e37e2d Working HEIF/AVIF decoder implementation 2021-05-29 17:16:44 +02:00
inorichi
9a7740d950 Reenable SSE on x86 android builds 2021-05-29 17:15:40 +02:00
inorichi
13d690732f Remove unnecessary lines from cmake dependencies 2021-05-29 17:15:20 +02:00
inorichi
4528ad979d Compile libheif with avif and heif decoders 2021-05-27 18:01:14 +02:00
inorichi
0d9ab1f4c7 Fix GIF magic numbers 2021-05-25 19:47:39 +02:00
inorichi
e6d680f5b2 Update proguard rules 2021-05-25 17:27:49 +02:00
inorichi
fb29b07154 Add a function to find image type from the first bytes of a file 2021-05-25 17:07:36 +02:00
inorichi
c6b0318a9f Decode first frame of animated WebP 2021-05-24 18:31:20 +02:00
inorichi
0d437838ae Fix negative index crash 2021-05-16 22:03:52 +02:00
inorichi
c1c8ca6335 Fix bad allocation issue 2021-03-05 17:57:56 +01:00
inorichi
9cd4ec33c6 Fix crash when the stream is already closed 2021-02-22 20:55:37 +01:00
inorichi
75ab552d7f Fix bad png cropping 2021-02-22 20:21:32 +01:00
inorichi
2ea71875cf Support JPEG CMYK and YCCK decoding (crop borders isn't supported) 2021-02-18 17:59:59 +01:00
inorichi
d51fe6093e Make decoder constructor private and some minor changes. 2021-01-15 16:03:21 +01:00
inorichi
071400fd3f Fix jpeg decoder when used with high samples 2021-01-15 14:19:19 +01:00
inorichi
59de7acc71 Refactor some variables 2021-01-08 15:38:51 +01:00
inorichi
115be55dd1 Fix png artifacts & banding when ratio > 1 2021-01-08 14:58:13 +01:00
inorichi
be2be1a82f Remove PNG palette conversion to rgb, as it should be handled by set_expand 2021-01-08 12:05:01 +01:00
inorichi
b0f46c231e Fix crop borders on transparent png. Handle OOM on crop borders and fallback to uncropped image 2021-01-08 12:00:58 +01:00
inorichi
7d00af7ae0 Fix deprecation warnings 2021-01-06 19:59:49 +01:00
inorichi
89dc69503c Fix negative indexing 2021-01-06 19:32:06 +01:00
inorichi
8d0421ea97 Fix jpeg error before last scanline 2021-01-06 13:28:44 +01:00
inorichi
ec3ebb2666 Fix jpeg region decoder unfinished 2021-01-06 13:08:16 +01:00
inorichi
8652f0626e Fix bug in region decoder 2021-01-06 12:45:08 +01:00
inorichi
07b21d91d3 Make isRecycled property public 2021-01-05 18:08:49 +01:00
inorichi
ca28bd9850 Try to download cmake without sdkmanager 2021-01-05 17:49:09 +01:00
inorichi
67bb9222c9 Install used cmake version on jitpack 2021-01-05 17:19:36 +01:00
inorichi
3621050eb2 Initial commit 2021-01-04 18:53:50 +01:00