My application requires capturing from camera, drawing few things on the frame and then do h.264/h.265 encoding.I am not able to figure out how to achieve this on Linux to get best performance.
1. Media SDK Encoder requires VA surface, which I can create using libva APIs. How do I capture from v4l2 directly on a VA surface w/o having a copy.
2. How to draw on this VA surface. I need to render text with specific font, draw few rectangles/polygons (filled with some transparency and non-filled). I want to achieve this on GPU w/o a need to transfer the surface data to CPU and then back to GPU for encoder.