heuristics ¶
Functions:
-
video_heuristics
–Determine the video heuristics from the frame properties.
-
video_resample_heuristics
–Get a kwargs object for a video's heuristics to pass to the resize plugin or Kernel.resample.
video_heuristics ¶
video_heuristics(
clip: VideoNode,
props: FrameProps | bool | None = None,
prop_in: bool = True,
assumed_return: bool = False,
) -> dict[str, PropEnum] | tuple[dict[str, PropEnum], list[str]]
Determine the video heuristics from the frame properties.
Parameters:
-
clip
¶VideoNode
) –Input clip.
-
props
¶FrameProps | bool | None
, default:None
) –FrameProps object. If true, it will grab props info from the clip. If None/False, obtains from just from input clip. Default: None.
-
prop_in
¶bool
, default:True
) –Return the dict with keys in the form of
{prop_name}_in
parameter. For example,matrix_in
instead ofmatrix
. For more information, please refer to theResize docs <https://www.vapoursynth.com/doc/functions/video/resize.html>
_. Default: True.
Returns:
-
dict[str, PropEnum] | tuple[dict[str, PropEnum], list[str]]
–A dict containing all the video heuristics that could be determined, optionally using key names derived from the
-
dict[str, PropEnum] | tuple[dict[str, PropEnum], list[str]]
–resize plugin.
Source code in vstools/functions/heuristics.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
|
video_resample_heuristics ¶
video_resample_heuristics(
clip: VideoNode, kwargs: KwargsT | None = None, **fmt_kwargs: Any
) -> KwargsT
Get a kwargs object for a video's heuristics to pass to the resize plugin or Kernel.resample.
Parameters:
-
clip
¶VideoNode
) –Clip to derive the heuristics from.
-
kwargs
¶KwargsT | None
, default:None
) –Keyword arguments for the _out parameters.
-
**fmt_kwargs
¶Any
, default:{}
) –Keyword arguments to pass to the output kwargs. These will override any heuristics that were derived from the input clip!
Returns:
-
KwargsT
–Keyword arguments to pass on to the resize plugin or Kernel.resample.
Source code in vstools/functions/heuristics.py
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
|