This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Can we use OSD of DM355 to draw on frame buffer obtained from VPFE?

Hello,

My application captures video from the VPFE, encodes to MPEG4, and does 2 things with the encoded packet:

1) Send to remote site over Ethernet/WiFi

2) Save to local file (SD card)

 

Now, I need to draw the time stamp (DD/MM/YY HH:mm:ss) on each raw YUV frame captured from VPFE, BEFORE it is encoded to MPEG4. The examples I saw in DVSDK all use the simplewidget library. This basically just draws glyphs of characters to the frame buffer pixel-by-pixel in a for loop. The simplewidget library does not use the DM355's OSD engine. Therefore the library's font_render() and fill_rectangle() functions are taking up too much CPU. CPU load shoots up from 15% to 45% (approx).

From the datasheet, the impression I get is that this OSD engine is tightly tied with the VPBE, and it can draw only on raw video frames which are about to be sent out for display (digital out path or video encoder path). It seems that this OSD engine cannot be used in a modular way to do something like:

(1) input a raw video frame and a text to draw ---> (2) the OSD engine does the drawing stuff ---> (3) it returns the video frame with OSD overlaid on it ---> (4) encode this returned video frame to MPEG4 ---> (5) save/stream the MPEG4 data.

Is there any way to use the OSD engine is this way?

Best regards,

Kapil Pendse