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.

DM8168 add QT app issue

Hi erveryone!

 I have a problem to run DM8168 add QT.

                     SDK:  DVRRDK_01.09.01.21

                     capture data:1920X1080X60

                     display on chip HDMI:1920X1080X60

                     QT graphical interfaces SIZE:1920X120

usage:

                     capture video  data and  QT graphical interfaces  all together display on DM8168 on chip  HDMI port.

issue:

     I had reference the code in DVRRDK_01.09.01.21 SDK package.(DVRRDK_01.09.01.21\dvr_rdk\dvrapp\dvrgui).

     When app run. capture video  data and  QT graphical interfaces can not together display on HDMI port.

     some code of main() :

     

int main(int argc, char *argv[])
{

LIB816x_Reach_startSystem(0, 0, 0, 0);

QApplication a(argc, argv);
reachgui w;
w.show();

return a.exec();
}

after  LIB816x_Reach_startSystem(0, 0, 0, 0) run end . The capture video  data is display on HDMI port.
Then after w.show() run end.capture video  data is not display on HDMI port . and The QT graphical interfaces pic is display on HDMI port.

   But if I close the  QT graphical interfaces(clicked the X on QT graphical interfaces)  Then capture video  data is displaying on HDMI port again.

So, somebody can help me.where is wrong?

QT code write error?  DM8168 setting wrong?

Thank You very much!

  • hi everyone!

       I had reference the code in DVRRDK_01.09.01.21 SDK package and add 

    int DVR_FBStart()
    {
    struct ti81xxfb_scparams scparams;
    struct ti81xxfb_region_params regp;
    if (fd0 <= 0) {
    fd0 = open(FBDEV_NAME_0, O_RDWR);
    if (fd0 <= 0) {
    eprintf("Could not open device [%s] \n", FBDEV_NAME_0 );
    return -1;
    }

    scparams.inwidth = 1920;
    scparams.inheight = 1080;
    scparams.outwidth = 1920;
    scparams.outheight = 1080;
    scparams.coeff = NULL;

    if (ioctl(fd0, TIFB_SET_SCINFO, &scparams) < 0) {
    perror("TIFB_SET_SCINFO\n");
    }

    if (ioctl(fd0, TIFB_GET_PARAMS, &regp) < 0) {
    perror("TIFB_GET_PARAMS\n");
    }

    regp.transen = 1;
    regp.transcolor = 0x00ff00ff;
    regp.scalaren = 1;

    if (ioctl(fd0, TIFB_SET_PARAMS, &regp) < 0) {
    perror ("TIFB_SET_PARAMS.\n");
    }
    }

    printf("DVR_FBStart OK!\n");
    return 0;
    }

    in LIB816x_Reach_startSystem() function. But QT and capture data can not display on chip HDMI together also..

    somebody can help me. tell me where is wrong?

    thank you!

  • Hi han wei ,I got the same problem. the only difference is that I used the SD display.

    Have you solved your problem?

    We may have a discussion.

    My email is :tedzhuhai@foxmail.com

    my qq:348517993

     

  • I have the same problem! any one can help us ?

  • I was also troubled by this problem