# HG changeset patch # User David Barts # Date 1615531308 28800 # Node ID 6607f675a5f71a54ca86813415f43b824540ac66 # Parent 19c584b29679529b61146ce1e5b2f8cc19b7560f Add licensing. diff -r 19c584b29679 -r 6607f675a5f7 LICENSE.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LICENSE.txt Thu Mar 11 22:41:48 2021 -0800 @@ -0,0 +1,49 @@ +The MIT License (MIT) + +Copyright © 2021 David W. Barts + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +“Software”), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Moreover, the Lanczos-3 image resampling code has been borrowed and +converted from the disintegration/imaging package +(https://github.com/disintegration/imaging), under the terms of the +following license: + +The MIT License (MIT) + +Copyright (c) 2012 Grigory Dryapak + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff -r 19c584b29679 -r 6607f675a5f7 app/src/main/java/com/bartsent/simpleresizer/lib/LanczosKernel.kt --- a/app/src/main/java/com/bartsent/simpleresizer/lib/LanczosKernel.kt Thu Mar 11 17:31:56 2021 -0800 +++ b/app/src/main/java/com/bartsent/simpleresizer/lib/LanczosKernel.kt Thu Mar 11 22:41:48 2021 -0800 @@ -1,5 +1,9 @@ package com.bartsent.simpleresizer.lib +/* + * Some code in this file has been adapted from: https://github.com/disintegration/imaging/ . + */ + import kotlin.math.PI import kotlin.math.abs import kotlin.math.sin diff -r 19c584b29679 -r 6607f675a5f7 app/src/main/java/com/bartsent/simpleresizer/lib/Resizer.kt --- a/app/src/main/java/com/bartsent/simpleresizer/lib/Resizer.kt Thu Mar 11 17:31:56 2021 -0800 +++ b/app/src/main/java/com/bartsent/simpleresizer/lib/Resizer.kt Thu Mar 11 22:41:48 2021 -0800 @@ -1,5 +1,9 @@ package com.bartsent.simpleresizer.lib +/* + * Some code in this file has been adapted from: https://github.com/disintegration/imaging/ . + */ + import android.graphics.Bitmap import android.graphics.Color import android.util.Log diff -r 19c584b29679 -r 6607f675a5f7 app/src/main/java/com/bartsent/simpleresizer/lib/getScaledInstance.kt --- a/app/src/main/java/com/bartsent/simpleresizer/lib/getScaledInstance.kt Thu Mar 11 17:31:56 2021 -0800 +++ b/app/src/main/java/com/bartsent/simpleresizer/lib/getScaledInstance.kt Thu Mar 11 22:41:48 2021 -0800 @@ -1,5 +1,9 @@ package com.bartsent.simpleresizer.lib +/* + * Some code in this file has been adapted from: https://github.com/disintegration/imaging/ . + */ + import android.graphics.Bitmap /**