Skip to content

Commit 055c28e

Browse files
committed
Cosmetic
1 parent 93492cc commit 055c28e

2 files changed

Lines changed: 15 additions & 10 deletions

File tree

README.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
# MiniDeen
1+
# Neo MiniDeen (ported from VapourSynth-MiniDeen)
22

3-
MiniDeen Copyright(C) 2019 Xinyue Lu
3+
Neo MiniDeen Copyright(C) 2019-2020 Xinyue Lu, and previous developers
44

55
MiniDeen is a spatial denoising filter. It replaces every pixel with the average of its neighbourhood.
66

77
This is a dual interface port of the [VapourSynth plugin MiniDeen](https://github.com/dubhater/vapoursynth-minideen) version beta 2.
88

9+
SSE2 is required to run optimized routine. AVX2 routine is also available. Unlike VapourSynth-MiniDeen, this filter returns binary identical result between SIMD and C routine, and SIMD routine does not call C routine for pixels close to frame border.
910

1011
## Usage
1112

12-
```
13+
```python
14+
# AviSynth+
1315
LoadPlugin("MiniDeen.dll")
14-
MiniDeen(clip, radius=1, thrY=10, thrUV=12, Y=3, U=3, V=3)
16+
MiniDeen(clip, radiusY=1, radiusUV=1, thrY=10, thrUV=12, y=3, u=3, v=3)
17+
# VapourSynth
18+
core.neo_minideen.MiniDeen(clip, radius=[1,1,1], threshold=[10,12,12], planes=[0,1,2])
1519
```
1620

1721
Parameters:
@@ -20,13 +24,13 @@ Parameters:
2024

2125
A clip to process. It must have constant format and it must be 8..16 bit with integer samples.
2226

23-
- *radius*
27+
- *radiusY*, *radiusUV* / *radius*
2428

2529
Size of the neighbourhood. Must be between 1 (3x3) and 7 (15x15).
2630

2731
Default: 1.
2832

29-
- *thrY*, *thrUV*
33+
- *thrY*, *thrUV* / *threshold*
3034

3135
Only pixels that differ from the center pixel by less than the *threshold* will be included in the average. Must be between 2 and 255.
3236

@@ -36,15 +40,15 @@ Parameters:
3640

3741
Default: 10 for the Y plane, and 12 for the other planes.
3842

39-
- *y*, *u*, *v*
43+
- *y*, *u*, *v* / *planes*
4044

4145
Whether a plane is to be filtered.
4246

4347
1 - Do not touch, leaving garbage data
4448
2 - Copy from origin
4549
3 - Process
4650

47-
Default: 3.
51+
Default: 3, process all planes.
4852

4953

5054
## Compilation (MSVC)
@@ -65,6 +69,6 @@ cmake --build build\x64 --config Release
6569

6670
## License
6771

68-
* ISC for VapourSynth interface and engine.
72+
* ISC for core implementation.
6973

70-
* MIT for AviSynth+ interface.
74+
* MIT for AviSynth+ and VapourSynth interface.

src/minideen_core_AVX2.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,4 +221,5 @@ void minideen_AVX2_16(const uint8_t *srcp8, uint8_t *dstp8, int width, int heigh
221221
srcp += src_stride;
222222
dstp += dst_stride;
223223
}
224+
_mm256_zeroupper();
224225
}

0 commit comments

Comments
 (0)