For 8 bit: Y range is [16..235] and U/V range is [16..240]
For 10 bit: Y range is [64..940] and U/V range is [64..960]
So shifting each component value 2 bits to right will provide correct conversion of black and white points: 64==>16, 940==>235 and 960==>240. Intermediate values also will correctly converted.