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.

omap3 preview is very gained up

Other Parts Discussed in Thread: DM3730

I'm using the ISP Preview to perform RGB to YUV conversion. The resultant image appears to have a high amount of gain associated with it. Here are my media-ctl commands. The first picture below is the ISP preview output. The second is a RAW capture and debayering in MATLAB. any ideas what is causing the poor output quality?

media-ctl -r
media-ctl -v -l '"ov7690 3-0021":0->"OMAP3 ISP CCDC":0[1]'
media-ctl -v -l '"OMAP3 ISP CCDC":2->"OMAP3 ISP preview":0[1]'
media-ctl -v -l '"OMAP3 ISP preview":1->"OMAP3 ISP preview output":0[1]'
media-ctl -v -f '"ov7690 3-0021":0 [SBGGR8 658x489]'
media-ctl -v -f '"OMAP3 ISP CCDC":2 [SBGGR8 658x489]'
media-ctl -v -f '"OMAP3 ISP preview":1 [UYVY 640x480]'

  • Hi Rich,

    I would like to investigate your issue but I need more detailed information about your environment: what is the hardware and software release?

    Could you describe step by step how to reproduce the issue, which tools and parameters you are using.

    BR

    Tsvetolin Shulev

  • This is for a LogicPD board (DM3730 Torpedo SoM) with their 2.2 BSP using kernel 3.0.4. 

    I'm using a modified ov7690 driver but the actual sensor is an Aptina MT9V024.

    I first capture using these commands

    media-ctl -r
    media-ctl -v -l '"ov7690 3-0021":0->"OMAP3 ISP CCDC":0[1]'
    media-ctl -v -l '"OMAP3 ISP CCDC":1->"OMAP3 ISP CCDC output":0[1]'
    media-ctl -v -f '"ov7690 3-0021":0 [SBGGR8 640x480]'
    media-ctl -v -f '"OMAP3 ISP CCDC":0 [SBGGR8 640x480]'
    media-ctl -v -f '"OMAP3 ISP CCDC":1 [SBGGR8 640x480]'

    yavta -p -f SBGGR8 -s 640x480 -n 4 --capture=1 --skip 0 $(media-ctl -e "OMAP3 ISP CCDC output") --file=img.bin

    and then post processing using the demosaic function in MATLAB, which looks as I would expect.

    I then add the preview pipe in order to perform debayering/demosaicing on the DSP using the following command.

    media-ctl -r
    media-ctl -v -l '"ov7690 3-0021":0->"OMAP3 ISP CCDC":0[1]'
    media-ctl -v -l '"OMAP3 ISP CCDC":2->"OMAP3 ISP preview":0[1]'
    media-ctl -v -l '"OMAP3 ISP preview":1->"OMAP3 ISP preview output":0[1]'
    media-ctl -v -f '"ov7690 3-0021":0 [SBGGR8 658x489]'
    media-ctl -v -f '"OMAP3 ISP CCDC":2 [SBGGR8 658x489]'
    media-ctl -v -f '"OMAP3 ISP preview":1 [UYVY 640x480]'

    yavta -p -f UYVY -s 622x471 -n 4 --capture=1 --file=img.bin /dev/video4

  • This seems like a bit of a hack but I changed this line in isppreview.c in order to reduce the gain and it looks better. I also had to comment out lines that enable the median filter and noise reduction as they were blurring the image. Any idea how to disable preview filters in userspace?

    isp_reg_writel(isp, 0x100, OMAP3_ISP_IOMEM_PREV, ISPPRV_WB_DGAIN);
    //isp_reg_writel(isp, 0x3FF, OMAP3_ISP_IOMEM_PREV, ISPPRV_WB_DGAIN);