aa
cope_aa(clip, multiplier=None, antialiaser=Eedi3(0.125, 0.25, gamma=65, vthresh0=40, vthresh1=60, field=1, sclip_aa=None), scaler=Lanczos, mode=CopeMode.Inverse, mask=True, no_aa_ranges=[], hybrid_cl=False, **kwargs)
Cope and lazy function to AA a doubled clip. Usually while rescaling. This is probably overall an awful idea.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
multiplier
|
float | None
|
Basically rfactor. If you're doubling a 720p clip you'll only have a 1440p clip to AA. EEDI3 will fuck it. Defaults to 1.2 if the input clip is smaller than 1700p. 1 otherwise. |
None
|
antialiaser
|
Antialiaser
|
Antialiaser used for actually doing the stuff. Defaults to EEDI3 with some somewhat conservative settings kindof. |
Eedi3(0.125, 0.25, gamma=65, vthresh0=40, vthresh1=60, field=1, sclip_aa=None)
|
scaler
|
KernelT | ScalerT | Sequence[Union[KernelT, ScalerT]]
|
Scaler(s) or rather kernel(s) in this case. Used to up- and downscale for the rfactor. If you specify a third one it will get used to scale the mask. (Otherwise Bilinear) |
Lanczos
|
mode
|
CopeMode | int
|
Method to return back to input res. Available are UpDown (simple downscale), Descale and Inverse (fmtc). |
Inverse
|
mask
|
bool | VideoNode
|
Mask for eedi3 possibly save some calculations. Can be a custom one, True for a Kirsch or False to disable. |
True
|
no_aa_ranges
|
FrameRangesN
|
Ranges you might not wanna AA for one reason or another. |
[]
|
hybrid_cl
|
bool
|
Use eedi3cl on one of the two interpolate calls. Not sure if this is useful or not. Just wrote it to test. |
False
|
Source code in vodesfunc/aa.py
pre_aa(clip, radius=1, strength=100, opencl=True, **nnedi3_args)
A prefilter to use in conjunction with an AA function. The idea is to fix the luminance uniformity on lineart and make AAing more effective.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
radius
|
int
|
Radius used for the unsharp function |
1
|
strength
|
float
|
Strength used for the unsharp function |
100
|
opencl
|
bool
|
Use nnedi3cl instead of znedi3 |
True
|
nnedi3_args
|
Additional args passed to the respective nnedi function |
{}
|
Returns:
Type | Description |
---|---|
VideoNode
|
Processed clip |