changeset 35:6607f675a5f7

Add licensing.
author David Barts <n5jrn@me.com>
date Thu, 11 Mar 2021 22:41:48 -0800
parents 19c584b29679
children 70f1d11d53ad
files LICENSE.txt app/src/main/java/com/bartsent/simpleresizer/lib/LanczosKernel.kt app/src/main/java/com/bartsent/simpleresizer/lib/Resizer.kt app/src/main/java/com/bartsent/simpleresizer/lib/getScaledInstance.kt
diffstat 4 files changed, 61 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /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.
--- 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
--- 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
--- 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
 
 /**