Optimize YUV conversion for 4:2:2 and 4:2:0