VapourSynth 65__zip → 70__zip

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 (51) hide show
  1. {VapourSynth-65/VapourSynth.egg-info → vapoursynth-70}/PKG-INFO +1 -1
  2. vapoursynth-70/VAPOURSYNTH_VERSION +1 -0
  3. {VapourSynth-65 → vapoursynth-70/VapourSynth.egg-info}/PKG-INFO +1 -1
  4. {VapourSynth-65 → vapoursynth-70}/VapourSynth.egg-info/SOURCES.txt +0 -10
  5. {VapourSynth-65 → vapoursynth-70}/include/VSConstants4.h +1 -0
  6. {VapourSynth-65 → vapoursynth-70}/include/VSScript4.h +12 -0
  7. {VapourSynth-65 → vapoursynth-70}/include/VapourSynth4.h +38 -13
  8. {VapourSynth-65 → vapoursynth-70}/setup.py +1 -1
  9. {VapourSynth-65 → vapoursynth-70}/src/cython/vapoursynth.c +23716 -33877
  10. {VapourSynth-65 → vapoursynth-70}/src/cython/vapoursynth.pxd +120 -105
  11. {VapourSynth-65 → vapoursynth-70}/src/cython/vapoursynth.pyx +364 -82
  12. vapoursynth-70/src/cython/vsconstants.pxd +150 -0
  13. {VapourSynth-65 → vapoursynth-70}/test/environment_test.py +3 -0
  14. {VapourSynth-65 → vapoursynth-70}/test/zimgtest.py +3 -0
  15. VapourSynth-65/VAPOURSYNTH_VERSION +0 -1
  16. VapourSynth-65/src/cython/vsconstants.pxd +0 -83
  17. VapourSynth-65/test/__pycache__/async_test.cpython-311.pyc +0 -0
  18. VapourSynth-65/test/__pycache__/environment_test.cpython-311.pyc +0 -0
  19. VapourSynth-65/test/__pycache__/expr_test.cpython-311.pyc +0 -0
  20. VapourSynth-65/test/__pycache__/filter_test.cpython-311.pyc +0 -0
  21. VapourSynth-65/test/__pycache__/log_test.cpython-311.pyc +0 -0
  22. VapourSynth-65/test/__pycache__/lut_test.cpython-311.pyc +0 -0
  23. VapourSynth-65/test/__pycache__/prop_dict_test.cpython-311.pyc +0 -0
  24. VapourSynth-65/test/__pycache__/test.cpython-311.pyc +0 -0
  25. VapourSynth-65/test/__pycache__/weakref_test.cpython-311.pyc +0 -0
  26. VapourSynth-65/test/__pycache__/zimgtest.cpython-311.pyc +0 -0
  27. {VapourSynth-65 → vapoursynth-70}/COPYING.LESSER +0 -0
  28. {VapourSynth-65 → vapoursynth-70}/MANIFEST.in +0 -0
  29. {VapourSynth-65 → vapoursynth-70}/README.md +0 -0
  30. {VapourSynth-65 → vapoursynth-70}/VapourSynth.egg-info/dependency_links.txt +0 -0
  31. {VapourSynth-65 → vapoursynth-70}/VapourSynth.egg-info/top_level.txt +0 -0
  32. {VapourSynth-65 → vapoursynth-70}/include/VSHelper.h +0 -0
  33. {VapourSynth-65 → vapoursynth-70}/include/VSHelper4.h +0 -0
  34. {VapourSynth-65 → vapoursynth-70}/include/VSScript.h +0 -0
  35. {VapourSynth-65 → vapoursynth-70}/include/VapourSynth.h +0 -0
  36. {VapourSynth-65 → vapoursynth-70}/setup.cfg +0 -0
  37. {VapourSynth-65 → vapoursynth-70}/src/cython/vsscript.pxd +0 -0
  38. {VapourSynth-65 → vapoursynth-70}/src/cython/vsscript_internal.pxd +0 -0
  39. {VapourSynth-65 → vapoursynth-70}/src/vsscript/vsscript_internal.h +0 -0
  40. {VapourSynth-65 → vapoursynth-70}/test/async_test.py +0 -0
  41. {VapourSynth-65 → vapoursynth-70}/test/expr_compiler/compiler_test.py +0 -0
  42. {VapourSynth-65 → vapoursynth-70}/test/expr_compiler/havs_exprs.txt +0 -0
  43. {VapourSynth-65 → vapoursynth-70}/test/expr_compiler/muvs_exprs.txt +0 -0
  44. {VapourSynth-65 → vapoursynth-70}/test/expr_compiler/reference_output.txt +0 -0
  45. {VapourSynth-65 → vapoursynth-70}/test/expr_test.py +0 -0
  46. {VapourSynth-65 → vapoursynth-70}/test/filter_test.py +0 -0
  47. {VapourSynth-65 → vapoursynth-70}/test/log_test.py +0 -0
  48. {VapourSynth-65 → vapoursynth-70}/test/lut_test.py +0 -0
  49. {VapourSynth-65 → vapoursynth-70}/test/prop_dict_test.py +0 -0
  50. {VapourSynth-65 → vapoursynth-70}/test/test.py +0 -0
  51. {VapourSynth-65 → vapoursynth-70}/test/weakref_test.py +0 -0
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2012-2020 Fredrik Mellbin
2
+ # Copyright (c) 2012-2024 Fredrik Mellbin
3
3
  #
4
4
  # This file is part of VapourSynth.
5
5
  #
@@ -48,76 +48,82 @@ cdef extern from "include/VapourSynth4.h" nogil:
48
48
  ctypedef struct VSFrameContext:
49
49
  pass
50
50
 
51
- cpdef enum MediaType "VSMediaType":
52
- VIDEO "mtVideo"
53
- AUDIO "mtAudio"
54
-
55
- cpdef enum ColorFamily "VSColorFamily":
56
- UNDEFINED "cfUndefined"
57
- GRAY "cfGray"
58
- RGB "cfRGB"
59
- YUV "cfYUV"
60
-
61
- cpdef enum SampleType "VSSampleType":
62
- INTEGER "stInteger"
63
- FLOAT "stFloat"
64
-
65
- cpdef enum PresetVideoFormat "VSPresetVideoFormat":
66
- NONE "pfNone"
67
-
68
- GRAY8 "pfGray8"
69
- GRAY9 "pfGray9"
70
- GRAY10 "pfGray10"
71
- GRAY12 "pfGray12"
72
- GRAY14 "pfGray14"
73
- GRAY16 "pfGray16"
74
- GRAY32 "pfGray32"
75
-
76
- GRAYH "pfGrayH"
77
- GRAYS "pfGrayS"
78
-
79
- YUV410P8 "pfYUV410P8"
80
- YUV411P8 "pfYUV411P8"
81
- YUV440P8 "pfYUV440P8"
82
-
83
- YUV420P8 "pfYUV420P8"
84
- YUV422P8 "pfYUV422P8"
85
- YUV444P8 "pfYUV444P8"
86
-
87
- YUV420P9 "pfYUV420P9"
88
- YUV422P9 "pfYUV422P9"
89
- YUV444P9 "pfYUV444P9"
90
-
91
- YUV420P10 "pfYUV420P10"
92
- YUV422P10 "pfYUV422P10"
93
- YUV444P10 "pfYUV444P10"
94
-
95
- YUV420P12 "pfYUV420P12"
96
- YUV422P12 "pfYUV422P12"
97
- YUV444P12 "pfYUV444P12"
98
-
99
- YUV420P14 "pfYUV420P14"
100
- YUV422P14 "pfYUV422P14"
101
- YUV444P14 "pfYUV444P14"
102
-
103
- YUV420P16 "pfYUV420P16"
104
- YUV422P16 "pfYUV422P16"
105
- YUV444P16 "pfYUV444P16"
51
+ enum:
52
+ mtVideo
53
+ mtAudio
106
54
 
107
- YUV444PH "pfYUV444PH"
108
- YUV444PS "pfYUV444PS"
55
+ enum:
56
+ cfUndefined
57
+ cfGray
58
+ cfRGB
59
+ cfYUV
109
60
 
110
- RGB24 "pfRGB24"
111
- RGB27 "pfRGB27"
112
- RGB30 "pfRGB30"
113
- RGB36 "pfRGB36"
114
- RGB42 "pfRGB42"
115
- RGB48 "pfRGB48"
61
+ enum:
62
+ stInteger
63
+ stFloat
116
64
 
117
- RGBH "pfRGBH"
118
- RGBS "pfRGBS"
65
+ enum:
66
+ pfNone
67
+
68
+ pfGray8
69
+ pfGray9
70
+ pfGray10
71
+ pfGray12
72
+ pfGray14
73
+ pfGray16
74
+ pfGray32
75
+
76
+ pfGrayH
77
+ pfGrayS
78
+
79
+ pfYUV410P8
80
+ pfYUV411P8
81
+ pfYUV440P8
82
+
83
+ pfYUV420P8
84
+ pfYUV422P8
85
+ pfYUV444P8
86
+
87
+ pfYUV420P9
88
+ pfYUV422P9
89
+ pfYUV444P9
90
+
91
+ pfYUV420P10
92
+ pfYUV422P10
93
+ pfYUV444P10
94
+
95
+ pfYUV420P12
96
+ pfYUV422P12
97
+ pfYUV444P12
98
+
99
+ pfYUV420P14
100
+ pfYUV422P14
101
+ pfYUV444P14
102
+
103
+ pfYUV420P16
104
+ pfYUV422P16
105
+ pfYUV444P16
106
+
107
+ pfYUV420PH
108
+ pfYUV420PS
109
+
110
+ pfYUV422PH
111
+ pfYUV422PS
112
+
113
+ pfYUV444PH
114
+ pfYUV444PS
115
+
116
+ pfRGB24
117
+ pfRGB27
118
+ pfRGB30
119
+ pfRGB36
120
+ pfRGB42
121
+ pfRGB48
122
+
123
+ pfRGBH
124
+ pfRGBS
119
125
 
120
- cpdef enum FilterMode "VSFilterMode":
126
+ enum:
121
127
  fmParallel
122
128
  fmParallelRequests
123
129
  fmUnordered
@@ -132,32 +138,32 @@ cdef extern from "include/VapourSynth4.h" nogil:
132
138
  int subSamplingH
133
139
  int numPlanes
134
140
 
135
- cpdef enum AudioChannels "VSAudioChannels":
136
- FRONT_LEFT "acFrontLeft"
137
- FRONT_RIGHT "acFrontRight"
138
- FRONT_CENTER "acFrontCenter"
139
- LOW_FREQUENCY "acLowFrequency"
140
- BACK_LEFT "acBackLeft"
141
- BACK_RIGHT "acBackRight"
142
- FRONT_LEFT_OF_CENTER "acFrontLeftOFCenter"
143
- FRONT_RIGHT_OF_CENTER "acFrontRightOFCenter"
144
- BACK_CENTER "acBackCenter"
145
- SIDE_LEFT "acSideLeft"
146
- SIDE_RIGHT "acSideRight"
147
- TOP_CENTER "acTopCenter"
148
- TOP_FRONT_LEFT "acTopFrontLeft"
149
- TOP_FRONT_CENTER "acTopFrontCenter"
150
- TOP_FRONT_RIGHT "acTopFrontRight"
151
- TOP_BACK_LEFT "acTopBackLeft"
152
- TOP_BACK_CENTER "acTopBackCenter"
153
- TOP_BACK_RIGHT "acTopBackRight"
154
- STEREO_LEFT "acStereoLeft"
155
- STEREO_RIGHT "acStereoRight"
156
- WIDE_LEFT "acWideLeft"
157
- WIDE_RIGHT "acWideRight"
158
- SURROUND_DIRECT_LEFT "acSurroundDirectLeft"
159
- SURROUND_DIRECT_RIGHT "acSurroundDirectRight"
160
- LOW_FREQUENCY2 "acLowFrequency2"
141
+ enum:
142
+ acFrontLeft
143
+ acFrontRight
144
+ acFrontCenter
145
+ acLowFrequency
146
+ acBackLeft
147
+ acBackRight
148
+ acFrontLeftOFCenter
149
+ acFrontRightOFCenter
150
+ acBackCenter
151
+ acSideLeft
152
+ acSideRight
153
+ acTopCenter
154
+ acTopFrontLeft
155
+ acTopFrontCenter
156
+ acTopFrontRight
157
+ acTopBackLeft
158
+ acTopBackCenter
159
+ acTopBackRight
160
+ acStereoLeft
161
+ acStereoRight
162
+ acWideLeft
163
+ acWideRight
164
+ acSurroundDirectLeft
165
+ acSurroundDirectRight
166
+ acLowFrequency2
161
167
 
162
168
  ctypedef struct VSAudioFormat:
163
169
  int sampleType
@@ -215,14 +221,14 @@ cdef extern from "include/VapourSynth4.h" nogil:
215
221
  arAllFramesReady
216
222
  arError
217
223
 
218
- cpdef enum MessageType "VSMessageType":
219
- MESSAGE_TYPE_DEBUG "mtDebug"
220
- MESSAGE_TYPE_INFORMATION "mtInformation"
221
- MESSAGE_TYPE_WARNING "mtWarning"
222
- MESSAGE_TYPE_CRITICAL "mtCritical"
223
- MESSAGE_TYPE_FATAL "mtFatal"
224
+ enum:
225
+ mtDebug
226
+ mtInformation
227
+ mtWarning
228
+ mtCritical
229
+ mtFatal
224
230
 
225
- cpdef enum CoreCreationFlags "VSCoreCreationFlags":
231
+ enum:
226
232
  ccfEnableGraphInspection
227
233
  ccfDisableAutoLoading
228
234
  ccfDisableLibraryUnloading
@@ -393,15 +399,24 @@ cdef extern from "include/VapourSynth4.h" nogil:
393
399
  VSLogHandle *addLogHandler(VSLogHandler handler, VSLogHandlerFree free, void *userData, VSCore *core) nogil
394
400
  bint removeLogHandler(VSLogHandle *handle, VSCore *core) nogil
395
401
 
402
+ # Additional cache management to free memory */
403
+ void clearNodeCache(VSNode *node) nogil
404
+ void clearCoreCaches(VSCore *core) nogil
396
405
 
406
+ # Basic node information
407
+ const char *getNodeName(VSNode *node) nogil
408
+ int getNodeFilterMode(VSNode *node) nogil
409
+ int getNumNodeDependencies(VSNode *node) nogil
410
+ const VSFilterDependency *getNodeDependency(VSNode *node, int index) nogil
411
+
412
+ # Node timing functions
413
+ int getCoreNodeTiming(VSCore *core) nogil
414
+ void setCoreNodeTiming(VSCore *core, int enable) nogil
415
+ int64_t getNodeProcessingTime(VSNode *node, int reset) nogil
416
+ int64_t getFreedNodeProcessingTime(VSCore *core, int reset) nogil
397
417
 
398
418
  # Unstable API, has no set place.
399
419
  const char *getNodeCreationFunctionName(VSNode *node, int level) nogil
400
420
  const VSMap *getNodeCreationFunctionArguments(VSNode *node, int level) nogil
401
- const char *getNodeName(VSNode *node) nogil
402
- int getNodeFilterMode(VSNode *node) nogil
403
- int64_t getNodeFilterTime(VSNode *node) nogil
404
- const VSFilterDependency *getNodeDependencies(VSNode *node) nogil
405
- int getNumNodeDependencies(VSNode *node) nogil
406
421
 
407
422
  const VSAPI *getVapourSynthAPI(int version) nogil