numpyimage 3.6.2__tar.gz → 3.6.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {numpyimage-3.6.2/numpyimage.egg-info → numpyimage-3.6.3}/PKG-INFO +1 -1
- {numpyimage-3.6.2 → numpyimage-3.6.3}/npimage/vidio.py +2 -2
- {numpyimage-3.6.2 → numpyimage-3.6.3/numpyimage.egg-info}/PKG-INFO +1 -1
- {numpyimage-3.6.2 → numpyimage-3.6.3}/pyproject.toml +1 -1
- {numpyimage-3.6.2 → numpyimage-3.6.3}/LICENSE +0 -0
- {numpyimage-3.6.2 → numpyimage-3.6.3}/README.md +0 -0
- {numpyimage-3.6.2 → numpyimage-3.6.3}/npimage/__init__.py +0 -0
- {numpyimage-3.6.2 → numpyimage-3.6.3}/npimage/align.py +0 -0
- {numpyimage-3.6.2 → numpyimage-3.6.3}/npimage/graphics.py +0 -0
- {numpyimage-3.6.2 → numpyimage-3.6.3}/npimage/imageio.py +0 -0
- {numpyimage-3.6.2 → numpyimage-3.6.3}/npimage/nrrd_utils.py +0 -0
- {numpyimage-3.6.2 → numpyimage-3.6.3}/npimage/operations.py +0 -0
- {numpyimage-3.6.2 → numpyimage-3.6.3}/npimage/utils.py +0 -0
- {numpyimage-3.6.2 → numpyimage-3.6.3}/numpyimage.egg-info/SOURCES.txt +0 -0
- {numpyimage-3.6.2 → numpyimage-3.6.3}/numpyimage.egg-info/dependency_links.txt +0 -0
- {numpyimage-3.6.2 → numpyimage-3.6.3}/numpyimage.egg-info/requires.txt +0 -0
- {numpyimage-3.6.2 → numpyimage-3.6.3}/numpyimage.egg-info/top_level.txt +0 -0
- {numpyimage-3.6.2 → numpyimage-3.6.3}/setup.cfg +0 -0
- {numpyimage-3.6.2 → numpyimage-3.6.3}/tests/test_heic.py +0 -0
- {numpyimage-3.6.2 → numpyimage-3.6.3}/tests/test_pbm.py +0 -0
- {numpyimage-3.6.2 → numpyimage-3.6.3}/tests/test_video_streamer.py +0 -0
- {numpyimage-3.6.2 → numpyimage-3.6.3}/tests/test_video_writers.py +0 -0
|
@@ -798,7 +798,8 @@ class FFmpegVideoWriter:
|
|
|
798
798
|
# Check if width or height needs to be padded to an even value
|
|
799
799
|
if (self._pixel_format_out == 'yuv420p'
|
|
800
800
|
and (width % 2 != 0 or height % 2 != 0)):
|
|
801
|
-
pad = [[0, 0], [0, 0]
|
|
801
|
+
pad = [[0, 0], [0, 0]] # [h, w]
|
|
802
|
+
pad += [[0, 0]] if pixel_format_in == 'rgb24' else []
|
|
802
803
|
if height % 2 != 0:
|
|
803
804
|
print('INFO: Height must be even for yuv420p pixel format but image'
|
|
804
805
|
f' has height {height}, so the bottom row will be duplicated.')
|
|
@@ -846,7 +847,6 @@ class FFmpegVideoWriter:
|
|
|
846
847
|
)
|
|
847
848
|
self._stdin = self._process.stdin
|
|
848
849
|
|
|
849
|
-
|
|
850
850
|
def write(self, frame):
|
|
851
851
|
"""Write a frame to the video file"""
|
|
852
852
|
if self._closed:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|