On Tuesday, July 19, 2016 9:09:58 AM CEST, Dan Dennedy wrote: > On Fri, Jul 15, 2016 at 12:35 AM Jean-Baptiste Mardelle > <j...@kdenlive.org> wrote: > * frei0r.cairoblend: if we want to optimize it as I did for qtblend > > I know you moved onto qtblend, but I tried an optimization in > frei0r cairoblend tonight based on the idea of checking if the B > image has an all opaque alpha channel. I made it directly within > the frei0r mixer effect. I tried a couple of routines, but opted > for one that exits the loop as soon as a non-opaque alpha value > is found in order to reduce any overhead imposed by the > optimization. Also, I made it only apply when using the > normal/over operation and opacity parameter = 1.0. When all > conditions for optimization are met, I simply memcpy() that B > image to the output. I only see about a 9% speed gain, which is > fairly minor. I have not decided whether to commit that or not.
For the record, when comparing qtblend with the current version of frei0r.cairoblend, I get the following improvements (using Qt5.7): When no compositing is necessary (no alpha transparency): compositing video above color clip: 25% speed gain compositing video above another video: 42% speed gain When performing a compositing (lighten): compositing video above color clip: 28% speed gain compositing video above another video: 24% speed gain Regards jb ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports.http://sdm.link/zohodev2dev _______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel