Mercurial > cgi-bin > hgweb.cgi > SimpleResizer
diff app/src/main/java/com/bartsent/simpleresizer/lib/LanczosKernel.kt @ 13:b1605be35bcc memo.oo
Dumping Bitmap yields 2x improvement!
author | David Barts <n5jrn@me.com> |
---|---|
date | Thu, 18 Feb 2021 14:15:26 -0800 |
parents | 678adef4774f |
children | 86740f593b6c |
line wrap: on
line diff
--- a/app/src/main/java/com/bartsent/simpleresizer/lib/LanczosKernel.kt Wed Feb 17 14:29:45 2021 -0800 +++ b/app/src/main/java/com/bartsent/simpleresizer/lib/LanczosKernel.kt Thu Feb 18 14:15:26 2021 -0800 @@ -4,7 +4,7 @@ import kotlin.math.abs import kotlin.math.sin -object LanczosKernel: ScalingKernel { +class LanczosKernel: ScalingKernel { override val size = 3.0 private val memory = HashMap<Double, Double>() init {