项目
在 GitHub 查看
qiujuer/ImageBlurring
关于
使用 Java 和 JNI 对 Android 图像(Bitmap)进行模糊处理。
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- -1
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README-ZH.md
原文ImageBlurring
Android 中通过 Java 与 JNI 分别进行图片模糊;并且进行比较其运算速度。
Thanks
相关文章
演示APK
备注消息
已集成到新项目:Genius-Android
Screenshots
BLUR

Animation

四种方式
RenderScript- 调用 Android 自带的
RenderScript类进行图片模糊 - 其模糊速度一般,与直接在Java层模糊区别不大
- 我这边调试只能在
4.4以上运行,理论上是Android 17以上都行
- 调用 Android 自带的
Fast Blur- Java层进行模糊
Fast Blur是国外一位开发者发明的模糊方法Fast Blur原名是 堆栈模糊
JniArray- 其模糊规则是
堆栈模糊的 C 语言实现 - 在 JNI 层进行模糊,然后传回模糊后的数据
- 在 Java 层对图片类解析得到 像素点 数组传入到 JNI 层
- JNI 层对像素点集合进行模糊,模糊后传回
- 其模糊规则是
JniBitMap- 其模糊规则是
堆栈模糊的 C 语言实现 - 在 JNI 层进行模糊,然后传回模糊后的数据
- 在 JNI 层直接对图片模糊,模糊后传回
- 其模糊规则是
你需要它
开发项目, 项目导入到 Android Studio,Gradle version 1.2.3 => gradle.2.8
项目里边含有一个实例项目,项目中有 JNI 的源码实现,以及 JNI 的生成文件。
'Eclipse' 中无法直接导入项目,请先建立一个项目按照对应目录替换到自己项目中。
反馈
在使用中有任何问题,欢迎能及时反馈给我,可以用以下联系方式跟我交流
- 邮件:[email protected]
- QQ: 756069544
- Weibo: @qiujuer
- 网站:www.qiujuer.net
捐助我
在兴趣的驱动下,写一个免费的东西,有欣喜,也还有汗水,希望你喜欢我的作品,同时也能支持一下。
当然,有钱捧个钱场(支付宝: [email protected] );没钱捧个人场,谢谢各位。
关于我
var info = {
nickName : "qiujuer",
site : "http://www.qiujuer.net"
}
License
Copyright 2014-2016 Qiujuer.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
探索相关项目
加载中…