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.

Problem with deinterlacer interpolation

Hi expert,

    I am facing a problem on using DM816x DEI_HQ. I am working on RDK 02.00.00.23.

    I create a custom chain like:

    capture -> dei_h -> h264 enclink. -> ....

    It works well in most cases exept for a particular video sequence. I tried to tund deiLink ( deiLink_drv.c )and get the following results:

pChObj->deiHqCfg.bypass = deiBypass;
pChObj->deiHqCfg.inpMode = VPS_DEIHQ_EDIMODE_EDI_SMALL_WINDOW;
pChObj->deiHqCfg.tempInpEnable = TRUE;
pChObj->deiHqCfg.tempInpChromaEnable = TRUE;
pChObj->deiHqCfg.spatMaxBypass = FALSE;
pChObj->deiHqCfg.tempMaxBypass = FALSE;
pChObj->deiHqCfg.fldMode = VPS_DEIHQ_FLDMODE_5FLD;
pChObj->deiHqCfg.lcModeEnable = TRUE;
pChObj->deiHqCfg.mvstmEnable = FALSE;
pChObj->deiHqCfg.tnrEnable = FALSE;
pChObj->deiHqCfg.snrEnable = FALSE;
pChObj->deiHqCfg.sktEnable = FALSE;
pChObj->deiHqCfg.chromaEdiEnable = TRUE;

    and the video is:

  We find that the badminton bat disappears.

pChObj->deiHqCfg.bypass = deiBypass; 
pChObj->deiHqCfg.inpMode = VPS_DEIHQ_EDIMODE_FLD_AVG; 
pChObj->deiHqCfg.tempInpEnable = TRUE; 
pChObj->deiHqCfg.tempInpChromaEnable = TRUE; 
pChObj->deiHqCfg.spatMaxBypass = FALSE; 
pChObj->deiHqCfg.tempMaxBypass = FALSE; 
pChObj->deiHqCfg.fldMode = VPS_DEIHQ_FLDMODE_4FLD; 
pChObj->deiHqCfg.lcModeEnable = TRUE; 
pChObj->deiHqCfg.mvstmEnable = FALSE; 
pChObj->deiHqCfg.tnrEnable = TRUE; 
pChObj->deiHqCfg.snrEnable = TRUE; 
pChObj->deiHqCfg.sktEnable = FALSE; 
pChObj->deiHqCfg.chromaEdiEnable = TRUE;

I get videos like:




This time it is much like the input video, but there are traces of the ball.

So could anyone help me with the problem? I want both badminton bat showing and trace of ball disappearing. Many thanks!

  • The video input is interlaced. The picture is composed of the following fields:

  • I test the PAL signal with a monitor, and it shows the video similar to the result of applying FLD_AVG deinterlacer, but without the traces of the ball.

  •  I attached the YUYV data. It is captured by capture link. We write test software to merge the top and bottom fields into a frame simply by inserting the bottom field lines under top field corresponding lines.  

    If you set the data as 736 X 576, you’ll see it as a frame. If you set the data as 1472 X 288, you’ll see it as two fields.

    The data format is YUYV.

    6138.RAW_ch00_03b46924.zip

  • Hi,

     

    Can you try below configuration

    pChObj->deiHqCfg.bypass = deiBypass;
    pChObj->deiHqCfg.inpMode = VPS_DEIHQ_EDIMODE_EDI_LARGE_WINDOW;
    pChObj->deiHqCfg.tempInpEnable = TRUE;
    pChObj->deiHqCfg.tempInpChromaEnable = TRUE;
    pChObj->deiHqCfg.spatMaxBypass = FALSE;
    pChObj->deiHqCfg.tempMaxBypass = FALSE;
    pChObj->deiHqCfg.fldMode = VPS_DEIHQ_FLDMODE_5FLD;
    pChObj->deiHqCfg.lcModeEnable = TRUE;
    pChObj->deiHqCfg.mvstmEnable = TRUE;
    pChObj->deiHqCfg.tnrEnable = FALSE;
    pChObj->deiHqCfg.snrEnable = FALSE;
    pChObj->deiHqCfg.sktEnable = FALSE;
    pChObj->deiHqCfg.chromaEdiEnable = TRUE;
     
    Thx,
    Brijesh