Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Ashim_Prasad
Beginner
76 Views

v4l2 camera capture and drawing on VA surface before encoding

Hello,

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.

0 Kudos
0 Replies
Reply