cats-oss / android-gpuimage

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

GPUImageGaussianBlurFilter not wokring with GroupFilters #509

Open zaid-asif-brainx opened 3 years ago

zaid-asif-brainx commented 3 years ago

Hi, I'm adding multiple filters on one image, I'm adjusting the values with seekbar.

        var filterss = GPUImageFilterGroup(list)        // filters list
        var mergedFilters = filterss.mergedFilters;
        imageView.filter = filter

        filterAdjuster = GPUImageFilterTools.FilterAdjuster(mergedFilters[position])  ///for  GPUImageGaussianBlurFilter  the adjuster is null always.   (position is where the current filter is present on the filter list)
Dimezis commented 3 years ago

You're not supposed to directly touch mergedFilters. They will not contain GPUImageGaussianBlurFilter, because it's a Group Filter on its own and will be flattened in the group. It's not a bug, it's designed to work like that

Save a reference to your GPUImageGaussianBlurFilter and use it as you wish.