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.

DM365 Resizer A and B modes

I am using the DM365 with the dvsdk_2_10_01_18, and dmai_1_21_00_10.  I have enabled both resizers A&B as demonstrated in other Resize threads in this forum, and it works in both continuous and single shot modes.  I'm using interlaced scan input 720x480i UYVY, and resizing to 736x480 YUV420PSEMI.  There is a limitation listed in the document SPRUGP6 - VPFECaptureDriverUsersGuide.pdf under 1.3 Constraints that states:

In continuous mode, with interlaced scan input, only the second field of the input data is used for
capture at Resizer and is scaled up by 2x to preserve the height. So in this mode, the video is
de-interlaced at the driver and hence both fields are not available.

1. This is what I want for Resizer A, since the buffer goes to the video encoding thread.  But for Resizer B, I want to capture both fields to get the full resolution image.  Is it possible to configure Resizer B to do this in continuous mode?

2. I've also tried resizing using single-shot mode, and that does allow both fields to be captured in both resizers.  However I want Resizer A to be deinterlaced, by using only the second field and scale up by 2x.  Is it possible to configure Resizer A to do this in single-shot mode?  I would rather not deinterlace in software.

 

  • Pete,

    Pete Eberlein said:

    I1. This is what I want for Resizer A, since the buffer goes to the video encoding thread.  But for Resizer B, I want to capture both fields to get the full resolution image.  Is it possible to configure Resizer B to do this in continuous mode?

    The resizers on DM365 are single input dual output resizer. So the same input goes to both resizers. I cant think of a way where you can control the input line offset for each resizer output separately. This means that both resizers will either give out both fields or will give out alternate field (deinterlaced).

    Pete Eberlein said:

    2. I've also tried resizing using single-shot mode, and that does allow both fields to be captured in both resizers.  However I want Resizer A to be deinterlaced, by using only the second field and scale up by 2x.  Is it possible to configure Resizer A to do this in single-shot mode?  I would rather not deinterlace in software.

     

    As i said above, both resizers will behave the same way w.r.t to input line offset.

     

    Regards,

    Anshuman

  • Hi,

                  I have been trying to run DM365 video capture in continuous twin resize mode... This works perfectly fine on DM365 EVM ( with both Resize A and B configured for different dimensions).  But when i try to run on our custom board , it doesn't work ( but normal capture works fine ).   To explain things better  , let me give you some details of the differences between the video capture interface between DM365 EVM and our custom board.

    1. We are using a CMOS sensor which gives out YUV 422 data out with seperate syncs ( as compared to embedded sync on DM365 EVM). The camera give 720p resolution at 30fps on 8 bit interface.

    2. MODESET.INPMOD is set to CCD RAW data and MODESET.CCDW is set to 4 bits right shift ( since this was required for our hardware)

    3. CGAMMAWD.GWDI  is set to bit 9 ( since the MSB was

    4. REC656IF is set to 0 ( since the input is not embedded sync)

    Apart from the above changes the rest of the settings are identical  to DM365 EVM. Actually i have even tried capturing a 720P input on DM365 EVM and it works fine in continuous twin resize mode ( but not in our board)

    When i put some prints in the driver , i see that the resize operation is getting stuck , which makes me feel that DM365 video port is not sending data to the resizer module . Can you tell me what might be the issue for this.

    Any help on this issue is appreciated .

    Thanks and Regards,

    Shantanu Bhaduri

  • Shaan said:

    Apart from the above changes the rest of the settings are identical  to DM365 EVM. Actually i have even tried capturing a 720P input on DM365 EVM and it works fine in continuous twin resize mode ( but not in our board)

    Hi Shantanu

    I saw a similar problem with the resize operation stopping on my custom board, though using single-shot mode, and it also works fine on the DM365 EVM.  The problem was the VPSS_RSZ_INT_SDR interrupt was never received, and the resize kernel call would never wake up.  The problem turned out to be in our USB bootloader code - we were missing the workaround for Errata sprz294c Advisory 1.2.6 "The Buffer Logic of VPSS is Not Reset by System Reset Pin".  After adding the workaround, we have not had any more problems with the resizer stopping.

  • Anshuman Saxena said:

    The resizers on DM365 are single input dual output resizer. So the same input goes to both resizers. I cant think of a way where you can control the input line offset for each resizer output separately. This means that both resizers will either give out both fields or will give out alternate field (deinterlaced).

    hi,Anshuman

    I am also stucking in this problem, can you explain this solution to me in detail? I can't find the input offset setting related in the resizer registers.