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.

Preview and Resize

Hi!

I am using DM6437 with sensor CMOS (MT9P031 monochromatic, so I capture raw image) and without drivers.
I need to change the sensor configuration to capture different size of image during the processing. What is the best way to do preview and resize?

Let me explain better:
I need to have 2 buffers, one with RGB image to analyze and another to show (YCbCr).
The sizes than I need are VGA (640x480) and QXGA (2048x1536).
 I think the best way is, configure CCDC to get the image and write into DDR, configure resize (720x480) and configure preview to show (RGB2YCbCr).

Am I wrong?

Or can I show the image without resize?

 

Thanks!

 

  • Hello, our experts are looking into this, and we will let you know soon.

  • I am not sure that I understand your question.  I assume your input is RAW Bayer from the sensor.  If not please specify the format and resolution of the readout from the sensor. If you need to analyze both Bayer and YCbCr, you can do as you said, capture the Bayer, and then send it though the Preview and resize engines to get the resolution of YCbCr you want.

    When you say show the image without resize, where do you want to show it, and with what format?  If you don't resize, you will have whatever resolution was read out from sensor.  If the resolution is lower than the display resolution, you can still show it on the display, it will just not take up the full screen.  If the resolution is larger than display resolution, then you can only show part of the image on the display.

  • As Line buffer in Preview Engine cannot handle 2048 pixel/line, raw data needs to be stored in DDR before processing.

    QXGA data needs to  be processed block by block (left half and then right half).

    Once you have Preview engine output, generate VGA output using resizer.

     

    Regards,

    Sang-Yong

     

  • Hi!

    Thanks for answer!

    I can show the image now! Just using the preview.
    Let me explain better.
    I capture the image in 2 formats (640x480 (VGA) and 2496x1600 (I changed this last one))
    To show VGA format, I didn’t have problem. I configured the preview to use RGB2YCbCr.
    The another size, I configured
    HORZ_INFO = 0x9c3
    VERT_INFO = 0x63f
    RADR_OFFSET = 0x4E00
    WADD_OFFST = 0x1386
    OSD_VIDWIN0OFST = 0x9C
    And works!
    But I saw than just using the preview, I consume a big space of DDR, so I need to use the resize.
    I am working on this now!

    Thanks for help!