android-gpuimage icon indicating copy to clipboard operation
android-gpuimage copied to clipboard

GPUImageGaussianBlurFilter not working in Filtergroup

Open rbalajicse opened this issue 7 years ago • 4 comments

I am adding GPUImageGaussianBlurFilter & GPUImageBrightnessFilter in group filter for GPU Image. Brightness working fine while i am changing value in seek bar. But the problem is blur not working when using in filter group. the ui doesn't rendering when i am changing seek the bar. It renders only when the app goes background and come front.

The rendering happens fine when the blur filter not added to the Filter group. Please help me. Thanks.

rbalajicse avatar Oct 06 '17 12:10 rbalajicse

@rbalajicse I am experiencing the same issue. Have you resolved the problem?

hristorv avatar Mar 01 '18 10:03 hristorv

In my case, I want to have 2 filter (Lookup, Brightness), But when i set lookup to filters[0], brightness to filters[1], the change of lookup filters's intensity didn't affect image preview.

So I just make new GPUImageFilterGroup every time when any lookup or brightness value is changed.

It is working.

Good luck

mym0404 avatar Feb 20 '19 01:02 mym0404

@wasabeef same issue I add an adjuster for GPUImageSmoothToonFilter and set the blur size for blur filter, but the the blur is not effect while the seek bar change. Is there have a solution for this problem? image

iBotasky avatar Mar 26 '19 06:03 iBotasky

I found a solution with call runPendingOnDrawTasks(). Like this:

    public void setBlurSize(float value) {
        Log.e("onBlurSize ", " size " + value);
        blurFilter.setBlurSize(value);
        blurFilter.runPendingOnDrawTasks();
    }

And it works. But i don't know whether is that will cause another bug.

iBotasky avatar Mar 26 '19 07:03 iBotasky