aboutsummaryrefslogtreecommitdiff
path: root/src/video_thread.py
diff options
context:
space:
mode:
authortassaron2022-05-02 19:55:29 -0400
committertassaron2022-05-02 19:55:29 -0400
commit8293328d66a27245e1c90e19b1fbc004ee8ef033 (patch)
treeb7222b1c6a74f610ad4d66b459f5da5cbec31d49 /src/video_thread.py
parente8097b4065d257586ffa4a16f7ed98f4120656ca (diff)
Don't render checkerboard during preview
It was nice for consistency with the editing preview, but this slows down the main thread if we're doing the preview synchronously. And it's not really inaccurate to the final product, as far as I know.
Diffstat (limited to 'src/video_thread.py')
-rw-r--r--src/video_thread.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/video_thread.py b/src/video_thread.py
index 0a95201..0895547 100644
--- a/src/video_thread.py
+++ b/src/video_thread.py
@@ -120,11 +120,9 @@ class Worker(QtCore.QObject):
adds it to the checkerboard and emits a final QImage
to the MainWindow for the live preview
'''
- background = Checkerboard(self.width, self.height)
- image = Image.alpha_composite(background.copy(), frame)
# We must store a reference to this QImage
# or else Qt will garbage-collect it on the C++ side
- self.latestPreview = ImageQt(image)
+ self.latestPreview = ImageQt(frame)
self.imageCreated.emit(QtGui.QImage(self.latestPreview))
self.lastPreview = time.time()