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.

Displaying Image on Display

Hi ,

      I have to display an image(jpeg) while u-boot or uImage starts booting .In my linux i enabled frame buffer console and logo options so i am able to see some small montavista image on one corner and rest of the screen in filled with blue colour. but the problem is except image place total screen is filled with some type of bars .for this i disabled the osd (in bootargs i am not given osd option to display_fb) but after linux boot i need osd layer for my application .

 

the few questions are :-

(1). how to display some image on screen while booting .

(2). normally i am able to display image on osd using applicaton but when i display jpeg image the colors are not properly displaying.

(3). if i want to display jpeg image on video window what i have to do?(i tried to do but its giving some errors about colour space).

 

please tell some of the solution for the above and please forward if any reference or guides on this topics

 

  • Jpeg is an encoded image format, and to get the RAW bitmap values from it, you need to use a jpeg decoder. Once you do that ,

     

    (2). normally i am able to display image on osd using applicaton but when i display jpeg image the colors are not properly displaying.

    OSD supports RGB color format. You need to convert your jpeg image to RGB565 and use the fbdev driver  ( /dev/fb0) to display the image.

     

    (3). if i want to display jpeg image on video window what i have to do?(i tried to do but its giving some errors about colour space).

    Video window supports YUV422 image format. You need to convert your jpeg into raw YUV422 (packed) and use either fbdev or V4L2 driver to display the imae on the screen.

     

     

    Thx,

    -Manju


  • Hi manjunath,

                            I will follow up your suggestions . thanks for reply.

    i have some other doughts . I have enabled logo option in my kernel (uImage) by enabling frame buffer  . when i switch on the board i am able to see one small image at corner and rest of the screen is filled with some white coloured vertical lines . Here i want to put some other logo and also i want to keep that image in center.

    our aim is to show some image on the tv screen while it is  booting.

     

    I tried these but not supported :-

    (i) in the boot arguments i am not given osd related , but by this all the osd is totally disabled so i am not able to  used osd layer for my application.

    (ii)in the place of default logo in the linux i replaced with some other logo .but only upto some resolution only it accepts(6x6). If we give more then this resolution ,while compiling it gives PNM support error.

     

    please give some guide line on this .

     

    THANKS & REGARDS,

    Y.V.RAMAKRISHNA.

     

     

  • Ramakrishna,

    Do you mind sharing with us snapshot of the bars that you are talking about? Looking at the snapshot, I should be able to get the idea about problem.

    Regards,

    Nag