I searching an example how to write data into one of the omap framebuffers. TIDmaiVideoSink should be a possible source, but looks to complicated. ???
Background: My application store a depth image into an OpenCV data structure. If I use OpenCV's highgui approach to display the image, some image copy operations slow down the application to 2fps. Without displaying I've got 8fps (640x320).
I hope it's possible to give one of the omap framebuffers direct access to the data.
Frame buffer it's a mmap compatible device and if you provide the right configuration it provides 3 memory buffers (this is the default configuration) you should take a look at memory configuration due it's different if you use fb0 or fb1/2, so in the first case the configuration it's rgb but in the others it's yuv...
Copy in sync mode it's not the fastest way for do that, your program must copy the data in the video configuration and normally it can be faster if it is memory aligned data ...
As you commented the better approach it's use dmai because it provides sdma primitives for copy in asynchronous mode ....
Accepted Answer0Hi Manel,
thanks for your reply. Today, I can't work on this and made no progress...
Did the rgb configuration required one big memory block for all three colors or it's possible to split into three independent vectors?
P.S. Omapfbplay is an other good & fast programm, I remember today. I should probably look into this code and learn.