diff options
| author | tassaron | 2017-07-02 21:38:19 -0400 |
|---|---|---|
| committer | tassaron | 2017-07-02 21:38:19 -0400 |
| commit | 3a6d7ae421ad2b650cac7f17d43be313787f0e61 (patch) | |
| tree | 1788ad881bb621d6d3bc2962d3d8b65e9f952522 /src/components/video.py | |
| parent | 0da275bf1b1dd2c956fed9d4a1051dcf3365c382 (diff) | |
frame-drawing tools for components to share
Diffstat (limited to 'src/components/video.py')
| -rw-r--r-- | src/components/video.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/video.py b/src/components/video.py index c5649c5..175cf29 100644 --- a/src/components/video.py +++ b/src/components/video.py @@ -7,6 +7,7 @@ import threading from queue import PriorityQueue from component import Component, BadComponentInit +from frame import BlankFrame class Video: @@ -145,7 +146,7 @@ class Component(Component): self.updateChunksize(width, height) frame = self.getPreviewFrame(width, height) if not frame: - return self.blankFrame(width, height) + return BlankFrame(width, height) else: return frame @@ -153,7 +154,7 @@ class Component(Component): super().preFrameRender(**kwargs) width = int(self.worker.core.settings.value('outputWidth')) height = int(self.worker.core.settings.value('outputHeight')) - self.blankFrame_ = self.blankFrame(width, height) + self.blankFrame_ = BlankFrame(width, height) self.updateChunksize(width, height) self.video = Video( ffmpeg=self.parent.core.FFMPEG_BIN, videoPath=self.videoPath, @@ -279,11 +280,11 @@ def finalizeFrame(self, imageData, width, height): '### BAD VIDEO SELECTED ###\n' 'Video will not export with these settings' ) - return self.blankFrame(width, height) + return BlankFrame(width, height) if self.scale != 100 \ or self.xPosition != 0 or self.yPosition != 0: - frame = self.blankFrame(width, height) + frame = BlankFrame(width, height) frame.paste(image, box=(self.xPosition, self.yPosition)) else: frame = image |
