soifunc 0.9.0__py3-none-any.whl → 0.9.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
soifunc/denoise.py
CHANGED
|
@@ -21,13 +21,14 @@ def hqbm3d(
|
|
|
21
21
|
|
|
22
22
|
Sane strength values will typically be below 1.0.
|
|
23
23
|
"""
|
|
24
|
+
blksize = select_block_size(clip)
|
|
24
25
|
mv = mc_degrain(
|
|
25
26
|
clip,
|
|
26
27
|
preset=vsdenoise.MVToolsPresets.HQ_SAD,
|
|
27
28
|
tr=2,
|
|
28
29
|
thsad=100,
|
|
29
|
-
refine=3,
|
|
30
|
-
blksize=
|
|
30
|
+
refine=3 if blksize > 16 else 2,
|
|
31
|
+
blksize=blksize,
|
|
31
32
|
prefilter=vsdenoise.Prefilter.DFTTEST(
|
|
32
33
|
clip,
|
|
33
34
|
slocation=[(0.0, 1.0), (0.2, 4.0), (0.35, 12.0), (1.0, 48.0)],
|
|
@@ -57,21 +58,21 @@ def mc_dfttest(
|
|
|
57
58
|
but is slower.
|
|
58
59
|
"""
|
|
59
60
|
# TODO: Do we need to tweak anything for the `noisy` param?
|
|
61
|
+
blksize = select_block_size(clip)
|
|
60
62
|
return mc_degrain(
|
|
61
63
|
clip,
|
|
62
64
|
prefilter=vsdenoise.Prefilter.DFTTEST,
|
|
63
65
|
preset=vsdenoise.MVToolsPresets.HQ_SAD,
|
|
64
66
|
thsad=thSAD,
|
|
65
67
|
tr=2,
|
|
66
|
-
refine=3,
|
|
67
|
-
blksize=
|
|
68
|
+
refine=3 if blksize > 16 else 2,
|
|
69
|
+
blksize=blksize,
|
|
68
70
|
)
|
|
69
71
|
|
|
72
|
+
|
|
70
73
|
def select_block_size(clip: vs.VideoNode):
|
|
71
74
|
if clip.width >= 1920 or clip.height >= 1080:
|
|
72
75
|
return 64
|
|
73
|
-
if clip.width >= 1600 or clip.height >= 900:
|
|
74
|
-
return 48
|
|
75
76
|
if clip.width >= 1280 or clip.height >= 720:
|
|
76
77
|
return 32
|
|
77
78
|
return 16
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
soifunc/__init__.py,sha256=o8id_imdLYtSpVNfB-G4Pru9GtEPqdkcpyyW3yQt-6U,127
|
|
2
2
|
soifunc/deband.py,sha256=GB9ksv-G1EOkro7mEN44p1vxLCnY2x4d4SqKhHxQ6Z8,1176
|
|
3
|
-
soifunc/denoise.py,sha256=
|
|
3
|
+
soifunc/denoise.py,sha256=mTB7icOWtIJkPkZBRdnXURQrEvc7cpEmvHJN7_UayRg,6846
|
|
4
4
|
soifunc/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
soifunc/resize.py,sha256=irh4Mo8OidoYYXkwjvekMCtgb4Fp0YVszTQLfONJcNU,4344
|
|
6
|
-
soifunc-0.9.
|
|
7
|
-
soifunc-0.9.
|
|
8
|
-
soifunc-0.9.
|
|
9
|
-
soifunc-0.9.
|
|
6
|
+
soifunc-0.9.1.dist-info/LICENSE,sha256=vgEDSMEV1J2nMiCgXE5_sjNtw2VT7_lP7rkAnrFKOWI,1068
|
|
7
|
+
soifunc-0.9.1.dist-info/METADATA,sha256=2SR3yf0AODTNs-69Ls7JbZUK6m7v2CH5ENdOlqQdVyk,3363
|
|
8
|
+
soifunc-0.9.1.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
9
|
+
soifunc-0.9.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|