cuda ¶
Classes:
CudaCompileFlags dataclass
¶
CudaCompileFlags(
std: Literal[3, 11, 14, 17, 20] = 17,
use_fast_math: bool = True,
extra_vectorization: bool = True,
options: tuple[str, ...] | None = None,
)
Methods:
-
to_tuple
–
Attributes:
-
extra_vectorization
(bool
) – -
options
(tuple[str, ...] | None
) – -
std
(Literal[3, 11, 14, 17, 20]
) – -
use_fast_math
(bool
) –
to_tuple ¶
Source code
36 37 38 39 40 41 42 43 44 45 46 47 48 |
|
CudaKernelFunction ¶
Methods:
-
__call__
–
__call__ ¶
__call__(
src: NDT_T,
dst: NDT_T,
*args: Any,
kernel_size: tuple[int, ...] = ...,
block_size: tuple[int, ...] = ...,
shared_mem: int = ...
) -> Any
Source code
71 72 73 74 75 |
|
CudaKernelFunctionPlanes ¶
Bases: CudaKernelFunction[NDT_T]
Methods:
-
__call__
–
__call__ ¶
__call__(
src: NDT_T,
dst: NDT_T,
*args: Any,
kernel_size: tuple[int, ...] = ...,
block_size: tuple[int, ...] = ...,
shared_mem: int = ...
) -> Any
Source code
71 72 73 74 75 |
|
PyPluginCuda ¶
Bases: PyPluginCudaBase[FD_T]
Methods:
-
__call__
– -
ensure_output
– -
invoke
– -
process
–
Attributes:
-
DT
(TypeAlias
) – -
DTA
(TypeAlias
) – -
DTL
(TypeAlias
) – -
backend
– -
channels_last
(bool
) – -
clips
(list[VideoNode]
) – -
debug
(bool
) – -
fd
(FD_T
) – -
filter_data
(Type[FD_T]
) – -
filter_mode
(FilterMode
) – -
input_per_plane
(bool | list[bool]
) – -
is_single_plane
– -
max_clips
(int
) – -
min_clips
(int
) – -
options
(PyPluginOptions
) – -
out_format
(VideoFormat
) – -
output_per_plane
(bool
) – -
process_MultiSrcIPF
(MultiSrcIPF_T[DT_T] | None
) – -
process_MultiSrcIPP
(MultiSrcIPP_T[DT_T] | None
) – -
process_SingleSrcIPF
(SingleSrcIPF_T[DT_T] | None
) – -
process_SingleSrcIPP
(SingleSrcIPP_T[DT_T] | None
) – -
ref_clip
(VideoNode
) –
Source code
363 364 365 366 |
|
clips instance-attribute
¶
clips: list[VideoNode] = [norm_clip(clip) for clip in clips] if clips else []
is_single_plane instance-attribute
¶
is_single_plane = [
bool(format and num_planes == 1) for clip in (ref_clip, *clips)
]
__call__ ¶
Source code
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 |
|
ensure_output staticmethod
¶
Source code
167 168 169 170 171 172 173 |
|
invoke ¶
invoke() -> VideoNode
Source code
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 |
|
process staticmethod
¶
process(mode: Literal[SingleSrcIPP]) -> PassthroughC[SingleSrcIPP_ST[DT_T]]
process(mode: Literal[MultiSrcIPP]) -> PassthroughC[MultiSrcIPP_ST[DT_T]]
process(mode: Literal[SingleSrcIPF]) -> PassthroughC[SingleSrcIPF_ST[DT_T]]
process(mode: Literal[MultiSrcIPF]) -> PassthroughC[MultiSrcIPF_ST[DT_T]]
process(
mode_or_func: ProcessMode | ALL_PMODES_ST[DT_T] | None = None,
) -> PassthroughC[ALL_PMODES_ST[DT_T]] | Any_ST[DT_T]
Source code
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
|
PyPluginCudaBase ¶
Bases: PyPluginUnavailableBackendBase[FD_T, DT_T]
Methods:
-
__call__
– -
ensure_output
– -
invoke
– -
process
–
Attributes:
-
DT
(TypeAlias
) – -
DTA
(TypeAlias
) – -
DTL
(TypeAlias
) – -
backend
– -
channels_last
(bool
) – -
clips
(list[VideoNode]
) – -
debug
(bool
) – -
fd
(FD_T
) – -
filter_data
(Type[FD_T]
) – -
filter_mode
(FilterMode
) – -
input_per_plane
(bool | list[bool]
) – -
is_single_plane
– -
max_clips
(int
) – -
min_clips
(int
) – -
options
(PyPluginOptions
) – -
out_format
(VideoFormat
) – -
output_per_plane
(bool
) – -
process_MultiSrcIPF
(MultiSrcIPF_T[DT_T] | None
) – -
process_MultiSrcIPP
(MultiSrcIPP_T[DT_T] | None
) – -
process_SingleSrcIPF
(SingleSrcIPF_T[DT_T] | None
) – -
process_SingleSrcIPP
(SingleSrcIPP_T[DT_T] | None
) – -
ref_clip
(VideoNode
) –
Source code
363 364 365 366 |
|
clips instance-attribute
¶
clips: list[VideoNode] = [norm_clip(clip) for clip in clips] if clips else []
is_single_plane instance-attribute
¶
is_single_plane = [
bool(format and num_planes == 1) for clip in (ref_clip, *clips)
]
__call__ ¶
Source code
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 |
|
ensure_output staticmethod
¶
Source code
167 168 169 170 171 172 173 |
|
invoke ¶
invoke() -> VideoNode
Source code
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 |
|
process staticmethod
¶
process(mode: Literal[SingleSrcIPP]) -> PassthroughC[SingleSrcIPP_ST[DT_T]]
process(mode: Literal[MultiSrcIPP]) -> PassthroughC[MultiSrcIPP_ST[DT_T]]
process(mode: Literal[SingleSrcIPF]) -> PassthroughC[SingleSrcIPF_ST[DT_T]]
process(mode: Literal[MultiSrcIPF]) -> PassthroughC[MultiSrcIPF_ST[DT_T]]
process(
mode_or_func: ProcessMode | ALL_PMODES_ST[DT_T] | None = None,
) -> PassthroughC[ALL_PMODES_ST[DT_T]] | Any_ST[DT_T]
Source code
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
|
PyPluginCudaOptions dataclass
¶
PyPluginCudaOptions(
force_precision: int | None = None,
shift_chroma: bool = False,
compile_flags: CudaCompileFlags = lambda: CudaCompileFlags()(),
backend: Literal["nvrtc", "nvcc"] = "nvrtc",
translate_cucomplex: bool = False,
enable_cooperative_groups: bool = False,
jitify: bool = False,
)
Bases: PyPluginOptions
Methods:
Attributes:
-
backend
(Literal['nvrtc', 'nvcc']
) – -
compile_flags
(CudaCompileFlags
) – -
enable_cooperative_groups
(bool
) – -
force_precision
(int | None
) – -
jitify
(bool
) – -
shift_chroma
(bool
) – -
translate_cucomplex
(bool
) –
compile_flags class-attribute
instance-attribute
¶
compile_flags: CudaCompileFlags = field(
default_factory=lambda: CudaCompileFlags()
)
enable_cooperative_groups class-attribute
instance-attribute
¶
enable_cooperative_groups: bool = False
ensure_output ¶
Source code
61 62 63 64 65 66 67 68 69 70 71 |
|
norm_clip ¶
norm_clip(clip: VideoNode) -> VideoNode
norm_clip(clip: None) -> None
norm_clip(clip: VideoNode | None) -> VideoNode | None
Source code
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
|