Stephen,

Thanks for that idea!  My colors are looking correct now.

I ended up using:

   ipipe_hst = 0;
   ipipe_vst = 1;

I saw what they were doing in the driver with COLPTN but I figured that they were just hardcoding to the Micron imager, not that it wouldn't matter.

Thanks,
Jeff

Stephen Berry wrote:
You can make the CCDC capture the data pattern that you need by skipping one row and one column. Another way to do it is to skip them in the IPIPEIF interface

ipipe_hst = 1;
ipipe_vst = 1;

Row and column skipping should give you the RG/GB pattern that the RAW->YUV interface needs for proper color conversion.

It appears that the hardware doesn't support any other bayer pattern input, and if you look at the driver code it makes NO difference what you set the COLPTN structure entries to, since the driver just hardcodes it to the one and only pattern.

> Do I have to use the color space converter in the CCDC to change the bayer pattern?

No. The only thing that I use the CCDC for is to capture the right amount of data into DDR. I find this very useful since I can do all kinds of processing on the raw image to see if I have what I need before it goes to the IPIPE. In addition, the IPIPE has a limitation of 1344 pixels (horizontal) which means that anything above a 2mp image will need to be processed in steps.

Hope this helps.

   Steve

Jeff Cooper wrote:
Has anyone connected a non Micron CMOS image sensor to a DM355.

I'm having trouble getting the correct color output on my display and I'm wondering if I'm setting up the CCDC or the IPIPE incorrectly on the DM355.

The imager sensor is a Omnivision 3630 which has a bayer pattern of:

   BGBG
   GRGR
   BGBG
   GRGR

The colors I'm seeing on the display are:

   * Cyan input displays as red
   * Magenta input displays as yellow
   * Yellow input displays as light pink
   * Red input displays as dark green/gray
   * Green input displays as blue
   * Blue input displays as black

I've tried adjusting the COLPTN register in the CCDC and that doesn't seem to have any effect on the output. That wasn't what I expected, I figured changing what the CCDC saw as a bayer pattern would drastically change the output. Am I misunderstanding what that register is for?

I've also noticed that in the VPFE docs, that the IPIPE states that the only supported color filter arrangement is:

   GB
   RG

Do I have to use the color space converter in the CCDC to change the bayer pattern?

I've proved that my display is correct by feeding a YCC image to the display and having it displayed as I expected it to be.

I'd welcome any suggestions on what I could be doing wrong here.

thanks,
Jeff




--
Jeff Cooper // senior embedded software engineer

LOGIC product development
411 Washington Ave. N. Suite 400
Minneapolis, MN 55401
T // 612.436.5176
F // 612.672.9489

[EMAIL PROTECTED]
www.logicpd.com

/ / / / / / / / / / / / / / / / / / / / / / / / / / / /
This message (including any attachments) contains confidential
information intended for a specific individual and purpose, and is
protected by law. If you are not the intended recipient, you should
delete this message and are hereby notified that any disclosure,
copying, or distribution of this message, or the taking of any action
based on it, is strictly prohibited.



_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to