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.

Image cropping on EVM DM6437



Folks,

I am getting a composite D1 image of four 360x240 video sources into the EVM DM6437. And, I want to crop this composite D1 image back into the 360x240 images.  Does the DM6437 video driver support the image cropping?

I am planning to use the EDMA to crop the D1 image into the 360x240 images if the driver doesn't support the image cropping. I was told the External to external memory transfer using EDMA causes the deadlock on DM6437. Is this issue fixed?

Any other suggestions are most welcome.

Thanks!

 

 

 

 

 

  • I think some clarification of your goal is needed. 

    When you say "crop" your composite image back into the original, does that mean you want to display the original image with a smaller window that contains your composite image superimposed over it using the VPBE, OR do you want to actually do this in memory OR am I missing your intent entirely?

    When I hear crop in an image context, I think taking a subset of the original image, not combining images.

  • My input image is a combined image as shown in the attached picture. I would like to extract a subset of the original image i.e. CIF image 1.

    Hope this explains! And, thanks for your email.

    .

  • Ok, to complete my original question:

    Do you want to only display the selected subset through the video output, or do you need to extract it by itself into memory for processing or saving?

     

  • I need this subset image in the memory for processing. thanks!

  • I think you are out of luck on the video driver doing this, at least with anything straightforward.  You could extract an image sub-block using something like the resizer and just keep the resize ratio at 1:1 if that would work.  This assumes your image is in Yuv 4:2:2 format.

    If there was ever a use case for the dma, this is it.  With that said, I don't know what the state of the edma lockup problem is.  I have only used the edma for external -> internal memory movement.

     

  • The resizer sounds a much better option. Do you know how to configure the resizer to work on subset of the input image?

    Thanks!

     

  • I haven't used the TI resizer driver, I rolled my own so that I could use it "on the fly" with input from the CCDC, which the TI driver does not support.  I assume that TI has some documentation for their resizer driver somewhere or another.