View Single Post
Old 24th September 2020, 11:57   #3  |  Link
HowardWow1997
Registered User
 
HowardWow1997's Avatar
 
Join Date: Sep 2020
Location: Wilmington
Posts: 7
Quote:
Originally Posted by shekh View Post
Hope this will help:
yes it is plane by plane as you suggested.
1) get uint16 values
2) upscale Cb and Cr to picture dimensions (2x wide and 2x high)
3) conversion to RGB
Y is unsigned value with range 0 to 1023 (0 may be darkest or not - depends on full range flag)
subtract 512 from Cb/Cr to get signed value (useful signed range -512 to 511)
Refer to formulas here http://www.vapoursynth.com/doc/functions/resize.html (bottom of page "pixel range")
Thank you for this
HowardWow1997 is offline   Reply With Quote