cats-oss / android-gpuimage

Android filters based on OpenGL (idea from GPUImage for iOS)
8.95k stars 2.26k forks source link

GpuImageView Flickering when using Group Filters #512

Open devarsh-mavani-19 opened 3 years ago

devarsh-mavani-19 commented 3 years ago

the gpuimageview is flickering when i try to update one of the filter using seekbar. the below code of onProgress change method of seekbar shows my approach. Please Help how can I remove flickering .

onProgress:

if(current == BRIGHTNESS) { arrayList.set(0, new GPUImageBrightnessFilter(BRIGHTNESS.getCurrent())); } else if(current == CONTRAST) { arrayList.set(1, new GPUImageContrastFilter(CONTRAST.getCurrent())); } filters= new GPUImageFilterGroup(arrayList); gpuImageView.setFilter(filters);

Please help me to find better approach if any. and provide suggestions to remove flickering

sz32 commented 3 years ago

@devarsh-mavani-19 I'm also getting the same issue while using GPUImageFilterGroup

Did you get the solution?