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.

About Bayer to YUV data format!

Genius 3400 points

Hi all:

       Using DM368, We build our own camera, the program is based on IPNC program. My sensor can output YUV422 and Bayer data format. And when Sensor output YUV422, resize  to 1080P YUV , the color is correct. But when Sensor output Bayer(RGGB) data format, resize to 1080P, the color is wrong which U channel and V channel is opposition. My data flow is:

       YUV422-->ISIF-->DDR-->RSZ   the color is correct.

      Bayer-->ISIF-->DDR-->RSZ   the color is wrong that U channel and V channel is opposition.

     I don't know how to set IPIPE or RSZ can change UV channel.

    Thanks again.

Regards

Gomo

 

  • Hi,

    When you use Bayer data input, are you not using IPIPE? Your dataflow does not show that.

    Regards,

    Anshuman

  • Hi  Anshuman:

                Thanks your reply at first!

               I'm sure that I have used IPIPE. The data flow is:

               YUV422-->ISIF-->DDR-->IPIPE-->RSZA---> 1080P YUV the color is correct.
                                                                      |
                                                                      -->RSZB---> CIF YUV

               Bayer-->ISIF-->DDR-->IPIPE-->RSZA---> 1080P YUV 
                                                                     |
                                                                     -->RSZB---> CIF YUV the color is wrong that U channel and V channel is opposition.

                And the Bayer pattern is RGGB, it have been confirmed by other way.

               I have found the register of IPIPE and RSZ, don't find any settting about RGB  pattern.

     Thanks again!

    Reagards,

    Gomo 


  • Thanks you.

    I had got it. It's in ipipeParams->colPat

    { CSL_IPIPE_SOURCE_COLOUR_GR, CSL_IPIPE_SOURCE_COLOUR_R },
    { CSL_IPIPE_SOURCE_COLOUR_B , CSL_IPIPE_SOURCE_COLOUR_GB },

     

    Thanks again.

  • Hi,

    Good to see that you found the answer. Just for completeness from the SoC perspective, i am mentioning the register that gives information of input color pattern to IPIPE. The register is COLPTN in the IPIPE module that tells what is the color pattern that sensor is sending, like RGrGbB or something else.

    Regards,

    Anshuman

    PS: Please mark this post as verified, if you think it has answered your question. Thanks.