public void setKernel ( float [ ] values , float colorAdj ) { if ( values . length != KERNEL_SIZE ) { throw new IllegalArgumentException ( "Kernel size is " + values . length + " vs. " + KERNEL_SIZE ) ; } System . arraycopy ( values , 0 , mKernel , 0 , KERNEL_SIZE ) ; mColorAdjust = colorAdj ; //Log.d(TAG, "filt kernel: " + Arrays.toString(mKernel) + ", adj=" + colorAdj); }
Configures the convolution filter values . This only has an effect for programs that use the FRAGMENT_SHADER_EXT_FILT Fragment shader .