Courtesy of @inorichi.
Branch: https://github.com/tachiyomiorg/subsampling-scale-image-view/commits/tachiyomi-new-decoder
Decoding speed will be a bit slower now due to two passes if crop borders is enabled, but should be more
reliable on colored images and work for black borders. Memory usage (re: leaks) should also be better.
(cherry picked from commit 762f5bdc339ec04196c6694db1b4da902256abb1)
# Conflicts:
# app/build.gradle.kts