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.

Bitmap picture OSD0 in fbdev_loopback application

Hello, colleagues.

Currently I work with fbdev_loopback application (dvsdk/psp/examples/fbdev) and there are no bitmap pictures in the output - just the videostream.

Should I switch bitmap picture on somehow? (arguments, variables, extension of picture files or any other way), what is depicted on osd16 and test_8 (to know what to expect) and is there any other bitmap pictures in dvsdk to test?

I would appreciate your help. 

  • Hi,

    Currently I work with fbdev_loopback application (dvsdk/psp/examples/fbdev) and there are no bitmap pictures in the output - just the videostream.

    Should I switch bitmap picture on somehow? (arguments, variables, extension of picture files or any other way), what is depicted on osd16 and test_8 (to know what to expect) and is there any other bitmap pictures in dvsdk to test?

    I would appreciate your help.

    you can fill color to the osd windows, for example 'yes  60 > /dev/fb0'.

    If you have a bitmap image you can write to fb0,  cat image > /dev/fb0

    Thx,

    --Prabhakar Lad

  •  Prabhakar Lad,

    Should I do it from console while executing or in the source code in display_bitmap_osd0 function?

  • Hi,

    In the console when kernel is up and running.

    Thx,

    --Prabhakar Lad

  • Prabhakar Lad, 

    Actually I did these commands in console, but after "enter" it waits for the continuity of the command and nothing happens. I can return to the usual command line only after "Ctrl+C". Also I didn't get how it can have an effect if /dev/fb0 is being opened only in the application... How it is possible to change OSD0 picture in runtime when videostream (for example from composite) is on the background?

  • Hi,

    Actually I did these commands in console, but after "enter" it waits for the continuity of the command and nothing happens. I can return to the usual command line only after "Ctrl+C". Also I didn't get how it can have an effect if /dev/fb0 is being opened only in the application... How it is possible to change OSD0 picture in runtime when videostream (for example from composite) is on the background?

    When linux comes up, do you get a blue screen with a penguin ?

    I assume you are getting, Once you have entered as root,

    clear the OSD windows by,

    1: cat /dev/zero > /dev/fb0

    2: cat /dev/zero > /dev/fb2

    Then do yes 65 > /dev/fb0

    you should see some color on screen.

    Thx,

    --Prabhakar Lad

  • Previously I got penguin on the blue background while booting, but now for some reason I get only a blue rectangle above the screen and the rest place is white, without penguin.

    I switched off video windows for FBDev driver and didn't specify OSD parameters in bootargs. I really got some colors (but strangely they are all just blue hues - no other colors - is it ok?) and I got some test pictures (but have no clue whether they are correct or not, look like random colors).

    But I want to get another effect: in fbdev_loopback description it is said that it can mix OSD bitmap and videostream together and output to some interface (I use composite). While launching application there are no bitmaps at all. How can I switch it on and how can I change bitmap in runtime? 

  • Hi,

    Previously I got penguin on the blue background while booting, but now for some reason I get only a blue rectangle above the screen and the rest place is white, without penguin.

    I switched off video windows for FBDev driver and didn't specify OSD parameters in bootargs. I really got some colors (but strangely they are all just blue hues - no other colors - is it ok?) and I got some test pictures (but have no clue whether they are correct or not, look like random colors).

    May be you are missing with bootargs, but you can see color change when you write to /dev/fb0 means its working.

    But I want to get another effect: in fbdev_loopback description it is said that it can mix OSD bitmap and videostream together and output to some interface (I use composite). While launching application there are no bitmaps at all. How can I switch it on and how can I change bitmap in runtime?

    I dont see such description. What exactly do you want to do.

    here is the description what I see http://arago-project.org/git/projects/?p=examples-davinci.git;a=blob;f=fbdev/README.txt;h=b53dcac7e8f5ba0b50fcef520d0b2699f6088707;hb=ffbe85626735f3773801811a3e58d6f17e17bbe7,

    Thx,

    --Prabhakar Lad

  • Hello, Prabhakar Lad,

    Probably I confused two descriptions - fbdev_loopback and blend (also FBDev example), I posted about blend here - http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/100/t/199220.aspx

    Thank you, this issue is settled then.

  • By the way,

    If fbdev_loopback doesn't display OSD windows then why it contains such functions like "mmap_osd0_buffers", "display_bitmap_osd0" and other similar that work with OSD windows? And also in comments in its code there is an example of bootargs for the application and it specifies OSD as OSD0=720x480x16:OSD1=0.