RGB to YUV422 Conversion


I am doing project involves YUV422 format image processing. The camera gives YUV422 format image, I gotta process that image (e.g. drawing boxes etc) and I have to send it back to the system displays on YUV422 format. It may sound strange, but since I have tried to find the parameters I could find YUV422 to RGB or BGR by YUV2RGB_Y422, but I couldn’t find the reverse operation of it, i.e. RGB2YUV_Y422. What I want to know is that OpenCV does not support that kind of operation. Thanks in advance!