nikolaydymura / native_filters

MIT License
25 stars 11 forks source link

Create FilterConfigurationBuilder class to pass group of arguments #5

Closed nikolaydymura closed 2 years ago

nikolaydymura commented 2 years ago

class FilterConfigurationBuilder { final Map<String, dynamic> _params = {};

void setNSNumber(String key, num value) { _params[key] = value; }

void setFloat(String key, num value) {

}

void setNSData(String key, Uint8List data) {}

void setNSDataAsset(String key, String asset) {}

void setNSDataFile(String key, File file) {}

Map<String, dynamic> get params => Map.of(_params); }

https://github.com/MasayukiSuda/GPUVideo-android/tree/master/gpuv/src/main/java/com/daasuu/gpuv/egl/filter https://github.com/cats-oss/android-gpuimage/tree/master/library/src/main/java/jp/co/cyberagent/android/gpuimage/filter https://cifilter.io/