mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-15 13:37:29 +01:00
Webtoon Split: Improve performance (#7947)
This commit is contained in:
@@ -268,8 +268,8 @@ object ImageUtil {
|
||||
/**
|
||||
* Split the imageStream according to the provided splitData
|
||||
*/
|
||||
fun splitStrip(imageStream: InputStream, splitData: SplitData): InputStream {
|
||||
val bitmapRegionDecoder = getBitmapRegionDecoder(imageStream)
|
||||
fun splitStrip(splitData: SplitData, streamFn: () -> InputStream): InputStream {
|
||||
val bitmapRegionDecoder = getBitmapRegionDecoder(streamFn())
|
||||
?: throw Exception("Failed to create new instance of BitmapRegionDecoder")
|
||||
|
||||
logcat {
|
||||
|
||||
Reference in New Issue
Block a user