numpyimage 2.8.0__tar.gz → 2.9.0__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-2.8.0/numpyimage.egg-info → numpyimage-2.9.0}/PKG-INFO +1 -1
- {numpyimage-2.8.0 → numpyimage-2.9.0}/npimage/vidio.py +5 -0
- {numpyimage-2.8.0 → numpyimage-2.9.0/numpyimage.egg-info}/PKG-INFO +1 -1
- {numpyimage-2.8.0 → numpyimage-2.9.0}/pyproject.toml +1 -1
- {numpyimage-2.8.0 → numpyimage-2.9.0}/LICENSE +0 -0
- {numpyimage-2.8.0 → numpyimage-2.9.0}/README.md +0 -0
- {numpyimage-2.8.0 → numpyimage-2.9.0}/npimage/__init__.py +0 -0
- {numpyimage-2.8.0 → numpyimage-2.9.0}/npimage/align.py +0 -0
- {numpyimage-2.8.0 → numpyimage-2.9.0}/npimage/graphics.py +0 -0
- {numpyimage-2.8.0 → numpyimage-2.9.0}/npimage/imageio.py +0 -0
- {numpyimage-2.8.0 → numpyimage-2.9.0}/npimage/nrrd_utils.py +0 -0
- {numpyimage-2.8.0 → numpyimage-2.9.0}/npimage/operations.py +0 -0
- {numpyimage-2.8.0 → numpyimage-2.9.0}/npimage/utils.py +0 -0
- {numpyimage-2.8.0 → numpyimage-2.9.0}/numpyimage.egg-info/SOURCES.txt +0 -0
- {numpyimage-2.8.0 → numpyimage-2.9.0}/numpyimage.egg-info/dependency_links.txt +0 -0
- {numpyimage-2.8.0 → numpyimage-2.9.0}/numpyimage.egg-info/requires.txt +0 -0
- {numpyimage-2.8.0 → numpyimage-2.9.0}/numpyimage.egg-info/top_level.txt +0 -0
- {numpyimage-2.8.0 → numpyimage-2.9.0}/setup.cfg +0 -0
- {numpyimage-2.8.0 → numpyimage-2.9.0}/tests/test_heic.py +0 -0
- {numpyimage-2.8.0 → numpyimage-2.9.0}/tests/test_pbm.py +0 -0
- {numpyimage-2.8.0 → numpyimage-2.9.0}/tests/test_video.py +0 -0
|
@@ -439,6 +439,8 @@ class VideoWriter:
|
|
|
439
439
|
self.stream.height = 0
|
|
440
440
|
|
|
441
441
|
def write(self, frame):
|
|
442
|
+
if self._closed:
|
|
443
|
+
raise RuntimeError('VideoWriter is closed, cannot write more frames.')
|
|
442
444
|
if not isinstance(frame, self.av.VideoFrame):
|
|
443
445
|
if not isinstance(frame, np.ndarray):
|
|
444
446
|
frame = np.array(frame)
|
|
@@ -468,6 +470,9 @@ class VideoWriter:
|
|
|
468
470
|
return self
|
|
469
471
|
|
|
470
472
|
def __exit__(self, exc_type, exc_val, exc_tb):
|
|
473
|
+
self.close()
|
|
474
|
+
|
|
475
|
+
def close(self):
|
|
471
476
|
# Flush stream
|
|
472
477
|
for packet in self.stream.encode():
|
|
473
478
|
self.container.mux(packet)
|
|
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
|