View Single Post
Old 12th May 2020, 19:25   #2  |  Link
shekh
Registered User
 
Join Date: Mar 2015
Posts: 775
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")
__________________
VirtualDub2
shekh is offline   Reply With Quote