Apply LUT to any widget
cbenhagen opened this issue · 4 comments
I am especially interested in applying LUTs to video widgets.
Hi, @cbenhagen ! It seems to be impossible at this time. Because we can't access the widget's representation byte array in the dart code. And at this time the performance of dart's code isn't enough for this one. sure for better performance, we can use ':ffi' package but it's absolutely different story... and the first problem still should be figured out.
In my opinion for a video widget, LUTs should be applied into the "native" part of code.
Interesting. On iOS this task is very simple (both in Swift and Obj-C) - I would dig up into Flutter Image lib maybe there is something there.
On iOS and macOS we could use the CIColorCube
filter. But adding similar filters to all the native video players would be a pain or even impossible. Skia once had a SkColorCubeFilter
but it has been removed. Maybe we could try to get this back in?
@NiKoTron / @tomasdev please vote for flutter/flutter#55738 by adding a 👍reaction to the issue.