The VPFE modules in CCDC and IPIPE expects to deal with only the
RGr/GbB pattern. That is why there is a data formatter and 
color space conversion at the input of CCDC. In your case you would
need to do data formatting to re-order the pixel bytes while
reading out from CCDC input line buffer. There are examples
in the CCDC PRG on how to do this.

Hope this helps.

Murali

>>>-----Original Message-----
>>>From: davinci-linux-open-source-bounces+m-
>>>[EMAIL PROTECTED]
[mailto:davinci-linux-open-source-
>>>[EMAIL PROTECTED] On Behalf Of
Stephen
>>>Berry
>>>Sent: Friday, May 16, 2008 1:41 PM
>>>To: Jeff Cooper
>>>Cc: [email protected]
>>>Subject: Re: Connecting a CMOS image sensor to a DM355
>>>
>>>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
>>>>
>>>
>>>_______________________________________________
>>>Davinci-linux-open-source mailing list
>>>[email protected]
>>>http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-sourc
e
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to