Skip to content

Commit

Permalink
Few more scale ops
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Jun 6, 2024
1 parent 7a3881f commit 70a6398
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions aire-filters/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified aire/src/main/cpp/lib/arm64-v8a/libaire_filters.so
Binary file not shown.
Binary file modified aire/src/main/cpp/lib/armeabi-v7a/libaire_filters.so
Binary file not shown.
Binary file modified aire/src/main/cpp/lib/x86/libaire_filters.so
Binary file not shown.
Binary file modified aire/src/main/cpp/lib/x86_64/libaire_filters.so
Binary file not shown.
6 changes: 6 additions & 0 deletions aire/src/main/java/com/awxkee/aire/ResizeFunction.kt
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,10 @@ enum class ResizeFunction(internal val value: Int) {
EwaQuadric(35),
EwaRobidouxSharp(36),
EwaLanczos3Jinc(37),
Ginseng(38),
EwaGinseng(39),
EwaLanczosSharp(40),
EwaLanczos4Sharpest(41),
EwaLanczosSoft(42),
HaasnSoft(43),
}
10 changes: 5 additions & 5 deletions app/src/main/java/com/awxkee/aire/desktop/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,26 @@ class MainActivity : ComponentActivity() {
LaunchedEffect(key1 = Unit, block = {
scope.launch(Executors.newSingleThreadExecutor().asCoroutineDispatcher()) {
// val bitmap =
// BitmapFactory.decodeResource(resources, R.drawable.lin)
// BitmapFactory.decodeResource(resources, R.drawable.beach_horizon)
// .copy(Bitmap.Config.ARGB_8888, true)
//
// scope.launch {
// imagesArray.add(bitmap)
// }
//
// val srgb = Aire.scale(bitmap, bitmap.width / 2, bitmap.height / 2, ResizeFunction.EwaQuadric, ScaleColorSpace.SRGB)
// val srgb = Aire.scale(bitmap, 2000, 4000, ResizeFunction.EwaLanczosSoft, ScaleColorSpace.SRGB)
// scope.launch {
// imagesArray.add(srgb)
// }
// val linear = Aire.scale(bitmap, bitmap.width / 2, bitmap.height / 2, ResizeFunction.EwaRobidoux, ScaleColorSpace.LINEAR)
// val linear = Aire.scale(bitmap, 2000, 4000, ResizeFunction.EwaLanczos4Sharpest, ScaleColorSpace.LINEAR)
// scope.launch {
// imagesArray.add(linear)
// }
// val lab = Aire.scale(bitmap, bitmap.width / 2, bitmap.height / 2, ResizeFunction.EwaLanczos3Jinc, ScaleColorSpace.LAB)
// val lab = Aire.scale(bitmap, 2000, 4000, ResizeFunction.EwaGinseng, ScaleColorSpace.LAB)
// scope.launch {
// imagesArray.add(lab)
// }
// val luv = Aire.scale(bitmap, bitmap.width / 2, bitmap.height / 2, ResizeFunction.EwaBlackman, ScaleColorSpace.LUV)
// val luv = Aire.scale(bitmap, 2000, 4000, ResizeFunction.HaasnSoft, ScaleColorSpace.LUV)
// scope.launch {
// imagesArray.add(luv)
// }
Expand Down

0 comments on commit 70a6398

Please sign in to comment.