Skip to content

Commit

Permalink
dynamic_scene_adaptive_grain: Use vstools.SceneAverageStats
Browse files Browse the repository at this point in the history
  • Loading branch information
LightArrowsEXE committed Feb 13, 2025
1 parent 2c8458c commit 7ab7b17
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lvsfunc/grain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from vstools import (DependencyNotFoundError, Keyframes, MismatchRefError,
from vstools import (Keyframes, MismatchRefError, SceneAverageStats,
find_prop_rfs, get_script_path, merge_clip_props, vs)

__all__: list[str] = [
Expand Down Expand Up @@ -41,11 +41,6 @@ def dynamic_scene_adaptive_grain(
:return: Clip with different types of graining applied based on the scene's luminosity.
"""

try:
from stgfunc import SceneAverageStats
except (ModuleNotFoundError, ImportError) as e:
raise DependencyNotFoundError(dynamic_scene_adaptive_grain, "stgfunc") from e

MismatchRefError.check(dynamic_scene_adaptive_grain, grain_dark, grain_bright)

if thr <= 0:
Expand Down

0 comments on commit 7ab7b17

Please sign in to comment.