fix: generating double the frames when frames are specified

This commit is contained in:
jlw_4049 2024-09-30 20:15:41 -04:00
parent 8602978a0a
commit ed4ebd31f8

@ -209,7 +209,9 @@ class GenerateImages:
# generate source images
ScreenGen(
vs_source_info,
frame_numbers=self.frames,
frame_numbers=[
self.frames[i] for i in range(len(self.frames)) if i % 2 == 0
],
fpng_compression=1,
folder=screenshot_comparison_dir,
suffix="a_source__%d",
@ -220,7 +222,9 @@ class GenerateImages:
# generate encode images
ScreenGen(
vs_encode_info,
frame_numbers=self.frames,
frame_numbers=[
self.frames[i] for i in range(len(self.frames)) if i % 2 != 0
],
fpng_compression=1,
folder=screenshot_comparison_dir,
suffix="b_encode__%d",