Changes from 3.7.5 to 3.7.6¶
Additions, changes¶
Added new pixel format constants
YUV(A) 4:4:0(:α) 8~32bits
YV411 aliased to more standard YUV411 naming
YUV 4:1:1 10~32bits
YUVA 4:1:1:α 8~32bits
Y plus alpha 4:0:0:α 8~32bits
YUV9 (added in 2.6 but not used except in the constants list) aliased to more standard YUV410 naming
YUV 4:1:0 10~32bits
YUVA 4:1:0:α 8~32bits
VfW: YUV 4:1:0 is served as
YVU9(Y, V, U) and YUV 4:4:0 asI440(Y, U, V); 4:1:1, 4:1:0 and 4:4:0 formats over 8 bits (with or without alpha) are served as their 8-bit YV411/YVU9/I440counterparts.VfW: 8-bit Y plus alpha (
YA8) clips are now served with theY2[0][8]FourCC (a packed Y,A interleaved layout; matches ffmpeg'sAV_PIX_FMT_YA8).Added
ConvertToYA, besidesConvertToY, mirroring the existingConvertToYUVxxx/ConvertToYUVAxxxpairs.New array syntax:
dictionary-style ArraySet (replaces or appends).
dictionary-style ArrayDel (deletes by key, no-op if not found).
dictionary-style ArrayIndexOf (returns the actual index of the dictionary-style array search).
See Arrays.
Added
SetFilterProp,GetFilterProps, andSetFilterPropPassthrough:SetFilterProp— automatically inject a frame property on the output of a named filter every time it is instantiated, without modifying the script. Rules are typically placed in an auto-loaded.avsifile. The property value may be a static int/float/string, a function object evaluated per frame (e.g. to derive_Matrixfrom output resolution), or captured from the filter's own call argument (undefined()capture mode).SetFilterPropconditional form — inject a property only when a specific named call argument equals a given match value or any element of an alias array. String comparison is case-insensitive. Both positional and named call sites are matched.SetFilterPropPassthrough— compatibility shim for old filters that predate frame-property support (e.g.ColorMatrix). Copies all input frame properties to the filter's output; self-healing: becomes a no-op per frame once the plugin is updated to useNewVideoFrameP.GetFilterProps— returns the registered rule table as a JSON string for diagnostics (valid JSON: escaped strings, NaN and infinity asnull).
Addresses issue #393 and more. See SetFilterProp.
Bump year to 2026
Overlay: "add" and "subtract" direct RGB mode
Overlay: "add" and "subtract" supports 32-bit float.
Added utf8 parameter to AddAutoLoadDir
Added utf8 parameter to ListAutoLoadDirs
Added utf8 parameter to LoadPlugin
Added utf8 parameter to DumpFilterGraph
"Info": Optimize AVX512 features display, group features, make a bit more compact
"Info": add L2 cache size display
"SetMaxCPU": add "avx512base" and "avx512fast" options to enable/disable AVX512 grouped features. see SetMaxCPU . Users of base-only AVX512 CPUs can enable Avisynth-optimizations with SetMaxCPU("avx512base+").
ARM64 (aarch64) area:
"Info": add ARMV8-A features display (NEON, DOTPROD, SVE2)
Add ArmV8-A cpu feature detection (NEON, DOTPROD, SVE2) on ARM64 Windows/Linux/macOS builds. On Windows, only up-to DOTPROD can be detected due to OS limitations.
New CPU flags in
cpuid.handavisynth_c.h: CPUF_ARM_NEON, CPUF_ARM_DOTPROD, CPUF_ARM_SVE2"SetMaxCPU": add "neon", "dotprod", "sve2", "i8mm", "sve2.1" options to enable/disable ARM64 (aarch64) features.
"ConvertToPlanarRGB(A)":
bitsparameter: on-the-fly bit-depth conversions to YUV->RGB conversion. See ConvertToPlanarRGB.ConvertToPlanarRGB(A): addedqualityparameter: forces 32-bit float internal processing instead of S18.13 fixed-point arithmetic when converting from YUV, regardless of source or target bit-depth. See ConvertToPlanarRGB."ConvertToYUV(A)xxx" and legacy 8 bit name versions:
bitsparameter: on-the-fly bit-depth conversions to RGB->YUV conversion. See ConvertToYUV444.ConvertToYUV(A)xxxand legacy 8 bit name versions: addedqualityparameter: forces 32-bit float internal processing instead of S18.13 fixed-point arithmetic when converting to YUV, regardless of source or target bit-depth. See ConvertToYUV444."ResetMask": add parameter float "opacity"
"AddAlphaPlane": add parameter float "opacity"
"Layer": YUY2 is handled as YV16 (lessen source code bloat)
"Histogram" Color and Color2 mode additions and fixes:
Added
matrixparameter (Color and Color2): specifies the YUV matrix for chroma interpretation (BT.601, BT.709, BT.2020, etc.), following the same convention as theConvertToYUVfamily. If not set, the matrix is read from the clip's_Matrixand_ColorRangeframe properties.Added
graticulestring parameter (Color and Color2): controls the danger zone shading (Color) or valid chroma boundary square (Color2)."on"(default) always draws it, preserving pre-3.7.6 behavior;"off"never draws it;"auto"draws it only for limited-range clips and suppresses it for full-range clips.Added
circleparameter (Color and Color2, default false for Color, default true for Color2): draws the hue circle with 15° tick marks. In Color2 mode this was previously always drawn; it can now be disabled.Added
targetsparameter (Color and Color2, default false): draws target boxes at the six 75%-amplitude ColorBars Cb/Cr positions (Yellow, Cyan, Green, Magenta, Red, Blue). Positions are computed from ground-truth linear RGB values through the active matrix, giving accurate coordinates at all bit depths.Added
targets100parameter (Color and Color2, default false): draws target boxes at the same six ColorBars Cb/Cr positions astargets, but placed at 100% luma level instead of 75%.Added
axesparameter (Color and Color2, default false): draws horizontal and vertical crosshair lines through the vectorscope center.Added
iqparameter (Color and Color2, default false): draws target boxes for the NTSC −I, +I and +Q chroma-phase references, using the luma-corrected broadcast convention (Y raised until the most negative RGB component reaches Code 0, avoiding illegal RGB values).Added
iq_linesparameter (Color and Color2, default false): draws radial lines at the fixed NTSC subcarrier phase angles of 33°, 123°, 213° and 303°, marking the I and Q chroma axes.Fix: "Color" and "Color2" modes: copy alpha channel from source for alpha-carrying formats (YUVA, RGBPA, RGB32, RGB64); initialize alpha to zero in the histogram panel area.
Fix: accurate pixel positioning and scaling throughout the histogram panel, limited/full range aware. Marker positions use the same conversion path as the vectorscope signal dots, ensuring exact alignment at any bit depth and color range.
Vectorscope is now fully matrix-aware: all overlay marker positions are computed from ground-truth linear RGB values converted through the active YUV matrix, giving accurate Cb/Cr coordinates at all bit depths including 32-bit float.
ConvertToYUV4xx:
ChromaInPlacement/ChromaOutPlacementare defined per axis (co-sited, centered or bottom, horizontally and vertically), and every placement name is accepted for every subsampled format; on a non-subsampled axis the positions coincide (e.g. 4:4:0"left"equals"center", 4:2:2/4:1:1"top"equals"center","DV"equals"left"there). 4:2:2 and 4:1:1 no longer reject"top","bottom"and"DV". See Convert.Resizers
placement: same per-axis chroma siting as ConvertToYUV4xx (shared code)."CombinePlanes": YA support:
planes="YA"from greyscale clips gives a YA clip, and the default source planes for a YA target are "YA". Target planes not listed inplaneskeep the first clip's plane at the same position (Y/G, U/B, V/R, A), or get a neutral value when it has none (U/V center, alpha opaque, Y/R/G/B black by_ColorRange); they were undefined before."UToY8", "VToY8", "UToY", "VToY", "ExtractU", "ExtractV", "PlaneToY", "YToUV": YA support: U/V extraction from a YA clip reports that it has no such plane; "YToUV" accepts YA clips (their Y plane is used, as for Y clips).
"ConvertToYUY2": rewritten to route all conversions through YV16 as intermediate format, using the full
ConvertToPlanarGenericinfrastructure.ChromaOutPlacementparameter added (was missing, present in ConvertToYV16). All source formats (YV12, YUV420/422/444, planar/packed RGB, high bit depth) are now handled correctly.bitsparameter accepted; must be 8 if specified. See Convert."ConvertBackToYUY2": kept for backward compatibility; now forwards to
ConvertToYUY2. The pre-2.5 left-pixel-only chroma hack is no longer needed or applied; the YV16 lossless repack path avoids chroma resampling loss entirely for roundtrip workflows."ConvertToYV12" (legacy 8-bit name): the YUY2 fast-path shortcut is removed; now routes directly through
ConvertToPlanarGeneric::CreateYUV420.bits=parameter semantics corrected: the legacy 8-bit-named functions (ConvertToYV12,ConvertToYV16,ConvertToYV24) now check the target bit depth rather than the source bit depth, allowing high-depth sources whenbits=8is explicitly specified.8 bit packed RGB formats are converted to planar RGB before 444 conversion. Stop using direct rgb-yv24 conversions (16 bits were already converted for long time).
Add ColorBarsUHD ITU-R BT.2111-3 (05/2025) with three signal variants: HLG narrow range (mode=0), PQ narrow range (mode=1) and PQ full range (mode=2)
"Layer": add
"mulovr"op — Overlay-style multiply for YUV(A) formats only (RGB raises an error). The overlay luma (Y) plane drives darkening of all base planes: dark overlay Y pulls base luma toward black and simultaneously desaturates base chroma toward neutral (128 for 8-bit integer, 0.0 for float). Bright overlay Y (max value) leaves the base unchanged. MatchesOverlay(mode="multiply")within ±1 LSB for all bit depths and all chroma placements. Supports 8–16-bit integer and 32-bit float; all YUV subsampling (Y, 4:1:1, 4:2:0, 4:2:2, 4:4:4); alpha-aware (YUVA) and non-alpha sources. Uses a two-pass structure like "lighten"/"darken": pass 1 processes chroma using spatially-averaged overlay Y; pass 2 processes luma at full resolution. The"placement"parameter is respected for correct 4:2:0 / 4:2:2 mask downsampling. See Layer.ShowFrameNumber,ShowSMPTE,ShowTime,ShowCRC32,Info,Compare: addgdibool parameter.When
gdi=true(default on Windows with GDI), the Windows GDI Antialiaser is used for antialiased text rendering (existing behavior). Whengdi=false, the built-in bitmap font (Terminus) is used instead: faster, cross-platform compatible, and the only option on non-Windows builds.fontdefault is nowgdi-dependent: "Arial" / "Courier New" for GDI, "Terminus" otherwise.bolddefault is nowgdi-dependent:truefor GDI,falsefor the bitmap font path.
See showframes, info, and compare.
ShowCRC32: addchannels,mode, andshowmodeparameters.channels— selects which planes to checksum using their initial letters (Y, U, V, A for YUV; R, G, B, A for RGB), defaulting to all planes. Unrecognised letters are silently ignored.mode—0(default): one combined CRC32 over all selected planes;1: separate CRC32 per plane displayed as"Y:XXXXXXXX U:XXXXXXXX ...".showmode—0(default): display text only;1: display text and store result as frame property"ShowCRC32"(int64array — one element formode=0, one per active plane formode=1);2: store frame property only, no text drawn. Values are unsigned 32-bit integers stored asint64.For packed formats (YUY2, RGB24/32/48/64) with default parameters the raw interleaved buffer is hashed directly, preserving backward compatibility.
Planar RGB(A): planes are always processed in R, G, B, A logical order.
See showframes.
"Layer":
"placement"has the same values, meaning and default as ConvertToXXXX'sChromaInPlacement: the default is now the base clip's_ChromaLocationframe property (was always"mpeg2"), else the format default. The mask downsampling kernel is the nearest implemented one, as in "Overlay"."Overlay": add
"placement"parameter: the chroma siting of the base clip (and the output), with the same values, meaning and default as ConvertToXXXX'sChromaInPlacement. The overlay clip and a color mask keep their own_ChromaLocationand are re-sited toplacementwhen it differs; the mask downsampling kernel is the nearest implemented one.Subtitle: addplacementstring parameter for all subsampled YUV formats incl. YUY2, with the same values, meaning and default as ConvertToXXXX'sChromaInPlacement; mapped to the nearest implemented text chroma kernel (same table as "Overlay"/"Layer"). YUY2 withgdi=trueis now rendered like 4:2:2 planar, so its default chroma is left-sited (was: always centred). See Subtitle / Text.Text:placement(and_ChromaLocation) values without an own kernel are mapped like inSubtitleinstead of falling back to"left": e.g."top"/"bottom"are rendered centred on 4:2:0/4:2:2/4:1:1."top_left"on 4:2:0 and 4:4:0 is now a 1-2-1 filter centred on the top-left luma sample (3x3 on 4:2:0, vertical on 4:4:0), on 4:2:2/YUY2 the same as"left"(was: the"left"kernel, on 4:2:0 half a luma row off vertically).Subtitle: addgdibool parameter. Whenfalse, Subtitle uses the built-in bitmap font (Terminus) instead of Windows GDI rendering — the same path as theTextfilter. Faster and cross-platform compatible. Default:true. See Subtitle / Text.Text: addgdibool parameter (accepted, has no effect; present for API compatibility withSubtitle— on non-Windows,Subtitleis aliased toTextso everySubtitleparameter must exist inText). Default:false. See Subtitle / Text."Blur", "Sharpen": more precise integer kernel (weight with 15 fractional bits instead of 7 in SIMD, 8 bit max error 0.5 instead of up to 2), identical in all (C/SSE2/SSSE3/SSE4.1/AVX2) paths. Slight output change for amounts other than +/-1.0.
"TemporalSoften" 10-16 bit: the average is rounded half up in all (C/SSE/AVX2) paths, which give identical results; differs from earlier versions by 1 only on exact .5 averages (when
scenechangeleft an even number of frames).Spline: calculation and result in 64 bit double (were 32 bit float), e.g.Spline(0.1, 0, 0, 1, 1, false)equals 0.1. Slight output change in the last digits.Script: floating point constants in scientific notation, e.g.
1.5e-5,2E+3,.5e1. A number with an exponent is always floating point (2e3is 2000.0).Format: floating point values are inserted with the shortest representation which reads back to exactly the same value, like Python'srepr()(e.g.1.5,1.0,1e-07,1.5259021896696422e-05), instead of 6 fixed decimals (1.500000,0.000000). The old output made the usual use case, building an expression likeExpr(Format("x {a} *")), silently inaccurate or plain wrong:1.0/65535became0.000015(1.7% off), any value below 5e-7 became0. Expressions built withFormat(Eval,Expr) now keep the full precision. For a fixed number of decimals useString(x, "%.2f").String(x, format): the value is passed according to the conversion letter: integer conversionsd i u o x X(e.g.String(255, "%x")= 'ff', 64 bit longs exact) besides the floating point onesf F e E g G a A; a floating point value with an integer conversion is truncated likeInt. C type size prefixes (h l ll L I64, e.g.%lf,%lld) are ignored, the value's own type decides: 64 bit integer support with the same format string on any compiler and OS (no%lld/%I64dneeded). Exactly one conversion is allowed, an invalid format string is an error. Was: the value was always passed as float, so integer conversions printed garbage (String(5, "%d")= '0'), and%s,%n,%Lfcrashed.Format: optional format specification for numbers after a colon, e.g.{:.2f},{0:x},{name:05d},{my_variable:.8f}: a single printf-like numeric conversion, the leading%is optional. Handled the same way asString(x, format_string)(integer conversions, 64 bit, no C type size prefixes needed).New script function
Hex64(int [, int width]): 64 bit version ofHex(pair ofHexValue64), e.g.Hex64(-1)= "FFFFFFFFFFFFFFFF",Hex64(4294967297)= "100000001". Width is 0 to 16.Hexdocumentation corrected: it is 32 bit, width 0 to 8.propShow: floating point property values in the same shortest exact form asFormat(e.g.0.1,1e-07), instead of 6 fixed decimals (0.100000,0.000000)."Expr": relative pixel load border modes:
x[dx,dy]:c(clamp, clone the edge pixel; default, same as without suffix),x[dx,dy]:m(mirror, edge pixel repeated; akarin.Expr compatible),x[dx,dy]:r(mirror without repeating the edge pixel, like OpenCVBORDER_REFLECT_101),k x[dx,dy]:k(constant fillerkfrom the stack, must be constant, e.g.range_half; like OpenCVBORDER_CONSTANT) andx[dx,dy]:w(wrap around, like OpenCVBORDER_WRAP). All modes are JIT optimized (SSE2, AVX2).
Build environment, Interface¶
Bump to interface version 13 for new color constants
v13.1 interface (
AVISYNTHPLUS_INTERFACE_BUGFIX_VERSION= 1): user defined cache hint range passed upstream for communication between plugins (https://github.com/AviSynth/AviSynthPlus/issues/521). The core's cache, MT guard,PrefetchandOnCPU/OnCUDAwrappers pass these hints to the filter and return its result:CachePolicyHint::CACHE_USER_FORWARD_BEGIN..CACHE_USER_FORWARD_END(C++)AVS_CACHE_USER_FORWARD_BEGIN..AVS_CACHE_USER_FORWARD_END(C)
See SetCacheHints .
v14 interface: C API additions; C++
AVSValue::AsFunctionexported.C++:
AVSValue::AsFunction(was internal), for calling function values withInvoke3,Invoke3TryFunction values:
avs_val_is_function,avs_invoke3,avs_invoke3_try(like C++Invoke3,Invoke3Try)avs_invoke_try,avs_invoke2,avs_invoke2_try(like C++InvokeTry,Invoke2,Invoke2Try)avs_val_get_typeandAVS_VALUE_TYPE_xxxconstants (like C++AVSValue::GetType,AvsValueType)avs_create_map,avs_free_map: standalone property map (like C++createMap,freeMap)avs_apply_message: write a UTF-8 text message onto a frame (like C++ApplyMessageExwith utf8=true)AVS_CS_RGBP8,AVS_CS_RGBAP8aliases
See API v14 changes for more details.
C API
avs_create_script_environment: a refused request (version newer than the AviSynth) is reported byavs_get_error. The returned wrapper holds no environment, as before.C API dynamic loading: new header
avisynth_c_loader.hfor all platforms, replaces the Windows-only loader inavisynth_c.h(which had uninitialized entries and leaked the DLL on a failed load). Loads all C API functions (missing ones are NULL), creates or detects the environment with the highest common interface version, and tells the available feature steps and 64 bit value support. See Dynamic loading.avisynth_c.h: list of API functions fixed later than they appeared, with the interface version of the fix.
avisynth.h:
CS_xxx_CHROMA_PLACEMENT(C++AvsChromaPlacement) marked deprecated: never implemented, use the_ChromaLocationframe property.introduce
AVS_RESTRICTtoavs/config.h(compiler invariant c++__restrict)AVX512: CMake to recognize
*_avx512b.*and*_avx512.*file pattern, add compiler specific AVX512 compile flags accordingly (AVX512 Base and Ice Lake extensions)AVX512 support by conditional define. Define INTEL_INTRINSICS_AVX512 if avx512 modules are enabled and compiler supports it. For MSVC,AVX512 support enabled only from MSVC 2019 16.2 (19.22) or newer.
add
.editorconfig, update .gitignore to include the new .slnx format of Visual Studio 2026v12 interface: Global Lock support (https://github.com/AviSynth/AviSynthPlus/issues/444), mainly for plugins using common fftw3 library:
env->AcquireGlobalLock,env->ReleaseGlobalLock(C++),avs_acquire_global_lock,avs_release_global_lock(C)
v12 interface: ApplyMessageEx supporting utf8 parameter. see ApplyMessageEx
v12 interface: inform plugins about the effective thread count after Prefetch() via cache hints:
CachePolicyHint::CACHE_INFORM_NUM_THREADS(C++)AVS_CACHE_INFORM_NUM_THREADS(C)
See SetCacheHints .
the internal IScriptEnvironment2 methods AddAutoLoadDir and ListAutoLoadDirs explicitely work in UTF-8.
New CPU flags:
cpuid.h and ``avisynth_c.h- added AVX512 group feature flags CPUF_AVX512_BASE and CPUF_AVX512_FAST (Ice Lake, usable AVX-512 since that point). - added many new AVX512 individual feature flags - added ARM64 feature flags CPUF_ARM_NEON, CPUF_ARM_DOTPROD, CPUF_ARM_SVE2 - CPUF_xxxxx flags are now 64 bit, replace enum with constexpr.CMakeLists.txt: avx512 compile flag support for gcc/clang ("base" and "fast", latter is Ice Lake-like feature set).
V12 interface:
GetCPUFlagsExreturning 64 bit flags (too many AVX512 subfeatures to fit in 32 bit). C interface:avs_get_cpu_flags_ex. see GetCPUFlagsEx and GetCPUFlagsV12 interface: L2 cache size query support. New entry in
AvsEnvProperty:AEP_CACHESIZE_L2(C++),AVS_AEP_CACHESIZE_L2(C) to query L2 cache size in bytes withIScriptEnvironment->GetEnvProperty(). x86/x64 architecture only for now. See AvsEnvProperty .Refactor CMakeLists.txt:
Correct default of
ENABLE_INTEL_SIMDfor cross-compiling scenarios (e.g.ARM64target onx86_64host) Old logic relied on the host processor:${CMAKE_SYSTEM_PROCESSOR}Add back option to compile
ARM64builds with Visual Studio on Windows. On VS2026 even clangcl (LLVM) is supported out-of-box for ARM64 platform, in an easily cross-compilable way from an x64 machine.VDubFilter: allow building on Windows only x86/x64 targets (and not for ARM64).
Fix LLVM/clangcl/Intel ICX compile warning:
'WIN32' macro redefined as "#define WIN32 /D_WINDOWS /W3 /GR /EHsc 1 ", when CMake injects a command-line macro wrongly and thus redefines WIN32 . The fix: converts globaladd_definitions("/D ...")and other option string magics into per-targettarget_compile_definitions()andtarget_compile_options(). Thus removing the accidental injection of${CMAKE_CXX_FLAGS}intoadd_compile_options(), and prevents the WIN32 macro redefinition.
CMakeLists: add option to pre-supply external DevIL library path and include directory (
-DDEVIL_LIBRARY/-DDEVIL_INCLUDE_DIR).CMakeLists: apply compiler parameter settings (warnings, compile flags) to all plugin sub-projects in addition to the core library.
Fix/optimize:
avs/minmax.hcontent now is force-inlined, since MSVC placed a function call for them! (checked with actual disassembly). Plus: wrap min/max/clamp in an anonymous namespace to prevent a theoretical translation unit mismatch across archs (e.g. when SSE2/AVX2/AVX512 specific.cppfiles are built with different per-file compiler flags). Part of our public headers, but no interface change was done.Script parser, internal code correctness (no change in behavior, except the error message): the identifier, number and name checks use ASCII-only tests instead of the C runtime character classification functions, which are undefined for bytes >= 0x80 (UTF-8, or an ANSI code page national character) and assert in debug builds. A non-ASCII character outside strings and comments now gives an error showing its byte value.
Internal code correctness (no change in behavior): the same ASCII-only tests for other text parameters and files: pixel type names,
CombinePlanesplane strings,Exprscale_inputs,ShowSMPTEoffset,AviSourcefourCC,ConditionalReaderfiles,SetMaxCPU,SetFilterMTModefilter names,Textfont names, variable name hashing.Internal code correctness (no change in behavior): 64 bit integer
+,-,*, unary minus andAbswrap around on overflow in a defined way (two's complement, computed as unsigned), instead of relying on signed overflow, which is undefined behavior in C++. E.g.9223372036854775807 + 1is still -9223372036854775808.Internal code correctness (no change in behavior): bit shift functions (
BitLShift,BitRShiftL,BitRShiftA,BitShl64,BitShr64,BitSar64and synonyms) and bit index functions (BitSet,BitClr,BitChg,BitTstand 64 bit versions) take the count modulo the bit width (0..31, 0..63), as x86 did at runtime anyway; a count out of range was undefined behavior in C++, as was a signed left shift into the sign bit. Documented.
Bugfixes¶
Fix: escaped strings ending with an escaped backslash, e.g.
e"C:\\Temp\\"ore"\\", gave "missing closing quotation mark". See Script variables.Fix:
ResampleAudio: fix signed overflow in the dtbe (creep error) scale.Fix: aarch64 Linux/BSD: SVE2.1 CPU feature was never detected. Reported by MeteorRain.
Fix:
Expr(x86/x64 JIT): memory leak on Linux, macOS and BSD (the compiled code was never freed), crash on FreeBSD; executable memory allocation failure gives an error instead of a crash. Reported by MeteorRain.Fix: Linux/BSD: crash when loading any C++ plugin into a host that links libavisynth directly (
AVS_linkagesymbol of the plugin resolved to the read-only one of the core). Existing plugins work without a rebuild. Reported by MeteorRain.Fix: Linux/macOS/BSD: an autoload plugin which cannot be loaded (e.g. ImageSeq without DevIL) made the whole autoload fail, and with it
LoadPluginof any other plugin. Now it is skipped like on Windows; an explicitLoadPluginof it still reports the reason. Reported by MysteryX.Fix:
SetMaxCPUlimited the CPU flags of the whole process until the AviSynth DLL was unloaded, e.g. a script reload in VirtualDub kept the earlier limit (#440). Now the limit belongs to the script environment. See SetMaxCPU. Existed since 3.6.0.Fix:
Stringand filter texts formatted byenv->Sprintfon Linux, macOS, BSD and MinGW (UCRT) builds: the decimal point is always., also when a host or plugin switched the process locale to a decimal comma one. Windows MSVC builds did so since 2016. The newFormatspecifications use the same. See String.Fix:
Value, "ConditionalReader" float values, "GeneralConvolution"matrix: the decimal point is always.. When a host or plugin switched the process locale to a decimal comma one (setlocale),Value("3.5")gave 3. See Value. Existed since classic AviSynth.Fix: C plugins without
avisynth_c_plugin_init2(pre-V11):avs_invokeinsideavisynth_c_plugin_initreturned unconverted double and 64 bit int values. Existed since 3.7.4.Fix: C plugins without
avisynth_c_plugin_init2(pre-V11) got unconverted double and 64 bit int values when their function was called at runtime (e.g. from ScriptClip), in array arguments, and in array results ofavs_invoke; such plugins cannot read them. Now converted to float and 32 bit int there as well (2.5 C++ plugins: top-level runtime arguments). Existed since 3.7.4.Fix: "CombinePlanes" with a single clip and a target of different chroma subsampling (e.g. YV12 to YV24, planes="Y"): the zero-copy path returned a malformed frame (chroma planes of the source size). Existed since r2487 (2017).
Fix: "CombinePlanes":
_ChromaLocationnow follows the clips the target U and V planes come from (it was always copied from the first clip, also e.g. when luma came from a Y clip and chroma from another one), and it is removed when the target has no subsampled chroma (Y, YA, 4:4:4, RGB). See CombinePlanes.Fix: Resizers with
placement="DV"(or_ChromaLocation6): both U and V were sited on the top row; U belongs to the bottom row, V to the top (DV-PAL 4:2:0). Existed since 3.7.4.Fix: "Text" (and "Subtitle"
gdi=false) on 4:4:4 formats with a fadinghalo_color($FFxxxxxx, shaded background): U and V were faded toward 16 instead of the chroma center, shifting the hue of the box. Regression since 3.7.3.Fix: "ConvertToYUY2" / "ConvertToYV12": YV12<->YUY2 interlaced conversion used asymmetric 0.75/0.25 chroma interpolation coefficients instead of the MPEG-2 specified 7/8,1/8 and 3/8,5/8 coefficients, introducing opposite- direction vertical chroma shifts in top and bottom fields. First diagnosed by Gavino in 2009; now resolved by routing through
ConvertToPlanarGeneric.Fix: "ConvertToYUY2" / "ConvertToYV12": progressive YV12<->YUY2 conversion used asymmetric 0.75/0.25 averaging (quarter-pixel offset) instead of the correct 0.5/0.5 midpoint average for left-sited chroma, introducing a 1/4-pixel vertical chroma shift.
Fix: "ConvertToYUY2":
_ChromaLocation,_Matrixand_ColorRangeframe properties were not read from YV12 source frames and not written to YUY2 output frames in the legacy direct conversion path.Fix: "ConvertToYUY2": SSE2 interlaced upsampling used wrong weighting direction for the lower line of each field pair (75%/25% toward current instead of 25%/75% toward next), differing from the C reference implementation.
Fix: memory leak and stability issue in frame recycling for static-frame sources (ColorBars, BlankClip): subframes created by Subframe/MakePropertyWritable accumulated without bound in permanently-live VFB buckets, and a race in frame property cleanup could cause access violations under multi-threaded use.
Fix: LruCache self-tuning cache resize: raised the ghost-hit threshold from
ghosted > 0toghosted > 1, preventing unbounded cache growth during backward seeking (Issue #379) and Bob()/SeparateFields access patterns (Issue #270). Frames evicted only once no longer trigger a resize; an undersized cache still grows once the same frame has been evicted twice.Fix: C-only vertical resampling code added more rounding than needed (regression since pre-3.7.5 20250427).
Fix: "Invert": corrected chroma inversion to pivot around signed 0 instead of XORing with max_pixel_value.
Fix: YUV->RGB limited range matrix accuracy for 10-16 bits, plus use a symmetric rounding in matrix coefficient's integer approximation.
Fix: inaccurate ColorBars 10+ bit values. Now they are derived from the 32-bit float RGB definitions instead of upscaling a 8 bit precalculated YUV value. -I and +Q are still kept at legacy Avisynth values.
Fix: inaccurate ColorBarsHD 10+ bit values. Now they are derived from the 32-bit float RGB definitions instead of upscaling a 8 bit precalculated YUV value. Add 100% White after Ramp section.
Fix: GreyScale + SSE2 + RGB32 + matrix="RGB" overflow. Rare usage; "RGB" matrix (Identity) uses a 1.0 coefficient which exceeds the signed 16-bit SIMD limit of 32767 at 15-bit precision. Added bounds checking to fallback to C-code for any coefficients >= 1.0 or < −1.0.
Fix #448: Resolved an issue where MT_MULTI_INSTANCE filters using relative paths (e.g. "video.mp4" or "../image.png") failed under Prefetch() when used in imported scripts from different directories. The problem occurred because new thread instances did not inherit the original working directory, causing path resolution to fail. Now, the current directory is captured at filter instantiation and passed to worker threads, ensuring consistent path resolution.
Fix #456: "Reverse" corrupts 24-bit audio (https://github.com/AviSynth/AviSynthPlus/issues/456)
Fix BDF font rendering when it contains variable width characters like mixed Latin and CJK. Preparing feature request #446 (https://github.com/AviSynth/AviSynthPlus/issues/446)
Fix #462: Report: "AviSynth scripts don't work in a folder with a Unicode name." Plugin autoload folders are internally stored in UTF-8, regardless of which Windows ANSI codepage is set.
Folder names used in macros in AddAutoLoadDir (SCRIPTDIR, MAINSCRIPTDIR, PROGRAMDIR) and no longer restricted to contain ANSI-only characters
Registry-backed macros that can contain plugin folder paths (USER_PLUS_PLUGINS, MACHINE_PLUS_PLUGINS, USER_CLASSIC_PLUGINS, MACHINE_CLASSIC_PLUGINS) are read in Unicode friendly way as well.
Fix: Not existing registry entries won't appear as a macro string in auto-load path. E.g. Avisynth would automatically add
USER_CLASSIC_PLUGINSat the beginning, but if no such entry exist, it kept being in the folder list as<current_directory>\USER_CLASSIC_PLUGINS\. Now this false entry is removed.Fix: Overlay give proper error message if 32-bit float is not supported in that mode.
Change video-framebuffer over-allocation from 16 to 64 bytes. Allocate 64 bytes more than needed for video frame buffer in order to be able to read 64 bytes safely with AVX512 without risking access violation on the last pixels of the frame.
Fix: The Animate() function now explicitly clamps interpolated values to ensure they remain strictly between the start and end range. Due to the high precision of 64-bit double introduced in v3.7.5, intermediate calculations could slightly exceed the boundary (e.g., 360.00000000000006 when interpolating from 0 to 360.0 in 564 steps), requiring this clamp to prevent out-of-range errors.
Fix:
Textfilter crash when input contains a zero-length line (e.g.Text("\n")).Fix: "Layer"/"Overlay" subsampled YUV chroma alignment:
"Layer": x/y offsets that are not aligned to the chroma grid (e.g. odd x for 4:2:0/4:2:2) are now accepted as-is, matching "Overlay" behaviour. Previously they were silently snapped to the nearest aligned value; that snap also incorrectly shifted the luma start position, causing a one-pixel luma displacement that did not occur in Overlay.
"Layer"/"Overlay": the last chroma column/row of the blend region is now correctly processed when the overlay position is not chroma-grid-aligned. A ceiling formula replaces the old floor division, which caused the rightmost column or bottom row of affected chroma pixels to be skipped.
Fix: RGB->YUV matrix Y offset: missing unity correction when converting narrow range RGB to full range Y.
Fix #499: "RGBAdjust": an uninitialized conditional parameter caused the existing
rgbadjust_branch to always run regardless of settings. Also fixed a memory leak when freeing LUT tables.Fix: "TemporalSoften" 16-bit scalar (C) rounding.
Fix: "TemporalSoften"
scenechangethreshold is calculated from the full frame width (was rounded down to mod 32, a leftover from the 2002 ISSE SAD code).Fix: "TemporalSoften"
scenechangemissed scene changes on frames over ~8.4 million pixels (e.g. 8K): 32-bit overflow of the frame SAD and the threshold.Fix: "RGBDifference", "RGBDifferenceFromPrevious", "RGBDifferenceToNext" on RGB32: right-edge pixels were partly skipped when the width was 2 or 3 more than a multiple of 4.
Fix: frame buffer size calculation overflowed for frames over 2 GiB and could pass the size limit check with an undersized buffer, e.g.
BlankClip(width=16384, height=32768, pixel_type="RGB64")(4 GiB) got a 64-byte buffer. Such frames are now rejected with "Requested buffer size ... is too large".Fix: "Histogram"
mode="color"at 10-16 bit: a color filling a large area (e.g. a flat 4096x2160 16-bit clip) was plotted as a dark dot instead of a white one (int overflow).Fix: "Blur", "Sharpen" 10-14 bit: the SIMD paths did not clamp to the bit depth maximum (e.g. 10-bit
Sharpen(1.0)gave values up to 2035).Fix: "Blur", "Sharpen": NaN amount (e.g.
Sharpen(0.0/0.0)) was accepted, giving garbage output; now rejected by the range check.Fix: AVX2 YV24 (4:4:4) source alpha packing.
Fix: "Expr": a typo checked the output clip's
IsYUVA()instead of the source clip's when selecting per-source plane enums, which could read the wrong plane for certain mixed colorspace expressions.Fix: static-analysis findings (memory leaks / buffer overruns, not user visible), Tagged as AVSP001-AVSP018:
ColorBarsaudio array leak,FastReadStreampHeadersarray leak,ConvertAudiotemp buffer allocation check,AVIReadHandlerstreamBufferleak, the script parser'sSplinework buffer (now RAII-managed), theTimeStretchplugin's buffer offset/memcpyundefined behavior, "Levels"use_lut``+dither buffer overrun, the script parser's ``arg_namesarray overrun, and aPluginManagerconstructor memory leak.Fix #505: "Expr" Vector-C relative-row addressing (
x[dx,dy]) ignored the current row entirely, and additionally mis-scaled the row byte offset for 16-bit/float sources.Fix #506: "Compare" 32-bit SAD/SD accumulators (8-bit packed/planar, C and SSE2/ISSE paths) could overflow on large frames (e.g. 4K RGB32); now 64-bit unconditionally.
Fix #507: "Compare" RGB24/RGB48 MAD/MD denominator divided by a hardcoded 4 (assumed 4 channels/pixel) instead of the actual per-pixel component count (3).
Fix #508: "Compare" uninitialized internal mask could give non-deterministic MAD/MD results for RGB48/RGB64.
Fix #509: "ConvertBits" automatic preconversion for large
dither_bitsgaps (e.g. 16-bit source withdither_bits=1) silently dropped the dithering, falling back to a plain bit-depth expansion.Fix: "ConvertBits" ordered dither on packed RGB48/RGB64 with
dither_bits1-7 (bit-depth gap over 8) failed with "truerange specified for non-planar source". The packed->planar conversion used for dithering now happens before the automatic preconversion, so the whole dither chain runs planar.Fix #510: "Layer" "Mul" raw multiply product was rounded down incorrectly, so near-max products came out one unit too low (e.g. 255*255 -> 254).
Fix #511: "ConvertYUV444ToRGB"/"ConvertRGBToYUV444" left the synthesized alpha plane uninitialized when converting an alpha-less source to an alpha-carrying target.
Fix #512: "Overlay" masked "add"/"subtract"/"darken"/"lighten"/"difference"/"exclusion"/ "softlight"/"hardlight" a fully-opaque mask did not reproduce the same result as omitting the mask. As a side effect, also added finer opacity-granularity over 8 bits at integer formats.
Fix #518: "Mask" on RGB32 clips narrower than 4 pixels: the SSE2/AVX2 code wrote 16 bytes starting before the row (memory corruption before the frame buffer).
Fix #520: Possible access violation on script environment destruction when a frame held another frame as a frame property depending on internal frame registry ordering.
Fix #519: C API filters running as
MT_NICE_FILTER: concurrent calls on the same filter instance shared the wrapper's error fields. Thus there was a possibility that errors could be lost or reported for the wrong frame, or vice versa, raised for a frame that was otherwise O.K. Now each call gets its own copy of the filter info.Fix #495 (debug builds only):
VideoFrame::CheckMemory()ignored the allocation margin and reported a buffer overrun for every frame.Fix #495 POSIX debug builds failed to compile (now forwards the error to
stderr).Fix: runtime functions
AverageLuma(and the otherAverage*),LumaDifference(and the other*Difference*functions) andPlaneMinMaxStatsreturned 32 bit float, so e.g.AverageLuma() < 2.6was true for an average of exactly 2.6 (script constants are 64 bit double). Now these computed results are 64 bit double; the min and max of a 32 bit float clip stay 32 bit float pixel values. Existed since 3.7.4.Fix: script floating point constants with many digits were parsed inexactly (e.g.
3.14159265358979324gave 3.1415926535897927 instead of 3.1415926535897931); now they are parsed correctly rounded. Existed since classic Avisynth.Fix:
Formatwith a large floating point value (e.g.Format("{}", 1e308)) overflowed an internal buffer and could crash. Existed since 3.6.0 (Formatwas added).Fix:
String(without format string) with a large floating point value (e.g.String(1e308)) overflowed an internal buffer and could crash. Existed since classic Avisynth.Fix:
forloop with a limit near the end of the 64 bit range (e.g.for (i = 9223372036854775805, 9223372036854775807, 5)) never ended: the loop variable overflowed and wrapped around to a value within the limit again. Now the loop ends. Existed sinceforwas added (before 3.7.4 with a limit near 2147483647, when the loop variable was 32 bit).Fix: text rendering with bitmap fonts (
Text,Info,propShow...) on invalid UTF-8: an incomplete sequence at the end of the text was read past the end of the string, and a valid character following an invalid byte was swallowed. Existed since 3.7.4.Fix: external BDF fonts: characters above U+FFFF (e.g. emoji, unifont upper planes) were not displayed, their codepoint was cut to 16 bits, so their glyph appeared for a wrong character instead (U+1F600 for U+F600). Unencoded glyphs (
ENCODING -1) are ignored. Existed since 3.5.1.Fix:
Floor,Ceil,Round,Int,IntI,Long: values out of the 64 bit integer range, NaN and infinity returned garbage; now they are a script error.IntIof a floating-point value outside the 32 bit range wraps around like for integers. Existed since classic Avisynth.Fix:
Roundwas inexact for values just below 0.5 and for odd values above 2^52; halves are still rounded away from zero.Floor,Ceil,Roundreturn an integer argument unchanged (lost precision above 2^53). Existed since classic Avisynth (the integer argument case since 3.7.4).Fix: script integer division and modulo of the smallest 64 bit integer by -1 froze or crashed the host process. Now
/throws an "integer overflow in division" error,%returns 0. Existed since classic Avisynth (before 3.7.4 with the smallest 32 bit integer).Fix:
PlaneMinMaxStatson 32 bit float clips with threshold 0: the thresholded minimum and maximum (elements 2 and 3) were wrong; now they equal the minimum and maximum, like for integer clips. Existed since 3.7.3.Fix:
ConditionalReaderType floatstored and returned 32 bit float values, so e.g. a value 0.7 read from the file was not equal to the script constant 0.7 (64 bit double). Now the values are 64 bit double. Existed since 3.7.4.Fix:
Fracreturned 32 bit float for any (also 64 bit double) argument; now the result is 64 bit double, 32 bit float only for a 32 bit float argument. Existed since 3.7.4. Values beyond the 64 bit integer range returned garbage instead of 0 (existed since classic Avisynth).Fix: script comparison operators (
==,!=,<,>,<=,>=) of a 32 bit float and a 64 bit double compared in double, e.g.Floatf(2.6) == 2.6was false andFloatf(2.6) < 2.6was true; for values rounded up in float,Floatf(0.1) > 0.1was true. Now when either side is a 32 bit float (e.g. a plugin returning a 32 bit float), both are compared in 32 bit float precision, like before 3.7.4. Existed since 3.7.4.Fix:
ConditionalFiltercompared integers truncated to 32 bit (e.g.4294967297 == 1was true) and floats rounded to 32 bit float (e.g.16777217.0 == 16777216.0was true). Now integers are compared in 64 bit and floats in double precision; when either side is a 32 bit float, both sides are rounded to float as before.ConditionalSelect: a 64 bit index out of the 32 bit range selected a wrong clip instead of the default one. Existed since 3.7.4.Fix:
propGetAll: string array properties returned only their first element; now the value is an array, like for integer, float and clip arrays. Existed since 3.6.0.Fix:
propGetAsArrayon a frame type property (set by plugins) returned an array oftruevalues; now it throws an error, likepropGetAny. Existed since 3.6.0.Fix:
propGetXXX(C++ and C API) with a NULLerrorparameter terminated the process on a failed read (missing key, wrong type, index): now it throwsAvisynthError(C API: returns, the reason is inavs_get_error).propGetClipandpropGetFramebehave the same way. Existed since 3.6.0.Fix: C API
avs_prop_get_clipcrashed on the first use of the returned clip (returned a raw clip pointer instead of anAVS_Clip). Existed since 3.6.0.Fix:
propGetClip,propGetFrame(C++ and C API) did not report errors (missing key, wrong type, index),*errorwas always 0. ScriptpropGetClipnow reports these errors like the otherpropGetXXXfunctions, instead of returning an empty clip value. Regression since 3.7.4.Fix #523: C++ API (
AVS_Linkage), V13 test build regression: the new V13VideoInfoentries shiftedGetNeoEnv(plugins usingPNeoEnvcrashed); the original layout is restored. The linkage call macros now also check entries for null, so plugins built with the V13 header fall back to defaults instead of crashing on older runtimes.Fix:
ArrayIns/ArraySet/ArrayDel: bounds check the index parameter(s) (preventing Access Violation).Fix: "TurnLeft"/"TurnRight": for asymmetrically H/V-subsampled sources (4:2:2, 4:1:1, 4:4:0), the mod-alignment check tested the source dimensions instead of the post-turn ones (e.g. 4:2:2 needs a mod-2 source height, which becomes the width), so invalid clips passed.
Fix: "Expr" crash on AVX2 CPUs when
round,floor,ceilortrunccame before a relative pixel load (e.g.x[1,0]) in the expression; wrong results when beforeasin,acos,atan. Existed since 3.7.1 (round/floor/ceil/trunc added).Fix: "Expr"
tanin the SSE2/AVX2 JIT was inaccurate (up to ~8% relative error). New implementation, max error ~3.5 ulp compared with the C path. Existed since 3.7.4.Fix: "Expr"
%(modulo) in the SSE2/AVX2 JIT now gives the same result as the C path (fmodf). Near multiples of the divisor the result was 0 or slightly negative instead of almost the divisor (e.g.73 % 7.3). Existed since%was added (r2574).Fix: "Expr" ternary with a constant condition (e.g.
0 a b ?) and a variable store (A@,A^),duporswapamong its operands: the optimizer removed the wrong part, giving a wrong result or a crash. E.g.0 7 sx A^ A ?returned 0 instead ofsx;0 sx dup ?crashed. Such ternaries are no longer folded. Existed since the first Expr version.Fix: "Expr" wrong results or crash (mostly x86) in the SSE2/AVX2 JIT under certain conditions: relative pixel loads (
x[dx,dy]) near the row edges with many values held on the stack (high register pressure). A bug in the JIT code generator's register handling, existed in earlier versions as well.Fix: "Compare" 16 bit (planar and RGB48/RGB64): the sum of squared differences overflowed for pixel differences above 46340, PSNR was wrong or
nan(e.g. black vs. white), depending on the compiler. Existed since 16 bit support in "Compare".
Optimizations¶
Under the hood, no visible change: filter construction copies the function arguments (deep copy of arrays) once instead of twice (2.5 and pre-V11 C plugins: three times). Matters only for big (nested) array arguments.
"Layer" YUVA/YUV/RGBP "add", "subtract", "mul", "darken", "lighten": refactor chroma placement calculation and function dispatchers; main algorithm SIMD vectorization is now possible for non-444 chroma placements by precalculating a mask for the actual row. Add AVX2 path (LLVM/clangcl recommended).
"Overlay" Blend: improved speed while keeping accuracy; use float arithmetic only where strictly needed.
"Invert": planar formats no longer pre-copy all planes from source before conversion; only planes that are unchanged are copied, avoiding unnecessary work.
TurnLeft, TurnRight: AVX2 support (1,5-3x speed on i7-11700 compared to SSE2 version)
Turn180 AVX2 support (very slight speed gain)
Resamplers:
introduce a SIMD-like C header (avs_simd_c.h) for smart auto-vectorizing compilers.
restore vertical float performance (3.7.4 was slower than 3.7.3) + SSE2 special optimization
further optimize verticals, use
AVS_RESTRICT(quicker RGB32/64 horizontal on AVX2 since TurnRigh/Left was optimized - packed RGB H-resize = TurnLeft-V-Resize-TurnRight)
optimize SSSE3 and AVX2 horizontal resampler for 32-bit float for small (<=4) kernel sizes
optimize 32-bit float vertical avx2
add AVX512 code path
32-bit float resamplers, verticals; horizontals up to kernel size 16.
8-16-bit horizontal resamplers, for kernel size <= 16 and specific ratios; speed gain up to 300%+ (DTL2020)!!
8-16-bit vertical resamplers
(Work In Progress) unify horizontal and vertical plane processing flow
add NEON optimizations for ARM64 (aarch64) for TurnLeft/TurnRight/Turn180. (First aarch64 code in Avisynth)
add NEON optimizatons for Overlay blend
add NEON optimizations for packed RGB24 <-> RGB32 and RGB48 <-> RGB64 conversion (
ConvertToRGB32,ConvertToRGB24and the 16 bit pairs)add NEON optimizations for the direct 8 bit YUV 4:4:4 to packed RGB24/RGB32 conversion
add NEON optimizations for
Blur/Sharpenhorizontal pass, planar 8-16 bit and 32 bit floatadd NEON optimizations for
TemporalSoften, 8-16 bit and 32 bit floatadd NEON optimizations for
ConvertBitsordered dither (dither=0), 8-16 bit to 8-16 bitadd NEON optimizations for
Limiter, planar 8-16 bit and 32 bit floatadd NEON optimizations for the subsampled chroma mask preparation of
Overlay,Layerand masked merges, 8-16 bitaarch64: planar YUV <-> RGB matrix conversions vectorized (GCC auto-vectorization of the C path)
add NEON optimizations for the horizontal and vertical resizers, planar 8-16 bit and 32 bit float
add NEON optimizations for
Layermul and (YUV) mulovr (10-16 bit), lighten and darken (10-16 bit and 32 bit float), planar RGB(A) and YUV(A)add NEON optimizations for
ExtractR/G/B/AandPlaneToYfrom packed RGB24/32/48/64add NEON optimizations for the runtime functions
AverageLuma/ChromaU/ChromaV/R/G/Band thexDifference,xDifferenceFromPrevious,xDifferenceToNextfamilies (8-16 bit), and for theTemporalSoftenscene change detection; 8 bit with the ARM dot product extension (UDOT) when availableadd NEON optimizations for the Windows ARM64 text overlay antialiaser (
Subtitle,ShowFrameNumber,Info, ...)(filter graph) avoid MTGuard and CacheGuard creation if a filter returns one of its clip parameter unaltered.
Add some avx2 stuff to Invert (no really gain, filter is too simple) and some Layer subfilter.
"Layer", "Overlay", "Merge": unify three separate masked-merge kernel families into shared
masked_merge_{c,sse41,avx2,neon}templates parameterized onMaskModeand pixel type. SIMD precalculation of chroma-placement-corrected mask rows (SSE4.1, AVX2, NEON) for all subsampled formats (4:2:0, 4:2:2, 4:1:1) enables full SIMD throughput in the main blend loop for non-444 sources. Accuracy: integer masked merge uses magic-number division for exact per-element results at all bit depths; plain weighted merge uses the same 15-bit arithmetic in C as in SIMD, eliminating C/SIMD parity issues. AVX2 flat-weight float weighted merge added."Merge"
AveragePlane/MaskedMerge: add AVX2 float weighted-merge path; remove obsolete iSSE code; make memory loads unaligned so the routine is safely reusable from Overlay/Layer."Layer": remove legacy MMX/iSSE (x86-only) code paths; replace hand-rolled min/max with
std::min/std::max."Invert": add proper AVX2 and SSE2 SIMD paths for planar luma and chroma.
ExtractX(ExtractR/G/B/A/Y/U/V): handle packed RGB formats directly, avoiding a PlanarRGB(A) conversion round-trip."ConvertBits": restructure integer-to-integer depth-reducing C loop to be more auto-vectorization-friendly.
PlanarRGB(A)→RGB32/RGB64: add AVX2 conversion path.SubtitleAntialiaser (Windows GDI path):GetAlphaRect()— the per-pixel alpha/color weight computation from the 8×-supersampled GDI DIB — now has SSE4.1, AVX2, and AVX512 SIMD implementations in addition to the scalar fallback; best tier is selected once at construction time from cpu flags.SubtitleAntialiaser: internal mask buffer refactored from AoS (interleaved alpha/Y/U/V per pixel) to row-interleaved SoA layout, enabling correct chroma-placement-aware UV compositing. Each UV output pixel is derived by spatially downsampling the luma-resolution mask row(s) viaprepare_effective_mask_for_row(same family as Overlay/Layer); MaskModes cover all subsampling ratios (4:4:4, 4:2:2, 4:2:0, 4:1:1, 4:4:0, 4:1:0) × kernel variants (MPEG2/MPEG1/top_left); SIMD rowprep dispatch (AVX2 / SSE4.1 / scalar) is selected at construction."AverageLuma", "AverageChromaU", "AverageChromaV", "AverageR/G/B/A": new SSE2 path for 10-16 bit (1.3-1.9x vs. C); 8 bit SIMD sums are 64-bit, so large frames (e.g. 8K) no longer fall back to C (about 2.5x faster there).
"xxDifference" functions (x86, non-SSE2 CPUs): ISSE SAD shared with "TemporalSoften", 64-bit sum, so large frames no longer fall back to C.
"TemporalSoften": AVX2 path for 8 and 10-16 bit (1.1-1.3x in average mode, 1.3-1.5x with thresholds).
"Blur", "Sharpen": new SSSE3 path for 8 bit; MMX paths removed.
"Expr": relative pixel load (
x[dx,dy]): new AVX2 JIT version, ~2x faster on AVX2 CPUs (an expression with relative pixels ran on the SSE2 JIT before). The SSE2 JIT no longer requires SSSE3 (non-SSSE3 CPUs ran the whole expression in C) and is slightly quicker.Bitmap fonts (
Text,propShow,Info,ShowFrameNumber,ApplyMessageand others) are created once per ScriptEnvironment and shared, instead of building (or loading from a BDF file) a separate copy for each filter instance and each runtime call. E.g.propShow166 -> 52 microseconds per frame,ScriptClipwithText154 -> 37,Histogram("audiolevels")231 -> 73,Textwith a BDF font inScriptClip244 -> 35.
Documentation¶
Global lock: warning on the local mutex fallback, destructor examples (C++ with a saved
env, Cfree_filterwithfi->env), example fixes.Build on Raspbian, Raspberry Pi 5 and llvm/gcc This page describes linux builds process.
Extend
env->Allocate/Freesee at AllocateInterface V12 changes: see API v12 changes for more details.
Add folder macro description to AddAutoLoadPlugins
Update Overlay
Update SetCacheHints with
CACHE_INFORM_NUM_THREADSUpdate GetCPUFlags, add GetCPUFlagsEx
Update CPU Feature Flags with AVX512 and ARM64 features
Update SetMaxCPU with AVX512 and ARM64 features
Update AvsEnvProperty with L2 cache size entry
Update Russian GPL notice in UTF-8 format
Update ConvertToPlanarRGB with "bits" and "matrix" syntax ":same"
Update ResetMask with "opacity" and additional insights
Update AddAlphaPlane with "opacity" and additional insights
Update Overlay with "add" and "subtract" direct RGB mode and 32-bit float support.
Update Layer with "use_chroma" and opacity details, and YUY2/YV16 internal handling.
Update Histogram with new vectorscope parameters
Update ColorBars
Update matrix syntax
Update Convert with
ConvertToYUY2ChromaOutPlacementparameter and corrected chroma placement behavior.Update Convert with
bitsandqualityparametersUpdate Sampling with historical content notes on legacy
YUY2handling.Add another Ubuntu->Windows DLL cross-compilation guide: See Ubuntu->Windows mingw crosscompilation
Add ColorBarsUHD
Add
ShowCRC32documentation to showframes (filter exists since 3.7.0; rst page was not updated at the time). Document newchannelsandmodeparameters added in 3.7.6.Update Layer with
"mulovr"mode,"placement"parameter, and related chroma-placement refactoring notes.Update Overlay with
"placement"parameter.Update Arrays with dictionary-style key lookup/set/delete (
ArrayGet,ArraySet,ArrayDel) and the newArrayIndexOf.Add BuildPixelType
Please report bugs at github AviSynthPlus page - or - Doom9's AviSynth+ forum
$Date: 2026/10/20 17:15:00 $