| 322 | save_queue.put((encoded, dest_path)) |
| 323 | |
| 324 | def image_save_thread(self, save_queue: queue.Queue, progress_bar: tqdm): |
| 325 | while True: |
| 326 | encoded, dest_path = save_queue.get() |
| 327 | if encoded is None: |
| 328 | return |
| 329 | if encoded is not False: |
| 330 | encoded.tofile(Path(dest_path)) |
| 331 | if progress_bar is not None: |
| 332 | progress_bar.update(1) |
| 333 | |
| 334 | def generate_timecode_list(self, scene_list: SceneList) -> list[list[FrameTimecode]]: |
| 335 | """Generates a list of timecodes for each scene in `scene_list` based on the current config |