dfttest2 10.dev0__tar.gz → 11.0.0__tar.gz

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.
Files changed (81) hide show
  1. {dfttest2-10.dev0 → dfttest2-11.0.0}/.gitignore +14 -0
  2. {dfttest2-10.dev0 → dfttest2-11.0.0}/PKG-INFO +24 -19
  3. {dfttest2-10.dev0 → dfttest2-11.0.0}/pyproject.toml +21 -16
  4. dfttest2-11.0.0/vs-dfttest2/.clang-format +27 -0
  5. dfttest2-11.0.0/vs-dfttest2/.gitignore +289 -0
  6. dfttest2-11.0.0/vs-dfttest2/README.md +11 -0
  7. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/cpu_dispatch.h.in +1 -1
  8. dfttest2-11.0.0/vs-dfttest2/cpu_source/dfttest2_cpu.h +62 -0
  9. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/getframe_impl.cpp +121 -130
  10. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/kernel.hpp +79 -90
  11. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/source.cpp +111 -136
  12. dfttest2-11.0.0/vs-dfttest2/cuda_source/kernels.cu +406 -0
  13. dfttest2-11.0.0/vs-dfttest2/cuda_source/source.cpp +1136 -0
  14. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cuda_source/win32.cpp +33 -13
  15. dfttest2-11.0.0/vs-dfttest2/gcc_source/dfttest2_cpu.h +53 -0
  16. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/gcc_source/getframe_impl.cpp +126 -141
  17. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/gcc_source/kernel.hpp +87 -106
  18. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/gcc_source/source.cpp +91 -121
  19. dfttest2-11.0.0/vs-dfttest2/hip_source/kernel.hpp +386 -0
  20. dfttest2-11.0.0/vs-dfttest2/hip_source/source.cpp +1154 -0
  21. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/hiprtc_source/dft_kernels.hpp +28 -16
  22. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/hiprtc_source/kernel.hpp +95 -42
  23. dfttest2-11.0.0/vs-dfttest2/hiprtc_source/source.cpp +1059 -0
  24. dfttest2-10.dev0/vs-dfttest2/nvrtc_source/dft_kernels.hpp → dfttest2-11.0.0/vs-dfttest2/nvrtc_source/dft_codelets.cuh +24 -69
  25. dfttest2-11.0.0/vs-dfttest2/nvrtc_source/kernels.cu +411 -0
  26. dfttest2-11.0.0/vs-dfttest2/nvrtc_source/source.cpp +985 -0
  27. dfttest2-11.0.0/vs-dfttest2/python/__init__.py +4 -0
  28. dfttest2-11.0.0/vs-dfttest2/python/backends.py +63 -0
  29. dfttest2-11.0.0/vs-dfttest2/python/dfttest2.py +452 -0
  30. dfttest2-11.0.0/vs-dfttest2/python/helpers.py +109 -0
  31. dfttest2-10.dev0/dfttest2/__init__.py +0 -17
  32. dfttest2-10.dev0/vs-dfttest2/.git +0 -1
  33. dfttest2-10.dev0/vs-dfttest2/.github/workflows/linux.yml +0 -86
  34. dfttest2-10.dev0/vs-dfttest2/.github/workflows/linux_arm64.yml +0 -67
  35. dfttest2-10.dev0/vs-dfttest2/.github/workflows/windows.yml +0 -158
  36. dfttest2-10.dev0/vs-dfttest2/.github/workflows/windows_arm64.yml +0 -69
  37. dfttest2-10.dev0/vs-dfttest2/CMakeLists.txt +0 -193
  38. dfttest2-10.dev0/vs-dfttest2/README.md +0 -22
  39. dfttest2-10.dev0/vs-dfttest2/common/config.h.in +0 -1
  40. dfttest2-10.dev0/vs-dfttest2/cpu_source/CMakeLists.txt +0 -133
  41. dfttest2-10.dev0/vs-dfttest2/cpu_source/dfttest2_cpu.h +0 -62
  42. dfttest2-10.dev0/vs-dfttest2/cpu_source/vectorclass/.git +0 -1
  43. dfttest2-10.dev0/vs-dfttest2/cuda_source/kernel.hpp +0 -202
  44. dfttest2-10.dev0/vs-dfttest2/cuda_source/source.cpp +0 -1208
  45. dfttest2-10.dev0/vs-dfttest2/dfttest2.py +0 -851
  46. dfttest2-10.dev0/vs-dfttest2/gcc_source/CMakeLists.txt +0 -38
  47. dfttest2-10.dev0/vs-dfttest2/gcc_source/dfttest2_cpu.h +0 -52
  48. dfttest2-10.dev0/vs-dfttest2/hip_source/kernel.hpp +0 -198
  49. dfttest2-10.dev0/vs-dfttest2/hip_source/source.cpp +0 -1135
  50. dfttest2-10.dev0/vs-dfttest2/hiprtc_source/source.cpp +0 -993
  51. dfttest2-10.dev0/vs-dfttest2/nvrtc_source/kernel.hpp +0 -278
  52. dfttest2-10.dev0/vs-dfttest2/nvrtc_source/source.cpp +0 -1062
  53. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/.gitmodules +0 -0
  54. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/LICENSE +0 -0
  55. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/LICENSE +0 -0
  56. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/README.md +0 -0
  57. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/changelog.txt +0 -0
  58. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/dispatch_example1.cpp +0 -0
  59. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/dispatch_example2.cpp +0 -0
  60. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/instrset.h +0 -0
  61. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/instrset_detect.cpp +0 -0
  62. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/vector_convert.h +0 -0
  63. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/vectorclass.h +0 -0
  64. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/vectorf128.h +0 -0
  65. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/vectorf256.h +0 -0
  66. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/vectorf256e.h +0 -0
  67. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/vectorf512.h +0 -0
  68. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/vectorf512e.h +0 -0
  69. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/vectori128.h +0 -0
  70. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/vectori256.h +0 -0
  71. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/vectori256e.h +0 -0
  72. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/vectori512.h +0 -0
  73. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/vectori512e.h +0 -0
  74. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/vectori512s.h +0 -0
  75. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/vectori512se.h +0 -0
  76. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/vectormath_common.h +0 -0
  77. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/vectormath_exp.h +0 -0
  78. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/vectormath_hyp.h +0 -0
  79. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/vectormath_lib.h +0 -0
  80. {dfttest2-10.dev0 → dfttest2-11.0.0}/vs-dfttest2/cpu_source/vectorclass/vectormath_trig.h +0 -0
  81. {dfttest2-10.dev0/dfttest2 → dfttest2-11.0.0/vs-dfttest2/python}/py.typed +0 -0
@@ -263,6 +263,7 @@ __marimo__/
263
263
  build/
264
264
  Build/
265
265
  build-*/
266
+ build_*/
266
267
 
267
268
  # CMake generated files
268
269
  CMakeFiles/
@@ -287,3 +288,16 @@ vcpkg_installed/
287
288
  # test output & cache
288
289
  Testing/
289
290
  .cache/
291
+
292
+ # Node.js
293
+ node_modules/
294
+ # Custom distributions
295
+ ncnn-dist/
296
+ onnx-dist/
297
+ onnxruntime-dist/
298
+ openvino-dist/
299
+ TensorRT-*/
300
+ TensorRT-RTX-*/
301
+
302
+ # JET files
303
+ .vsjet
@@ -1,9 +1,9 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: dfttest2
3
- Version: 10.dev0
4
- Summary: DFTTest re-implemetation
5
- Project-URL: Source Code, https://github.com/AmusementClub/vs-dfttest2
6
- Project-URL: Bug Tracker, https://github.com/AmusementClub/vs-dfttest2/issues
3
+ Version: 11.0.0
4
+ Summary: DFTTest re-implementation
5
+ Project-URL: Source Code, https://github.com/Ichunjo/vs-dfttest2
6
+ Project-URL: Bug Tracker, https://github.com/Ichunjo/vs-dfttest2/issues
7
7
  Project-URL: Repository, https://github.com/Jaded-Encoding-Thaumaturgy/vs-wheels
8
8
  Author: WolframRhodium
9
9
  Maintainer-email: Vardë <ichunjo.le.terrible@gmail.com>
@@ -11,8 +11,24 @@ License-Expression: GPL-3.0-or-later
11
11
  License-File: vs-dfttest2/LICENSE
12
12
  Requires-Python: >=3.12
13
13
  Requires-Dist: vapoursynth>=75
14
+ Provides-Extra: cpu
15
+ Requires-Dist: vapoursynth-dfttest2-cpu>=11.0.0; extra == 'cpu'
16
+ Provides-Extra: cuda
17
+ Requires-Dist: vapoursynth-dfttest2-cuda>=11.0.0; extra == 'cuda'
18
+ Requires-Dist: vapoursynth-dfttest2-nvrtc>=11.0.0; extra == 'cuda'
19
+ Provides-Extra: cufft
20
+ Requires-Dist: vapoursynth-dfttest2-cuda>=11.0.0; extra == 'cufft'
14
21
  Provides-Extra: gcc
15
- Requires-Dist: vapoursynth-dfttest2-gcc; extra == 'gcc'
22
+ Requires-Dist: vapoursynth-dfttest2-gcc>=11.0.0; extra == 'gcc'
23
+ Provides-Extra: hip
24
+ Requires-Dist: vapoursynth-dfttest2-hip>=11.0.0; extra == 'hip'
25
+ Requires-Dist: vapoursynth-dfttest2-hiprtc>=11.0.0; extra == 'hip'
26
+ Provides-Extra: hipfft
27
+ Requires-Dist: vapoursynth-dfttest2-hip>=11.0.0; extra == 'hipfft'
28
+ Provides-Extra: hiprtc
29
+ Requires-Dist: vapoursynth-dfttest2-hiprtc>=11.0.0; extra == 'hiprtc'
30
+ Provides-Extra: nvrtc
31
+ Requires-Dist: vapoursynth-dfttest2-nvrtc>=11.0.0; extra == 'nvrtc'
16
32
  Description-Content-Type: text/markdown
17
33
 
18
34
  # dfttest2
@@ -64,24 +80,13 @@ README.md from parent project
64
80
 
65
81
  ---
66
82
  # vs-dfttest2
67
- DFTTest re-implemetation (CUDA and x86)
83
+ DFTTest re-implementation (GPU and CPU)
68
84
 
69
85
  ## Usage
70
86
  ```python3
71
87
  from dfttest2 import DFTTest
88
+
72
89
  output = DFTTest(input)
73
90
  ```
74
91
 
75
92
  See also [VapourSynth-DFTTest](https://github.com/HomeOfVapourSynthEvolution/VapourSynth-DFTTest)
76
-
77
- ## Compilation
78
- ```bash
79
- # additional options: -D ENABLE_CUDA=ON -D ENABLE_CPU=ON
80
- cmake -S . -B build
81
-
82
- cmake --build build
83
-
84
- cmake --install build
85
- ```
86
-
87
- If the vapoursynth library cannot be found by pkg-config, then the cmake variable `VS_INCLUDE_DIR` should be set.
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
5
5
  [project]
6
6
  name = "dfttest2"
7
7
  dynamic = ["version", "readme"]
8
- description = "DFTTest re-implemetation"
8
+ description = "DFTTest re-implementation"
9
9
  license = "GPL-3.0-or-later"
10
10
  license-files = ["vs-dfttest2/LICENSE"]
11
11
  requires-python = ">=3.12"
@@ -14,14 +14,14 @@ maintainers = [{ name = "Vardë", email = "ichunjo.le.terrible@gmail.com" }]
14
14
  dependencies = ["vapoursynth>=75"]
15
15
 
16
16
  [project.optional-dependencies]
17
- # cuda = ["vapoursynth-dfttest2_cuda", "vapoursynth-dfttest2_nvrtc"]
18
- # hip = ["vapoursynth-dfttest2_hip", "vapoursynth-dfttest2_hiprtc"]
19
- # cufft = ["vapoursynth-dfttest2_cuda"]
20
- # nvrtc = ["vapoursynth-dfttest2_nvrtc"]
21
- # hipfft = ["vapoursynth-dfttest2_hip"]
22
- # hiprtc = ["vapoursynth-dfttest2_hiprtc"]
23
- # cpu = ["vapoursynth-dfttest2_cpu"]
24
- gcc = ["vapoursynth-dfttest2-gcc"]
17
+ cuda = ["vapoursynth-dfttest2_cuda>=11.0.0", "vapoursynth-dfttest2_nvrtc>=11.0.0"]
18
+ hip = ["vapoursynth-dfttest2_hip>=11.0.0", "vapoursynth-dfttest2_hiprtc>=11.0.0"]
19
+ cufft = ["vapoursynth-dfttest2_cuda>=11.0.0"]
20
+ nvrtc = ["vapoursynth-dfttest2_nvrtc>=11.0.0"]
21
+ hipfft = ["vapoursynth-dfttest2_hip>=11.0.0"]
22
+ hiprtc = ["vapoursynth-dfttest2_hiprtc>=11.0.0"]
23
+ cpu = ["vapoursynth-dfttest2_cpu>=11.0.0"]
24
+ gcc = ["vapoursynth-dfttest2-gcc>=11.0.0"]
25
25
 
26
26
  # windows = ["dfttest2[cuda,hip,gcc,cpu]"]
27
27
  # linux = [
@@ -34,26 +34,26 @@ gcc = ["vapoursynth-dfttest2-gcc"]
34
34
  # ]
35
35
 
36
36
  [project.urls]
37
- "Source Code" = "https://github.com/AmusementClub/vs-dfttest2"
38
- "Bug Tracker" = "https://github.com/AmusementClub/vs-dfttest2/issues"
37
+ "Source Code" = "https://github.com/Ichunjo/vs-dfttest2"
38
+ "Bug Tracker" = "https://github.com/Ichunjo/vs-dfttest2/issues"
39
39
  "Repository" = "https://github.com/Jaded-Encoding-Thaumaturgy/vs-wheels"
40
40
 
41
41
  [tool.hatch.version]
42
42
  source = "vcs"
43
- tag-pattern = '^v(?P<version>.*)$'
43
+ tag-pattern = '^v(?P<version>\d+.*)$'
44
44
 
45
45
  [tool.hatch.version.raw-options]
46
46
  root = "vs-dfttest2"
47
47
  local_scheme = "no-local-version"
48
48
 
49
49
  [tool.hatch.build.targets.sdist]
50
- include = ["dfttest2", "vs-dfttest2"]
50
+ include = ["vs-dfttest2"]
51
51
 
52
52
  [tool.hatch.build.targets.wheel]
53
- include = ["dfttest2"]
53
+ include = ["vs-dfttest2/python"]
54
54
 
55
- [tool.hatch.build.targets.wheel.force-include]
56
- "vs-dfttest2/dfttest2.py" = "dfttest2/_dfttest2.py"
55
+ [tool.hatch.build.targets.wheel.sources]
56
+ "vs-dfttest2/python" = "dfttest2"
57
57
 
58
58
  [tool.hatch.metadata.hooks.fancy-pypi-readme]
59
59
  content-type = "text/markdown"
@@ -61,3 +61,8 @@ fragments = [{ path = "README.md" }, { path = "vs-dfttest2/README.md" }]
61
61
 
62
62
  [tool.uv.sources]
63
63
  vapoursynth-dfttest2-gcc = { workspace = true }
64
+ vapoursynth-dfttest2-cpu = { workspace = true }
65
+ vapoursynth-dfttest2-cuda = { workspace = true }
66
+ vapoursynth-dfttest2-nvrtc = { workspace = true }
67
+ vapoursynth-dfttest2-hip = { workspace = true }
68
+ vapoursynth-dfttest2-hiprtc = { workspace = true }
@@ -0,0 +1,27 @@
1
+ ---
2
+ BasedOnStyle: LLVM
3
+ IndentWidth: 4
4
+ TabWidth: 4
5
+ ContinuationIndentWidth: 4
6
+ ColumnLimit: 120
7
+
8
+ # Custom wrapping & alignment overrides
9
+ AlignAfterOpenBracket: BlockIndent
10
+ BinPackParameters: false
11
+ BinPackArguments: false
12
+ AllowShortFunctionsOnASingleLine: Inline
13
+ AllowAllParametersOfDeclarationOnNextLine: false
14
+ IncludeBlocks: Regroup
15
+ PointerAlignment: Left
16
+ ReferenceAlignment: Left
17
+ SortIncludes: CaseSensitive
18
+ IncludeCategories:
19
+ - Regex: '^<windows\.h>'
20
+ Priority: 1
21
+ - Regex: '^<delayimp\.h>'
22
+ Priority: 2
23
+ - Regex: '^<.*'
24
+ Priority: 3
25
+ - Regex: '.*'
26
+ Priority: 4
27
+ ...
@@ -0,0 +1,289 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ *.lcov
51
+ .hypothesis/
52
+ .pytest_cache/
53
+ cover/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+
75
+ # PyBuilder
76
+ .pybuilder/
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ # For a library or package, you might want to ignore these files since the code is
88
+ # intended to run in multiple environments; otherwise, check them in:
89
+ # .python-version
90
+
91
+ # pipenv
92
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
+ # install all needed dependencies.
96
+ # Pipfile.lock
97
+
98
+ # UV
99
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
100
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
101
+ # commonly ignored for libraries.
102
+ # uv.lock
103
+
104
+ # poetry
105
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
106
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
107
+ # commonly ignored for libraries.
108
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
109
+ # poetry.lock
110
+ # poetry.toml
111
+
112
+ # pdm
113
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
114
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
115
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
116
+ # pdm.lock
117
+ # pdm.toml
118
+ .pdm-python
119
+ .pdm-build/
120
+
121
+ # pixi
122
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
123
+ # pixi.lock
124
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
125
+ # in the .venv directory. It is recommended not to include this directory in version control.
126
+ .pixi/*
127
+ !.pixi/config.toml
128
+
129
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
130
+ __pypackages__/
131
+
132
+ # Celery stuff
133
+ celerybeat-schedule*
134
+ celerybeat.pid
135
+
136
+ # Redis
137
+ *.rdb
138
+ *.aof
139
+ *.pid
140
+
141
+ # RabbitMQ
142
+ mnesia/
143
+ rabbitmq/
144
+ rabbitmq-data/
145
+
146
+ # ActiveMQ
147
+ activemq-data/
148
+
149
+ # SageMath parsed files
150
+ *.sage.py
151
+
152
+ # Environments
153
+ .env
154
+ .envrc
155
+ .venv
156
+ env/
157
+ venv/
158
+ ENV/
159
+ env.bak/
160
+ venv.bak/
161
+
162
+ # Spyder project settings
163
+ .spyderproject
164
+ .spyproject
165
+
166
+ # Rope project settings
167
+ .ropeproject
168
+
169
+ # mkdocs documentation
170
+ /site
171
+
172
+ # mypy
173
+ .mypy_cache/
174
+ .dmypy.json
175
+ dmypy.json
176
+
177
+ # Pyre type checker
178
+ .pyre/
179
+
180
+ # pytype static type analyzer
181
+ .pytype/
182
+
183
+ # Cython debug symbols
184
+ cython_debug/
185
+
186
+ # PyCharm
187
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
188
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
189
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
190
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
191
+ # .idea/
192
+
193
+ # Abstra
194
+ # Abstra is an AI-powered process automation framework.
195
+ # Ignore directories containing user credentials, local state, and settings.
196
+ # Learn more at https://abstra.io/docs
197
+ .abstra/
198
+
199
+ # Visual Studio Code
200
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore that
201
+ # can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
202
+ # and can be added to the global gitignore or merged into this file. However, if you prefer, you
203
+ # could uncomment the following to ignore the entire vscode folder
204
+ # .vscode/
205
+ # Temporary file for partial code execution
206
+ tempCodeRunnerFile.py
207
+
208
+ # Ruff stuff:
209
+ .ruff_cache/
210
+
211
+ # PyPI configuration file
212
+ .pypirc
213
+
214
+ # Marimo
215
+ marimo/_static/
216
+ marimo/_lsp/
217
+ __marimo__/
218
+
219
+ # Streamlit
220
+ .streamlit/secrets.toml
221
+
222
+ # Prerequisites
223
+ *.d
224
+
225
+ # Compiled Object files
226
+ *.slo
227
+ *.lo
228
+ *.o
229
+ *.obj
230
+
231
+ # Precompiled Headers
232
+ *.gch
233
+ *.pch
234
+
235
+ # Linker files
236
+ *.ilk
237
+
238
+ # Debugger Files
239
+ *.pdb
240
+
241
+ # Compiled Dynamic libraries
242
+ *.so
243
+ *.dylib
244
+ *.dll
245
+ *.so.*
246
+
247
+ # Fortran module files
248
+ *.mod
249
+ *.smod
250
+
251
+ # Compiled Static libraries
252
+ *.lai
253
+ *.la
254
+ *.a
255
+ *.lib
256
+
257
+ # Executables
258
+ *.exe
259
+ *.out
260
+ *.app
261
+
262
+ # Build directories
263
+ build/
264
+ Build/
265
+ build-*/
266
+
267
+ # CMake generated files
268
+ CMakeFiles/
269
+ CMakeCache.txt
270
+ cmake_install.cmake
271
+ Makefile
272
+ install_manifest.txt
273
+ compile_commands.json
274
+
275
+ # Temporary files
276
+ *.tmp
277
+ *.log
278
+ *.bak
279
+ *.swp
280
+
281
+ # vcpkg
282
+ vcpkg_installed/
283
+
284
+ # debug information files
285
+ *.dwo
286
+
287
+ # test output & cache
288
+ Testing/
289
+ .cache/
@@ -0,0 +1,11 @@
1
+ # vs-dfttest2
2
+ DFTTest re-implementation (GPU and CPU)
3
+
4
+ ## Usage
5
+ ```python3
6
+ from dfttest2 import DFTTest
7
+
8
+ output = DFTTest(input)
9
+ ```
10
+
11
+ See also [VapourSynth-DFTTest](https://github.com/HomeOfVapourSynthEvolution/VapourSynth-DFTTest)
@@ -3,7 +3,7 @@
3
3
  #ifndef CPU_DISPATCH_H
4
4
  #define CPU_DISPATCH_H
5
5
 
6
- #include <VapourSynth.h>
6
+ #include <VapourSynth4.h>
7
7
 
8
8
  @GETFRAME_DECLARATIONS@
9
9
 
@@ -0,0 +1,62 @@
1
+ #ifndef DFTTEST2_CPU_H
2
+ #define DFTTEST2_CPU_H
3
+
4
+ #include <VSHelper4.h>
5
+ #include <VapourSynth4.h>
6
+ #include <array>
7
+ #include <atomic>
8
+ #include <cstdint>
9
+ #include <memory>
10
+ #include <shared_mutex>
11
+ #include <thread>
12
+ #include <unordered_map>
13
+ #include <vectorclass.h>
14
+
15
+ static inline void vs_aligned_free_float(float* ptr) {
16
+ vsh::vsh_aligned_free(static_cast<void*>(ptr));
17
+ }
18
+
19
+ struct DFTTestThreadData {
20
+ uint8_t* padded; // shape: (pad_height, pad_width)
21
+ float* padded2; // shape: (pad_height, pad_width)
22
+ };
23
+
24
+ struct DFTTestData {
25
+ VSNode* node;
26
+ int radius;
27
+ int block_size;
28
+ int block_step;
29
+ std::array<bool, 3> process;
30
+ bool zero_mean;
31
+ std::unique_ptr<float[], decltype(&vs_aligned_free_float)> window{nullptr, &vs_aligned_free_float};
32
+ std::unique_ptr<float[], decltype(&vs_aligned_free_float)> window_freq{nullptr, &vs_aligned_free_float};
33
+ std::unique_ptr<float[], decltype(&vs_aligned_free_float)> sigma{nullptr, &vs_aligned_free_float};
34
+ int filter_type;
35
+ float sigma2;
36
+ float pmin;
37
+ float pmax;
38
+
39
+ std::atomic<int> num_uninitialized_threads;
40
+ std::unordered_map<std::thread::id, DFTTestThreadData> thread_data;
41
+ std::shared_mutex thread_data_lock;
42
+ };
43
+
44
+ #if defined HAS_DISPATCH
45
+ #include <cpu_dispatch.h>
46
+ #else // HAS_DISPATCH
47
+ extern const VSFrame* VS_CC DFTTestGetFrame(
48
+ int n,
49
+ int activationReason,
50
+ void* instanceData,
51
+ void** frameData,
52
+ VSFrameContext* frameCtx,
53
+ VSCore* core,
54
+ const VSAPI* vsapi
55
+ ) noexcept;
56
+
57
+ extern bool supported_arch() noexcept;
58
+
59
+ extern const char* target_arch() noexcept;
60
+ #endif // HAS_DISPATCH
61
+
62
+ #endif // DFTTEST2_CPU_H