forked from OpenShot/libopenshot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Frame.cpp: Avoid unnecessary copy of image data
As mentioned in issue OpenShot#202 QImage::bits() and QImage::scanLine() make a deep copy of the source image. This is completely unnecessary when read-only access to the pixel data is required. Changing to QImage::constBits() and QImage::constScanLine() solves this. Both functions were introduced in Qt 4.7. https://doc.qt.io/qt-5/qimage.html#constBits
- Loading branch information
1 parent
d539e46
commit 4b76c1e
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters