Speed up invert colors effect

Authored by andreagenor on Apr 7 2019, 8:11 AM.

Description

Speed up invert colors effect

Summary:
Signed-off-by: André Agenor <andreagenor@icloud.com>
If all channels are selected a native Qt function is called, it is faster than calculating all channels and pixels in a loop
This is 97% faster than before

Reviewers: tcanabrava

Reviewed By: tcanabrava

Subscribers: pino

Differential Revision: https://phabricator.kde.org/D20334

Details

Committed
andreagenorMay 6 2019, 1:24 PM
Reviewer
tcanabrava
Differential Revision
D20334: Speed up invert colors effect
Parents
R374:777e84cb1e7f: Remove warning static member accessed through instance
Branches
Unknown
Tags
Unknown