This is a theory question!
My objective is to add annotations to a video frame.
Say, I take a video frame, and want to add text to it.
My decoded frame is in YUY2 space. This is what I am thinking I should do.
1. Convert YUY2 frame to RGB32.
2. The "text image" which is in RGB32 will now be overlaid/composited on the RGB32 video frame.
3. Convert the composited image to YUY2 and send it to encoder.
Is my approach correct? What are the best IPP functions to accomplish compositing. I already know how to convert between color spaces.