VSE: Speed up "Alpha Over" if the pixels are fully transparent or opaque #117134

Merged
Sebastian Parborg merged 1 commits from ZedDB/blender:vse_alpha_over into main 2024-01-15 18:13:00 +01:00

1 Commits

Author SHA1 Message Date
Sebastian Parborg 9abbba7744 VSE: Speed up "Alpha Over" if the pixels are fully transparent or opaque
Before we always did a float conversion of the colors even if we
wouldn't use the result.
Be cause the float conversion does alpha premultiplication, we can
use some shortcuts to skip a lot of computations

In a edit with a lot of fully transparent pixels, I observed a reduction
in total render time from 1m 31s to 1m 17s.
2024-01-15 18:10:17 +01:00