logo

Could not compile stylesheet for simplistic. Using last compiled stylesheet.

Write image into omap framebuffer

Wednesday, July 11 2012, 08:24 PM
0
Hello,

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.


Regards,
Olaf

Accepted Answer

mcaro
mcaro
Offline
Friday, July 13 2012, 08:23 AM - #permalink
0
Hi Olaf, The fb memory it's directly the video memory unfortunately you cannot split directly the memory but you can modify the low level drivers for get some nice transformations or operations I suggest you take a look in the DM3730 hw manual about the DSS capabilities... :) Cheers Manel
The reply is currently minimized Show
Responses (3)
  • Accepted Answer

    Thursday, July 12 2012, 03:35 AM - #permalink
    0
    Well, I found a wiki page on elinux. That should answer my quenstions.

    http://elinux.org/EBC_Exercise_10_The_D ... ystem_(DSS)_Writing_to_the_Framebuffer
    The reply is currently minimized Show
  • Accepted Answer

    mcaro
    mcaro
    Offline
    Thursday, July 12 2012, 08:20 AM - #permalink
    0
    Hi

    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 ....

    Cheers
    Manel
    The reply is currently minimized Show
  • Accepted Answer

    Friday, July 13 2012, 01:08 AM - #permalink
    0
    Hi 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?


    Regards
    Olaf

    P.S. Omapfbplay is an other good & fast programm, I remember today. I should probably look into this code and learn. ;)
    The reply is currently minimized Show
Your Reply

SUPPORT


This email address is being protected from spambots. You need JavaScript enabled to view it.
This email address is being protected from spambots. You need JavaScript enabled to view it.
IGEP Community Wiki
IGEP Community Forum
IGEP Community Online Chat