RGB and YPbPr
Kb and Kr constants defined from target color space. This module does not currently have reference values for these.
Kg=1−Kb−Kr RGB to YPbPr
YPbPr=Kr⋅R+Kg⋅G+Kb⋅B=0.5⋅1−KbB−Y=0.5⋅1−KrR−Y YPbPr to RGB
Pb0Pr0RGB=(−KgKb⋅(2−2Kb))⋅Pb=(−KgKr⋅(2−2Kr))⋅Pr=Y+(2−2Kr)⋅Pr=Y+Pb0+Pr0=Y+(2−2Kb)⋅Pb