Skip to content

Commit

Permalink
Small changes in blur
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Jun 9, 2024
1 parent f2b00cf commit 151614e
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 3 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.
46 changes: 45 additions & 1 deletion app/src/main/java/com/awxkee/aire/desktop/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,55 @@ class MainActivity : ComponentActivity() {
// val bitmap =
// BitmapFactory.decodeResource(resources, R.drawable.default_test)
// .copy(Bitmap.Config.ARGB_8888, true)
////
//////
// scope.launch {
// imagesArray.add(bitmap)
// }
//
// delay(2000L)
//
// var radius = 71
//
// var time = measureTimeMillis {
// val image = Aire.gaussianBlur(bitmap, radius, radius.toFloat() / 6f)
// scope.launch {
// imagesArray.add(image)
// }
// }
// Log.d("AireMedian", "Blur timing gaussianBlur done in ${time}ms")
//
// time = measureTimeMillis {
// val image = Aire.stackBlur(bitmap, radius)
// scope.launch {
// imagesArray.add(image)
// }
// }
// Log.d("AireMedian", "Blur timing stackBlur done in ${time}ms")
//
// time = measureTimeMillis {
// val image = Aire.tentBlur(bitmap, radius)
// scope.launch {
// imagesArray.add(image)
// }
// }
// Log.d("AireMedian", "Blur timing tentBlur done in ${time}ms")
//
// time = measureTimeMillis {
// val image = Aire.fastGaussian2Degree(bitmap, radius)
// scope.launch {
// imagesArray.add(image)
// }
// }
// Log.d("AireMedian", "Blur timing fastGaussian2Degree done in ${time}ms")
//
// time = measureTimeMillis {
// val image = Aire.boxBlur(bitmap, radius)
// scope.launch {
// imagesArray.add(image)
// }
// }
// Log.d("AireMedian", "Blur timing boxBlur done in ${time}ms")
//

// val entries = ResizeFunction.entries
// for (entry in entries) {
Expand Down

0 comments on commit 151614e

Please sign in to comment.