Coder Social home page Coder Social logo

changjiashuai / imageblurring Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qiujuer/imageblurring

0.0 3.0 0.0 778 KB

Android 中通过 Java 与 JNI 分别进行图片模糊;并且进行比较其运算速度。

Home Page: http://www.qiujuer.net

License: Apache License 2.0

imageblurring's Introduction

ImageBlurring

Android 中通过 Java 与 JNI 分别进行图片模糊;并且进行比较其运算速度。

相关文章

备注消息

后期优化将会集成到项目:Genius-Android

Screenshots

RenderScript

Themes

Fast Blur

Themes

JniArray

Themes

JniBitMap

Themes

四种方式

  • RenderScript

    • 调用 Android 自带的 RenderScript 类进行图片模糊
    • 其模糊速度一般,与直接在Java层模糊区别不大
    • 我这边调试只能在 4.4 以上运行,理论上是 Android 17 以上都行
  • Fast Blur

    • Java层进行模糊
    • Fast Blur 是国外一位开发者发明的模糊方法
    • Fast Blur 原名是 堆栈模糊
  • JniArray

    • 其模糊规则是 堆栈模糊 的 C 语言实现
    • 在 JNI 层进行模糊,然后传回模糊后的数据
    • 在 Java 层对图片类解析得到 像素点 数组传入到 JNI 层
    • JNI 层对像素点集合进行模糊,模糊后传回
  • JniBitMap

    • 其模糊规则是 堆栈模糊 的 C 语言实现
    • 在 JNI 层进行模糊,然后传回模糊后的数据
    • 在 JNI 层直接对图片模糊,模糊后传回

你需要它

下载本项目,项目可导入到 Android Studio,Android Studio > 0.8.2

项目里边含有一个实例项目,项目中有 JNI 的源码实现,以及 JNI 的生成文件。

'Eclipse' 中无法直接导入项目,请先建立一个项目按照对应目录替换到自己项目中。

反馈

在使用中有任何问题,欢迎能及时反馈给我,可以用以下联系方式跟我交流

捐助我

在兴趣的驱动下,写一个免费的东西,有欣喜,也还有汗水,希望你喜欢我的作品,同时也能支持一下。 当然,有钱捧个钱场(支付宝: [email protected] );没钱捧个人场,谢谢各位。

关于我

  var info = {
    nickName  : "qiujuer",
    site : "http://www.qiujuer.net"
  }

License

Copyright 2014 CengaLabs.

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.

imageblurring's People

Contributors

qiujuer avatar

Watchers

James Cloos avatar changjiashuai avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.