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.

DM8127 IPNC How to display image(temp.jpg) on HDMI out using frame-buffer /dev/fb*

Hi,

i have DM8127 IPNC, i want display image on HDMI monitor through frame-buffer i already insert the ti81xxfb.ko it creates /dev/fb /dev/fb0 /dev/fb1 /dev/fb2 after that i don't know how to proceed please help me to resolve this problem

Thanks and Regards

       RAJ M

  • Hi RAJ,

     

    You could FBDev for displaying RGB frame format. It is a standard Linux frame buffer interface for displaying RGB contents. Please go through FBdev user guide in VPSS to know more about it.

     

    Regards,

    Brijesh Jadav

  • Hi Brijesh Jadav,

    Thank you for replaying.

    this is my fb0 settings,

    root@DM8127_IPNC:/opt/ipnc# fbset -fb /dev/fb0

    mode "1920x1080-60"
        # D: 148.500 MHz, H: 67.500 kHz, V: 60.000 Hz
        geometry 1920 1080 1920 1080 32
        timings 6734 148 88 36 4 44 5
        rgba 8/16,8/8,8/0,8/24
    endmode

    how to pass my image to /dev/fb0  i can open my device successfully using

            static int fd;
           /* Open a graphics Display logical channel in blocking mode */
            fd = open("/dev/fb0", O_RDWR);
            if (fd == -1)
            {
                    perror("failed to open display device\n");
                    return -1;
            }
    please share sample or example code for displaying image on hdmi out through frame-buffer

    vpss document they mansion some example but i can't find?

    Thanks and Regards

         RAJ M

  • Hi Brijesh,

    Please share the below examples

    saFbdevDisplay

    saFbdevDisplayPan

    saFbdevMovingDisplay

    saFbdevScalingDisplay

    saLoopBack

    saLoopBackFbdev

    saLoopBackScale

    saFbdevHdmiDisplay

    saMmapDisplay

    saUserptrDisplay

    Regards

      RAJ M

  • Hi RAJ,

     

    It should be there as part of PSP release. Please look into examples folder and there should be file saFbDevDisplay.

     

    Regards,

    Brijesh

  • Hi Brijesh,

    i searched ipnc_rdk and ti_tools but can't find those files please share me or tell me the exact path of this file.

    Regards

      RAJ M

  • Hi Brijiesh,

    i found the saFbDevDisplay.c its working to display rgb colour bar. my question is instead of colour bar i want to send my image (temp.jpg) this is the function

      /* Color bar display loop */
            for (i = 0 ; i < loop_count; i ++) {
                    /* Fill the buffers with the color bars */
                    fill_color_bar(buffer_addr, fixinfo.line_length,
                                    varinfo.yres, varinfo.bits_per_pixel);
                    sleep(1);
                    fill_reverse_color_bar(buffer_addr, fixinfo.line_length,
                                    varinfo.yres, varinfo.bits_per_pixel);
                    sleep(1);
            }

    Thanks and Regards

         RAJ M