add support for more pixel format (yuv422p, yuv444p, etc instead of yuv420 only.)