Compare commits
2 Commits
33670e0659
...
21fe61ab41
Author | SHA1 | Date | |
---|---|---|---|
|
21fe61ab41 | ||
|
2f4ae6001e |
2
LICENSE
2
LICENSE
@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2023 jlw_4049
|
Copyright (c) 2024 Jessie Wilson
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
from image_generator import GenerateImages
|
from frame_forge import GenerateImages
|
||||||
from image_generator.exceptions import ImageGeneratorError
|
from frame_forge.exceptions import FrameForgeError
|
||||||
from image_generator.utils import exit_application
|
from frame_forge.utils import exit_application
|
||||||
|
|
||||||
|
|
||||||
program_name = "Comparison Image Generator"
|
program_name = "FrameForge"
|
||||||
__version__ = "1.1.0"
|
__version__ = "1.0.0"
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
@ -106,5 +106,5 @@ if __name__ == "__main__":
|
|||||||
img_gen = img_generator.process_images()
|
img_gen = img_generator.process_images()
|
||||||
if img_gen:
|
if img_gen:
|
||||||
exit_application(f"Output: {img_gen}", 0)
|
exit_application(f"Output: {img_gen}", 0)
|
||||||
except ImageGeneratorError as error:
|
except FrameForgeError as error:
|
||||||
exit_application(error, 1)
|
exit_application(error, 1)
|
@ -6,8 +6,8 @@ from numpy import linspace
|
|||||||
from unidecode import unidecode
|
from unidecode import unidecode
|
||||||
import awsmfunc
|
import awsmfunc
|
||||||
import vapoursynth as vs
|
import vapoursynth as vs
|
||||||
from image_generator.exceptions import ImageGeneratorError
|
from frame_forge.exceptions import FrameForgeError
|
||||||
from image_generator.utils import get_working_dir, hex_to_bgr
|
from frame_forge.utils import get_working_dir, hex_to_bgr
|
||||||
|
|
||||||
|
|
||||||
class GenerateImages:
|
class GenerateImages:
|
||||||
@ -362,7 +362,7 @@ class GenerateImages:
|
|||||||
frame += 1
|
frame += 1
|
||||||
b_frames[i] = frame
|
b_frames[i] = frame
|
||||||
except ValueError:
|
except ValueError:
|
||||||
raise ImageGeneratorError(
|
raise FrameForgeError(
|
||||||
"Error! Your encode file is likely an incomplete or corrupted encode"
|
"Error! Your encode file is likely an incomplete or corrupted encode"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -579,7 +579,7 @@ class GenerateImages:
|
|||||||
def load_plugins(self):
|
def load_plugins(self):
|
||||||
plugin_path = get_working_dir() / "img_plugins"
|
plugin_path = get_working_dir() / "img_plugins"
|
||||||
if not plugin_path.is_dir() and not plugin_path.exists():
|
if not plugin_path.is_dir() and not plugin_path.exists():
|
||||||
raise ImageGeneratorError("Can not detect plugin directory")
|
raise FrameForgeError("Can not detect plugin directory")
|
||||||
else:
|
else:
|
||||||
for plugin in plugin_path.glob("*.dll"):
|
for plugin in plugin_path.glob("*.dll"):
|
||||||
self.core.std.LoadPlugin(Path(plugin).resolve())
|
self.core.std.LoadPlugin(Path(plugin).resolve())
|
@ -1,2 +1,2 @@
|
|||||||
class ImageGeneratorError(Exception):
|
class FrameForgeError(Exception):
|
||||||
"""Handle all exceptions thrown by image generation"""
|
"""Handle all exceptions thrown by image generation"""
|
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "image-generator"
|
name = "frame-forge"
|
||||||
version = "1.1.0"
|
version = "1.0.0"
|
||||||
description = "CLI to offload image generation to"
|
description = "CLI to offload image generation to"
|
||||||
authors = ["jlw4049 <jlw_4049@hotmail.com>"]
|
authors = ["jlw4049 <jlw_4049@hotmail.com>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
Loading…
Reference in New Issue
Block a user