GithubHelp home page GithubHelp logo

qiujuer / imageblurring Goto Github PK

View Code? Open in Web Editor NEW
1.5K 1.5K 306.0 6.51 MB

Android blurring image(bitmap) by java and jni.

Home Page: http://genius.qiujuer.net/module/blur.html

License: Apache License 2.0

Makefile 0.72% C 36.53% Java 62.74%

imageblurring's Issues

New implementation

Hi, I would like to thank you for such a great piece of code.

I am using your code in one of my project. However, there is a slight change. Instead of showing white colored text, I want to show clear (non-blurred) background as my text color. I mean wherever the text comes, the background should not be blurred.

ld returned 1 exit status

/Users/matinghao/work/github/ImageBlurring/blur/src/main/obj/local/arm64-v8a/objs/genius_blur/net_qiujuer_genius_blur_StackNative.o: In function Java_net_qiujuer_genius_blur_StackNative_blurPixels': /Users/matinghao/work/github/ImageBlurring/blur/src/main/jni/net_qiujuer_genius_blur_StackNative.c:22: undefined reference toblur'
/Users/matinghao/work/github/ImageBlurring/blur/src/main/obj/local/arm64-v8a/objs/genius_blur/net_qiujuer_genius_blur_StackNative.o: In function Java_net_qiujuer_genius_blur_StackNative_blurBitmap': /Users/matinghao/work/github/ImageBlurring/blur/src/main/jni/net_qiujuer_genius_blur_StackNative.c:70: undefined reference toblur'
collect2: error: ld returned 1 exit status
make: *** [/Users/matinghao/work/github/ImageBlurring/blur/src/main/obj/local/arm64-v8a/libgenius_blur.so] Error 1

Blurred moving view

Hi, I am using your code in my application. However their is a slight problem. The view which have blurred is movable. When I click on a button, the blurred view (TextView) translates to different position. I want the blurred TextView to show blurred background in run time. I mean whichever part of the full image comes behind the TextView, while its moving, should be blurred. Is it possible? How can I achieve it?

Thanks.

Appcrash when running on Genymotion Emulator

Hi, I have tried your code, and the fastBlur actually will cause crash on Genymotion Emulator, not all of them, but a few emulators, for example, Galaxy S5-4.4.2-API19 1080x1920, 480dpi

Here is the exception:
java.lang.ArrayIndexOutOfBoundsException: length=112896; index=113033
at net.qiujuer.imageblurring.util.FastBlur.doBlur(FastBlur.java:155)
at net.qiujuer.imageblurring.fragments.FastBlurFragment.blur(FastBlurFragment.java:83)

Do you know what this could be?
Thanks.

Fastest method

Among the methods to blur the image, which one is the fastest?

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.