funcs ¶
based_aa ¶
based_aa(
clip: VideoNode,
rfactor: float = 2.0,
mask: VideoNode | EdgeDetectT | Literal[False] = Prewitt,
mask_thr: int = 60,
pskip: bool = True,
downscaler: ScalerT | None = None,
supersampler: (
ScalerT | ShaderFile | Path | Literal[False] | MissingT
) = MISSING,
double_rate: bool = False,
antialiaser: Antialiaser | None = None,
prefilter: VideoNode | VSFunction | Literal[False] = False,
postfilter: VSFunction | Literal[False] | None = None,
show_mask: bool = False,
planes: PlanesT = 0,
**aa_kwargs: Any
) -> VideoNode
Source code
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 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 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 |
|
clamp_aa ¶
clamp_aa(
clip: VideoNode,
strength: float = 1.0,
mthr: float = 0.25,
mask: VideoNode | EdgeDetectT | None = None,
weak_aa: VideoNode | Antialiaser = Nnedi3(),
strong_aa: VideoNode | Antialiaser = Eedi3(),
opencl: bool | None = False,
ref: VideoNode | None = None,
planes: PlanesT = 0,
) -> VideoNode
Clamp a strong aa to a weaker one for the purpose of reducing the stronger's artifacts.
Parameters:
-
clip
¶VideoNode
) –Clip to process.
-
strength
¶float
, default:1.0
) –Set threshold strength for over/underflow value for clamping.
-
mthr
¶float
, default:0.25
) –Binarize threshold for the mask, float.
-
mask
¶VideoNode | EdgeDetectT | None
, default:None
) –Clip to use for custom mask or an EdgeDetect to use custom masker.
-
weak_aa
¶VideoNode | Antialiaser
, default:Nnedi3()
) –Antialiaser for the weaker aa.
-
strong_aa
¶VideoNode | Antialiaser
, default:Eedi3()
) –Antialiaser for the stronger aa.
-
opencl
¶bool | None
, default:False
) –Whether to force OpenCL acceleration, None to leave as is.
-
ref
¶VideoNode | None
, default:None
) –Reference clip for clamping.
Returns:
-
VideoNode
–Antialiased clip.
Source code
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 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
|