Vladimir Dostoyevskiy and GG Bond
21016dda53
Initial draft support export as cbz ( #685 )
...
* Initial draft support export as cbz
* Hint user progress
* Hint user result
* Emit comicInfo as well
* Write ComicInfo if not exist
* Use perFilename
* Print stacktrace
* Fix
* Refine
* Revert "Refine"
This reverts commit 2b368180fde00c7a8cfd4e895f1f2d5c29c3cf9f.
* Refine
* Refine
* Fix
---------
Co-authored-by: GG Bond <whatever@tagkong.com >
2024-02-06 06:44:11 +00:00
FooIbar
ce1dc55d3c
Add support for non-UTF-8 encoded archives ( #682 )
2024-02-04 22:24:32 +08:00
FooIbar
6bc80d1afa
[Marshmallow] Archive support
2024-01-06 22:02:00 +08:00
FooIbar
f2d94f1ed6
Use product flavors to provide marshmallow support ( #57 )
...
* Use product flavors to provide marshmallow support
Fix crashing when opening archives
* Fix artifacts upload
* Change artifact names
* Fix app updater
2023-10-14 19:14:19 +00:00
tarsin
8aa4c34794
Implement spinlock, don't use platform one
2023-04-29 19:26:47 +08:00
tarsin
797182fbf8
Fixup! Use spinlock for better performance
2023-04-29 17:18:30 +08:00
tarsin
711848f027
Use spinlock for better performance
2023-04-29 17:12:23 +08:00
tarsin
8924d36925
Tidy native function namespace
2023-03-22 17:48:10 +08:00
tarsin
c12bd32682
Allow decode avif
2023-03-19 00:32:10 +08:00
tarsin
f6458cd8ee
Cleanup some IO overhead
2023-02-28 17:58:45 +08:00
tarsin
c4a3f06b51
Cleanup unnecessary jni call
2023-02-27 17:05:54 +08:00
tarsin
1dd04740bb
Use MADV_DONTNEED as fallback
2023-02-24 19:22:10 +08:00
FooIbar
35201e6615
Use natsort for better archive file sorting
2023-02-24 18:43:08 +08:00
tarsin
86d416bccf
Don't populate archive
2023-02-24 18:33:44 +08:00
tarsin
704c2a261e
Use MAP_UNINITIALIZED to improve performance
2023-02-24 13:05:43 +08:00
tarsin
8fabdd1926
Suppress lint
2023-02-24 12:41:07 +08:00
tarsin
f9df373a16
Some infeasible optimization
2023-02-24 12:39:58 +08:00
tarsin
f959f98012
Minor cleanup
2023-02-24 12:02:42 +08:00
tarsin
e12a93f36b
Introduce new archive decompress mempool, Resolve #307
2023-02-24 11:37:30 +08:00
FooIbar
a8195c0e7c
Map archive index with filename order
...
Try to resolve #427
2022-12-17 12:53:13 +08:00
tarsin
5e13986cc0
Prefault archive mapping page tables for small files
2022-12-02 17:33:54 +08:00
tarsin
7ac20d59fc
Use DirectByteBuffer
...
Seems my mimalloc(I use it as Android's system allocator) doesn't like release memory to system since I replace MADV_DONTNEED with MADV_FREE
https://github.com/AcmeUI/android_external_mimalloc
but there is no memleak I sure
2022-11-21 12:11:35 +08:00
tarsin
54d11dea95
Initial migrate to ImageDecoder Java api, and downgrade minsdk to 28
2022-11-19 22:17:08 +08:00
tarsin
ae79417845
Adjust madvise usage
2022-11-10 15:21:17 +08:00
tarsin
50f0df5012
Explicitly set format and filter we use
...
This helps to reduce native library size
2022-11-10 00:56:49 +08:00
tarsin
bc08a09621
Fix read archive
2022-09-23 09:20:15 +08:00
txyyh
9251ed238c
Fix archive code error ( #289 )
2022-09-21 08:56:56 +08:00
tarsin
3b96328765
Use fixed size buffer
2022-09-20 18:29:35 +08:00
tarsin
108928e524
Implement save, share image from archive
2022-09-20 18:09:41 +08:00
tarsin
144e384441
Refine error handling
2022-08-21 12:00:29 +08:00
tarsin
9bb694171b
Implement multithreading archive read
2022-08-21 09:21:53 +08:00
tarsin
647362cd82
Implement multiple archive context, Fix #213
...
* This is useful for multithreading decompress with lock usage
2022-08-20 23:38:13 +08:00
tarsin
56996558df
Fix a use-after-free
2022-08-20 20:23:57 +08:00
tarsin
a0fe6f0d7d
Revert "archive: Use memfd instead"
...
* It sucks, seems simplify the conditions, but more syscalls are
made(read/seek/write), more context switch, futhermore AImageDecoder itself does support
read raw buffer, and we are not intend to support multi-process decoding
This reverts commit f4826ea727 .
2022-08-07 19:14:25 +08:00
tarsin
f4826ea727
archive: Use memfd instead
2022-08-07 17:13:48 +08:00
tarsin
a17b254494
Call mmap/munmap in native code
2022-08-07 15:23:32 +08:00
tarsin
c8dab6a88f
Archive: ignore crc32
2022-08-07 11:43:27 +08:00
tarsin
6f3bd92539
Merge native
2022-08-03 17:48:46 +08:00