Package 

Class BlurNative

  • All Implemented Interfaces:
    com.qmdeve.blurview.Blur

    
    public class BlurNative
     implements Blur
                        

    Native blur implementation, Gaussian blur through JNI call cpp code

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int blurRounds
    • Method Summary

      Modifier and Type Method Description
      int getBlurRounds() Get the current number of blur rounds
      void setBlurRounds(int rounds) Set the number of blur iterationsEach iteration applies both horizontal and vertical blur passesMore iterations = stronger blur effect
      static native void blur(Object bitmap, int radius, int threadCount, int threadIndex, int round)
      boolean prepare(Bitmap buffer, float radius)
      void release()
      void blur(Bitmap input, Bitmap output)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getBlurRounds

         int getBlurRounds()

        Get the current number of blur rounds

      • setBlurRounds

         void setBlurRounds(int rounds)

        Set the number of blur iterationsEach iteration applies both horizontal and vertical blur passesMore iterations = stronger blur effect

        Parameters:
        rounds - Number of blur iterations (1-15)
      • blur

         static native void blur(Object bitmap, int radius, int threadCount, int threadIndex, int round)
        Parameters:
        bitmap - Bitmap objects to be blurred
        radius - Blur radius
        threadCount - Total number of threads
        threadIndex - Current thread index
        round - Blur round