Thread: Vapoursynth
View Single Post
Old 7th August 2022, 21:29   #4749  |  Link
mastrboy
Registered User
 
Join Date: Sep 2008
Posts: 365
Quote:
Originally Posted by Myrsloik View Post
Add .5 to the third plane of a float format?

Code:
Expr(clip, ["", "", "x 0.5 +"])
Thanks, that works... I have a difficult time properly understanding lut/expr, is there any decent documentation freely available that is recommended for beginners that want to learn?

That only works for 8bit though, I guess ColorYUV scales input values internally... So what is the math to convert 8bit Expr to 16bit?

Edit: nevermind, found a helper function for scaling values between bitdepths: https://github.com/Irrational-Encodi...l/info.py#L129
__________________
(i have a tendency to drunk post)

Last edited by mastrboy; 7th August 2022 at 23:00.
mastrboy is offline   Reply With Quote