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
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