Holy's ported AviSynth functions for VapourSynth
License
HomeOfVapourSynthEvolution/havsfunc
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more.
- Open with GitHub Desktop
- Download ZIP
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
This was a bug of my own committing. In short, the original Expr logic didn't work as first intended. We're replacing a bitwise-and, and the original addition approach simply didn't work. Here's an example: For two pixels in the binarized mask clips (using 8-bit values for reference, but all bitdepths scale appropriately): Expected: x | y | result -------------- 0 | 0 | 0 0 | 255 | 0 255 | 0 | 0 255 | 255 | 255 Actual (old code for 11+ bit depth) Expr = "x y +" x | y | result -------------- 0 | 0 | 0 0 | 255 | 255 255 | 0 | 255 255 | 255 | 255 (because Expr clamps to bit depth peak) Actual (new code for 11+ bit depth) Expr = "x y + (255 + 1) < 0 255 ?" (examples in 8 bit depth, but scales to higher) Aka - if the sum of two pixels is less than the peak + 1 (aka <= the peak), then output 0, else output the peak. I'm simplying using "peak + 1" here to save some cycles, taking the "<=" down to just a "<" x | y | result -------------- 0 | 0 | 0 0 | 255 | 0 255 | 0 | 0 255 | 255 | 255 (because Expr clamps to bit depth peak)
7f0a9a7
Git stats
Files
Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
About
Holy's ported AviSynth functions for VapourSynth
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published