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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: VapourSynth
3
- Version: 65
3
+ Version: 70
4
4
  Summary: A frameserver for the 21st century
5
5
  Home-page: https://www.vapoursynth.com/
6
6
  Download-URL: https://github.com/vapoursynth/vapoursynth
@@ -0,0 +1 @@
1
+ #define VS_CURRENT_RELEASE 70
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: VapourSynth
3
- Version: 65
3
+ Version: 70
4
4
  Summary: A frameserver for the 21st century
5
5
  Home-page: https://www.vapoursynth.com/
6
6
  Download-URL: https://github.com/vapoursynth/vapoursynth
@@ -31,16 +31,6 @@ test/prop_dict_test.py
31
31
  test/test.py
32
32
  test/weakref_test.py
33
33
  test/zimgtest.py
34
- test/__pycache__/async_test.cpython-311.pyc
35
- test/__pycache__/environment_test.cpython-311.pyc
36
- test/__pycache__/expr_test.cpython-311.pyc
37
- test/__pycache__/filter_test.cpython-311.pyc
38
- test/__pycache__/log_test.cpython-311.pyc
39
- test/__pycache__/lut_test.cpython-311.pyc
40
- test/__pycache__/prop_dict_test.cpython-311.pyc
41
- test/__pycache__/test.cpython-311.pyc
42
- test/__pycache__/weakref_test.cpython-311.pyc
43
- test/__pycache__/zimgtest.cpython-311.pyc
44
34
  test/expr_compiler/compiler_test.py
45
35
  test/expr_compiler/havs_exprs.txt
46
36
  test/expr_compiler/muvs_exprs.txt
@@ -72,6 +72,7 @@ typedef enum VSTransferCharacteristics {
72
72
  VSC_TRANSFER_BT2020_10 = 14, /* Equivalent to 1. */
73
73
  VSC_TRANSFER_BT2020_12 = 15, /* Equivalent to 1. */
74
74
  VSC_TRANSFER_ST2084 = 16,
75
+ VSC_TRANSFER_ST428 = 17,
75
76
  VSC_TRANSFER_ARIB_B67 = 18
76
77
  } VSTransferCharacteristics;
77
78
 
@@ -23,8 +23,13 @@
23
23
 
24
24
  #include "VapourSynth4.h"
25
25
 
26
+ /* Note that the base version of the API is 4.1 due to that change happening very soon after the API4 release */
26
27
  #define VSSCRIPT_API_MAJOR 4
28
+ #if defined(VSSCRIPT_USE_LATEST_API) || defined(VSSCRIPT_USE_API_42)
29
+ #define VSSCRIPT_API_MINOR 2
30
+ #else
27
31
  #define VSSCRIPT_API_MINOR 1
32
+ #endif
28
33
  #define VSSCRIPT_API_VERSION VS_MAKE_VERSION(VSSCRIPT_API_MAJOR, VSSCRIPT_API_MINOR)
29
34
 
30
35
  typedef struct VSScript VSScript;
@@ -90,6 +95,13 @@ struct VSSCRIPTAPI {
90
95
  */
91
96
  void (VS_CC *evalSetWorkingDir)(VSScript *handle, int setCWD) VS_NOEXCEPT;
92
97
 
98
+ #if defined(VSSCRIPT_USE_LATEST_API) || defined(VSSCRIPT_USE_API_42)
99
+ /*
100
+ * Write a list of set output index values to dst but at most size values.
101
+ * Always returns the total number of available output index values.
102
+ */
103
+ int (VS_CC *getAvailableOutputNodes)(VSScript *handle, int size, int *dst) VS_NOEXCEPT;
104
+ #endif
93
105
  };
94
106
 
95
107
  VS_API(const VSSCRIPTAPI *) getVSScriptAPI(int version) VS_NOEXCEPT;
@@ -26,7 +26,11 @@
26
26
 
27
27
  #define VS_MAKE_VERSION(major, minor) (((major) << 16) | (minor))
28
28
  #define VAPOURSYNTH_API_MAJOR 4
29
+ #if defined(VS_USE_LATEST_API) || defined(VS_USE_API_41)
30
+ #define VAPOURSYNTH_API_MINOR 1
31
+ #else
29
32
  #define VAPOURSYNTH_API_MINOR 0
33
+ #endif
30
34
  #define VAPOURSYNTH_API_VERSION VS_MAKE_VERSION(VAPOURSYNTH_API_MAJOR, VAPOURSYNTH_API_MINOR)
31
35
 
32
36
  #define VS_AUDIO_FRAME_SAMPLES 3072
@@ -133,6 +137,10 @@ typedef enum VSPresetVideoFormat {
133
137
  pfYUV422P16 = VS_MAKE_VIDEO_ID(cfYUV, stInteger, 16, 1, 0),
134
138
  pfYUV444P16 = VS_MAKE_VIDEO_ID(cfYUV, stInteger, 16, 0, 0),
135
139
 
140
+ pfYUV420PH = VS_MAKE_VIDEO_ID(cfYUV, stFloat, 16, 1, 1),
141
+ pfYUV420PS = VS_MAKE_VIDEO_ID(cfYUV, stFloat, 32, 1, 1),
142
+ pfYUV422PH = VS_MAKE_VIDEO_ID(cfYUV, stFloat, 16, 1, 0),
143
+ pfYUV422PS = VS_MAKE_VIDEO_ID(cfYUV, stFloat, 32, 1, 0),
136
144
  pfYUV444PH = VS_MAKE_VIDEO_ID(cfYUV, stFloat, 16, 0, 0),
137
145
  pfYUV444PS = VS_MAKE_VIDEO_ID(cfYUV, stFloat, 32, 0, 0),
138
146
 
@@ -293,7 +301,11 @@ typedef enum VSDataTypeHint {
293
301
  typedef enum VSRequestPattern {
294
302
  rpGeneral = 0, /* General pattern */
295
303
  rpNoFrameReuse = 1, /* When requesting all output frames from the filter no frame will be requested more than once from this input clip, never requests frames beyond the end of the clip */
296
- rpStrictSpatial = 2 /* Always (and only) requests frame n from input clip when generating output frame n, never requests frames beyond the end of the clip */
304
+ rpStrictSpatial = 2 /* Always (and only) requests frame n from the input clip when generating output frame n, never requests frames beyond the end of the clip */
305
+ #if VAPOURSYNTH_API_MINOR >= 1
306
+ ,
307
+ rpFrameReuseLastOnly = 3 /* Added in API 4.1, This modes is basically identical rpNoFrameReuse except that it hints the last frame may be requested multiple times */
308
+ #endif
297
309
  } VSRequestPattern;
298
310
 
299
311
  typedef enum VSCacheMode {
@@ -317,11 +329,11 @@ typedef void (VS_CC *VSFrameDoneCallback)(void *userData, const VSFrame *f, int
317
329
  typedef void (VS_CC *VSLogHandler)(int msgType, const char *msg, void *userData);
318
330
  typedef void (VS_CC *VSLogHandlerFree)(void *userData);
319
331
 
320
- struct VSPLUGINAPI {
332
+ typedef struct VSPLUGINAPI {
321
333
  int (VS_CC *getAPIVersion)(void) VS_NOEXCEPT; /* returns VAPOURSYNTH_API_VERSION of the library */
322
334
  int (VS_CC *configPlugin)(const char *identifier, const char *pluginNamespace, const char *name, int pluginVersion, int apiVersion, int flags, VSPlugin *plugin) VS_NOEXCEPT; /* use the VS_MAKE_VERSION macro for pluginVersion */
323
335
  int (VS_CC *registerFunction)(const char *name, const char *args, const char *returnType, VSPublicFunction argsFunc, void *functionData, VSPlugin *plugin) VS_NOEXCEPT; /* non-zero return value on success */
324
- };
336
+ } VSPLUGINAPI;
325
337
 
326
338
  typedef struct VSFilterDependency {
327
339
  VSNode *source;
@@ -454,7 +466,7 @@ struct VSAPI {
454
466
  /* Core and information */
455
467
  VSCore *(VS_CC *createCore)(int flags) VS_NOEXCEPT; /* flags uses the VSCoreCreationFlags enum */
456
468
  void (VS_CC *freeCore)(VSCore *core) VS_NOEXCEPT; /* only call this function after all node, frame and function references belonging to the core have been freed */
457
- int64_t(VS_CC *setMaxCacheSize)(int64_t bytes, VSCore *core) VS_NOEXCEPT; /* the total cache size at which vapoursynth more aggressively tries to reclaim memory, it is not a hard limit */
469
+ int64_t (VS_CC *setMaxCacheSize)(int64_t bytes, VSCore *core) VS_NOEXCEPT; /* the total cache size at which vapoursynth more aggressively tries to reclaim memory, it is not a hard limit */
458
470
  int (VS_CC *setThreadCount)(int threads, VSCore *core) VS_NOEXCEPT; /* setting threads to 0 means automatic detection */
459
471
  void (VS_CC *getCoreInfo)(VSCore *core, VSCoreInfo *info) VS_NOEXCEPT;
460
472
  int (VS_CC *getAPIVersion)(void) VS_NOEXCEPT;
@@ -464,23 +476,36 @@ struct VSAPI {
464
476
  VSLogHandle *(VS_CC *addLogHandler)(VSLogHandler handler, VSLogHandlerFree free, void *userData, VSCore *core) VS_NOEXCEPT; /* free and userData can be NULL, returns a handle that can be passed to removeLogHandler */
465
477
  int (VS_CC *removeLogHandler)(VSLogHandle *handle, VSCore *core) VS_NOEXCEPT; /* returns non-zero if successfully removed */
466
478
 
467
- #ifdef VS_GRAPH_API
468
- /* Graph information */
479
+ /* Added in API 4.1, mostly graph and node inspection, PLEASE DON'T USE INSIDE FILTERS */
480
+ #if VAPOURSYNTH_API_MINOR >= 1
481
+ /* Additional cache management to free memory */
482
+ void (VS_CC *clearNodeCache)(VSNode *node) VS_NOEXCEPT; /* clears the cache of the specified node */
483
+ void (VS_CC *clearCoreCaches)(VSCore *core) VS_NOEXCEPT; /* clears all caches belonging to the specified core */
484
+
485
+ /* Basic node information */
486
+ const char *(VS_CC *getNodeName)(VSNode *node) VS_NOEXCEPT; /* the name passed to create*Filter */
487
+ int (VS_CC *getNodeFilterMode)(VSNode *node) VS_NOEXCEPT; /* returns VSFilterMode */
488
+ int (VS_CC *getNumNodeDependencies)(VSNode *node) VS_NOEXCEPT;
489
+ const VSFilterDependency *(VS_CC *getNodeDependency)(VSNode *node, int index) VS_NOEXCEPT;
469
490
 
470
- /*
491
+ /* Node timing functions */
492
+ int (VS_CC *getCoreNodeTiming)(VSCore *core) VS_NOEXCEPT; /* non-zero when filter timing is enabled */
493
+ void (VS_CC *setCoreNodeTiming)(VSCore *core, int enable) VS_NOEXCEPT; /* non-zero enables filter timing, note that disabling simply stops the counters from incrementing */
494
+ int64_t (VS_CC *getNodeProcessingTime)(VSNode *node, int reset) VS_NOEXCEPT; /* time spent processing frames in nanoseconds, reset sets the counter to 0 again */
495
+ int64_t (VS_CC *getFreedNodeProcessingTime)(VSCore *core, int reset) VS_NOEXCEPT; /* time spent processing frames in nanoseconds in all destroyed nodes, reset sets the counter to 0 again */
496
+
497
+ #if defined(VS_GRAPH_API)
498
+ /* !!! Experimental/expensive graph information, these function require both the major and minor version to match exactly when using them !!!
499
+ *
471
500
  * These functions only exist to retrieve internal details for debug purposes and graph visualization
472
501
  * They will only only work properly when used on a core created with ccfEnableGraphInspection and are
473
502
  * not safe to use concurrently with frame requests or other API functions. Because of this they are
474
503
  * unsuitable for use in plugins and filters.
475
504
  */
476
-
505
+
477
506
  const char *(VS_CC *getNodeCreationFunctionName)(VSNode *node, int level) VS_NOEXCEPT; /* level=0 returns the name of the function that created the filter, specifying a higher level will retrieve the function above that invoked it or NULL if a non-existent level is requested */
478
507
  const VSMap *(VS_CC *getNodeCreationFunctionArguments)(VSNode *node, int level) VS_NOEXCEPT; /* level=0 returns a copy of the arguments passed to the function that created the filter, returns NULL if a non-existent level is requested */
479
- const char *(VS_CC *getNodeName)(VSNode *node) VS_NOEXCEPT; /* the name passed to create*Filter */
480
- int (VS_CC *getNodeFilterMode)(VSNode *node) VS_NOEXCEPT; /* VSFilterMode */
481
- int64_t (VS_CC *getNodeFilterTime)(VSNode *node) VS_NOEXCEPT; /* time spent processing frames in nanoseconds */
482
- const VSFilterDependency *(VS_CC *getNodeDependencies)(VSNode *node) VS_NOEXCEPT;
483
- int (VS_CC *getNumNodeDependencies)(VSNode *node) VS_NOEXCEPT;
508
+ #endif
484
509
  #endif
485
510
  };
486
511
 
@@ -101,7 +101,7 @@ setup(
101
101
  ext_modules=[
102
102
  Extension(
103
103
  "vapoursynth", [join("src", "cython", "vapoursynth.pyx")],
104
- define_macros=[("VS_GRAPH_API", None), ("VS_CURRENT_RELEASE", CURRENT_RELEASE)],
104
+ define_macros=[("VS_USE_LATEST_API", None), ("VS_GRAPH_API", None), ("VS_CURRENT_RELEASE", CURRENT_RELEASE)],
105
105
  libraries=["vapoursynth"],
106
106
  library_dirs=library_dirs,
107
107
  include_dirs=[