- VapourSynth implementation of solar curve in RGB24 & RGB48 colorspace, with idea from Easy Compare
- Filter function:
y = 127.9999 * sin ( A * x ^ 3 + B * x ^ 2 + C * x - π / 2) + 127.5
- Function parameters from Easy Compare. See its plot on Google
- Takes YUV clip input and returns a YUV clip
- Don't use this filter too much if you are a sensible encoder. TRUST YOUR OWN EYES!!
Usage:
import solar
output = solar.solar(clip) # conversion in RGB24
or
import solar
output = solar.solar48(clip) # conversion in RGB48
Result: Before | After