Efficient image processing with Flutter?

Viewed 2660

I'm in process of writing photo editing app and I want to know if there any more efficient way to solve my task.

Task: GPU-accelerated 2d image processing of float type images on Android with OpenGL/Vulkan and Metal on iOS.

Current pipeline is following: UI made with flutter controls C++ backend via dart:ffi that utilizes Halide lang generators to efficiently offload computation to OpenGL or Metal.

I am worried about complexity. Halide has it's own caveats, dart:ffi it's own and usage of C to glue C++ and Dart too.

Q: Is there any way to efficiently compute image pixel values with Flutter? Any SkSL API exposure on the roadmap?

1 Answers

Flutter SDK exposes API from the Skia engine through Canvas. One way of accessing these API is via packages like graphx. Since early 2020, Flutter renders with Metal on iOS, and OpenGL on Android by default.

Related