kikoso / android-stackblur

Android StackBlur is a library that can perform a blurry effect on a Bitmap based on a gradient or radius, and return the result. The library is based on the code of Mario Klingemann.
Apache License 2.0
3.59k stars 648 forks source link

is it possible to quick tweak the process(int radius), so the seekbar can act more smoother? #2

Closed imcaspar closed 11 years ago

imcaspar commented 11 years ago

Awesome work:-) I wonder is it possible to quick tweak the process(int radius) method, reduce to difference between two levels so the seekbar can act smoother?

kikoso commented 11 years ago

Hello imcaspar,

Is definitely possible, there is a lot of space and possibilities to refine and improve the performance. The Test application just calls to process() based on the seekbar position, but it could be done using smaller values, pre-calculating closer images in Background to have them ready when they are requested...

I am personally running out of time, but if you have a concrete request you can write it and I will try to take care of it (and of course you can implement it and send a pull request :-) )

Regards

imcaspar commented 11 years ago

Hello kikoso, Thanks for your kindly help. I will try to figure it out. PS: Looks like we can improve perfermace using this C++ multi-threaded version http://vitiy.info/stackblur-algorithm-multi-threaded-blur-for-cpp/

Regards

kikoso commented 11 years ago

Hello imcaspar,

Yes, is one of the points on the TO-DO List. I want to believe I will get time during this year to do it :-)

Regards