├── .gitignore
├── .settings
└── org.eclipse.jdt.core.prefs
├── AndroidManifest.xml
├── LICENSE
├── README.md
├── ic_launcher-web.png
├── libs
├── android-support-v4.jar
└── renderscript-v8.jar
├── proguard-project.txt
├── project.properties
├── res
├── drawable-hdpi
│ ├── gblur.jpg
│ └── ic_launcher.png
├── drawable-mdpi
│ └── ic_launcher.png
├── drawable-xhdpi
│ └── ic_launcher.png
├── drawable-xxhdpi
│ └── ic_launcher.png
├── layout
│ └── activity_main.xml
├── menu
│ └── main.xml
├── values-sw600dp
│ └── dimens.xml
├── values-sw720dp-land
│ └── dimens.xml
├── values-v11
│ └── styles.xml
├── values-v14
│ └── styles.xml
└── values
│ ├── dimens.xml
│ ├── strings.xml
│ └── styles.xml
└── src
└── com
└── example
└── ismygblur
├── GBlurPic.java
└── MainActivity.java
/.gitignore:
--------------------------------------------------------------------------------
1 | # built application files
2 | *.apk
3 | *.ap_
4 |
5 | # files for the dex VM
6 | *.dex
7 |
8 | # Java class files
9 | *.class
10 |
11 | # generated files
12 | bin/
13 | gen/
14 |
15 | # Local configuration file (sdk path, etc)
16 | local.properties
17 |
18 | # Eclipse project files
19 | .classpath
20 | .project
21 |
22 | # Proguard folder generated by Eclipse
23 | proguard/
24 |
25 | # Intellij project files
26 | *.iml
27 | *.ipr
28 | *.iws
29 | .idea/
30 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
3 | org.eclipse.jdt.core.compiler.compliance=1.6
4 | org.eclipse.jdt.core.compiler.source=1.6
5 |
--------------------------------------------------------------------------------
/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
11 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2013 wangwang4git
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
6 | this software and associated documentation files (the "Software"), to deal in
7 | the Software without restriction, including without limitation the rights to
8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 | the Software, and to permit persons to whom the Software is furnished to do so,
10 | subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | AndroidGaussianBlur
2 | ===================
3 |
4 | Android Gaussian Blur use RenderScript demo
5 |
6 | Info
7 | ======
8 | 1. The idea from App [Blurone -创作毛玻璃效果壁纸][1].
9 | 2. You just learn [RenderScript][2] to complete the App.
10 | 3. If you want to support Android `2.2+`, please look
11 | [RenderScript in the Android Support Library][3].
12 | 4. Download the support library and source, use `Android SDK Manager` download Android SDK Build-tools `18.1.0`.
13 | 5. Do `Gaussian Blur`, can use [ScriptIntrinsicBlur][4], and you also want to learn this [page][5].
14 | 6. If you look `RenderScript` source, some advanced below.
15 | * [GCC and Clang Vector Extensions][6]
16 |
17 |
18 | [1]: https://play.google.com/store/apps/details?id=com.nexdev.blurone&hl=zh-CN
19 | [2]: http://developer.android.com/guide/topics/renderscript/compute.html
20 | [3]: http://android-developers.blogspot.com/2013/09/renderscript-in-android-support-library.html
21 | [4]: http://android-developers.blogspot.com/2013/08/renderscript-intrinsics.html
22 | [5]: http://www.ruanyifeng.com/blog/2012/11/gaussian_blur.html
23 | [6]: https://vec.io/posts/gcc-and-clang-vector-extensions
--------------------------------------------------------------------------------
/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangwang4git/AndroidGaussianBlur/cdb32943a8f9aa24653c88ebf13afdcebcaae72b/ic_launcher-web.png
--------------------------------------------------------------------------------
/libs/android-support-v4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangwang4git/AndroidGaussianBlur/cdb32943a8f9aa24653c88ebf13afdcebcaae72b/libs/android-support-v4.jar
--------------------------------------------------------------------------------
/libs/renderscript-v8.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangwang4git/AndroidGaussianBlur/cdb32943a8f9aa24653c88ebf13afdcebcaae72b/libs/renderscript-v8.jar
--------------------------------------------------------------------------------
/proguard-project.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-19
15 | renderscript.target=18
16 | renderscript.support.mode=true
17 | sdk.buildtools=19.0.0
18 |
--------------------------------------------------------------------------------
/res/drawable-hdpi/gblur.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangwang4git/AndroidGaussianBlur/cdb32943a8f9aa24653c88ebf13afdcebcaae72b/res/drawable-hdpi/gblur.jpg
--------------------------------------------------------------------------------
/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangwang4git/AndroidGaussianBlur/cdb32943a8f9aa24653c88ebf13afdcebcaae72b/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangwang4git/AndroidGaussianBlur/cdb32943a8f9aa24653c88ebf13afdcebcaae72b/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangwang4git/AndroidGaussianBlur/cdb32943a8f9aa24653c88ebf13afdcebcaae72b/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wangwang4git/AndroidGaussianBlur/cdb32943a8f9aa24653c88ebf13afdcebcaae72b/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
10 |
11 |
15 |
16 |
23 |
24 |
30 |
31 |
32 |
33 |
39 |
40 |
45 |
46 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |