Hello Arun: Thanks for your input.
But the COLPTN (CCDC register) is seems for CCD controller, not for preview. At page 95, sprue38e.pdf (Video Processing Front End , VPFE) : "The first input pixel should be the RED pixel in order for the register names to be aligned with the appropriate colors." So I think the color pattern is fixed in preview engine : R Gr ... Gb B ... Are you sure the COLPTN impact preview engine ? Thanks. Jack -----Original Message----- From: Arun Kumar S [mailto:[email protected]] Sent: Tuesday, October 13, 2009 9:50 PM To: 'Jack'; [email protected] Subject: RE: RGB ==> YUV in DM6446 Hello Jack, Color pattern can be configured with the register COLPTN (CCDC register). Also hstart, hsize, vstart and vsize of size_params structure should be configured accordingly. There can be a timing glitch between VPFE input pixel clock and internal VPFE clock which can cause pixel misalignment wrt color pattern on CCDC to Preview engine path because of this whole of image gets a "pink" tint. This issue and suggested workaround is present in the Errata of the processor. -- Best Regards Arun -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Jack Sent: Tuesday, October 13, 2009 5:14 PM To: [email protected] Subject: RGB ==> YUV in DM6446 Hi All: We are using preview engine to RGB ==> YUV, CMOS Sensor is MT9T001, The Pixel Color Pattern is: G R ... B G ... We capture the raw data is (full red bar): 00 00 FF 03 00 00 FF 03 ... 00 00 00 00 00 00 00 00... 00 00 FF 03 00 00 FF 03 ... 00 00 00 00 00 00 00 00... But the preview enginee output data is : 80 00 80 FE 80 00 80 FE ... // right color data: red 80 00 80 00 80 00 80 00 ... // error color data: green 80 00 80 FE 80 00 80 FE ... // right color data: red 80 00 80 00 80 00 80 00 ... // error color data: green Our init. previewer engine step is: 1, set AVE register: 0x14 2, set WB_DGAIN : 0x100 3, set WBGAIN : 0x20202020 4, set WBSEL : 0 5, set CSC0, CSC1, CSC2 value same as: preview_example.c in DVSDK 6, set contrast = 0x10; brightness = 0; 7, Set pixel width 10 bit, one shot mode, input source:SDRAM 8, set output format is :CbYCrY 9, set address for read and write, offset Do we miss some step? and How does the preview engine know the Pixel Color Pattern ? Thanks. Jack _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
