Mikael Sand

Results 142 comments of Mikael Sand

It seems renderscript will almost certainly be the fastest implementation available on android: https://stackoverflow.com/a/23119957/1925631 https://github.com/patrickfav/Dali/blob/master/dali/src/main/java/at/favre/lib/dali/blur/algorithms/RenderScriptGaussianBlur.java https://android-developers.googleblog.com/2013/08/renderscript-intrinsics.html And the implementation seems quite straightforward, along the lines of: ```java RenderScript rs =...

And for iOS something like this: https://stackoverflow.com/a/28614430/1925631 ```obj-c // Needs CoreImage.framework - (UIImage *)blurredImageWithImage:(UIImage *)sourceImage{ // Create our blurred image CIContext *context = [CIContext contextWithOptions:nil]; CIImage *inputImage = [CIImage imageWithCGImage:sourceImage.CGImage];...

So, now the boilerplate for the elements and filter attribute would be needed, and of course, the main work of making the filter element create a rendering pipeline according to...

@glthomas Does this help? How much experience do you have with java and objective-c? What parts would you be interested in working on? Perhaps I can give some more specific...

Oh, my cache updated once I sent the message, didn't see your reply before sending.

Latest draft of the Filter Effects Module https://drafts.fxtf.org/filter-effects/ Inspiration for filter graph building: https://github.com/chromium/chromium/blob/master/third_party/blink/renderer/core/paint/filter_effect_builder.cc

And some inspiration from firefox https://dxr.mozilla.org/mozilla-beta/source/dom/svg/SVGFilterElement.h https://dxr.mozilla.org/mozilla-beta/source/dom/svg/SVGFilterElement.cpp https://dxr.mozilla.org/mozilla-beta/source/dom/svg/nsSVGFilters.h https://dxr.mozilla.org/mozilla-beta/source/gfx/src/FilterSupport.cpp https://dxr.mozilla.org/mozilla-beta/source/layout/svg/nsCSSFilterInstance.cpp https://dxr.mozilla.org/mozilla-beta/source/layout/svg/nsSVGFilterInstance.cpp

And webkit: https://github.com/WebKit/webkit/blob/master/Source/WebCore/rendering/svg/RenderSVGResourceFilter.cpp https://github.com/WebKit/webkit/blob/master/Source/WebCore/svg/SVGFilterElement.cpp

Needed interfaces for the elements and the bridge: https://drafts.fxtf.org/filter-effects/#idl-index ```IDL interface mixin SVGURIReference { [SameObject] readonly attribute SVGAnimatedString href; }; interface SVGFilterElement : SVGElement { readonly attribute SVGAnimatedEnumeration filterUnits; readonly...

Started work on the boilerplate: https://github.com/react-native-community/react-native-svg/commit/448e7952554e264cac4ccd65c1e1f2a44197ddf4