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.

DM6437 PREVIEW

HI,all

i am using LUPA_300 to connect to DM6437.  Because of  the output image  of  LUPA_300  is BAYER,i convert it  to YUV by PREVIEW,and my project  is  like video_loopback.pjt.but  it is  white and black ,no color

                            #define R_PHASE                    #define GR_PHASE   #define GB_PHASE    #define B_PHASE

 const char cfa_coef[] =
{
    GR_PHASE,
    R_PHASE,
    B_PHASE,
    GB_PHASE
};

VPFE_PREV_CFA           = 0x00002828;

VPFE_PREV_RGB_MAT1      =0x01000100;
 VPFE_PREV_RGB_MAT2      =0x01000100;
VPFE_PREV_RGB_MAT3      =0x01000100;
VPFE_PREV_RGB_MAT4      =0x01000100;
 VPFE_PREV_RGB_MAT5      =0x00000100;

VPFE_PREV_CSC0          =0x01C2604C;
VPFE_PREV_CSC1          =0x080EB3D4;
VPFE_PREV_CSC2          =0x080EB3D4;

VPFE_PREV_PCR  =0x04100401;

what is wrong with it?

thanks

  • and the following code is to load  the CFA coefficient

    VPFE_PREV_SET_TBL_ADDR  =0x1400;       //CFA系数表地址
           
     
     for(i = 0;i < 576;i++)
        {
       VPFE_PREV_SET_TBL_DATA  =cfa_coef[i];  //CFA系数表装入寄存器
        }

  • are the settings for the color conversion matrix correct?

    see http://en.wikipedia.org/wiki/YUV for what the standards say about that color space.

     

    sometimes just the number of bits is different, e.g. having a 10 bit input but VPFE is configured only for 8 bit.

    check if the center and cornerns of the captured image matches what you would expect to see.

     

    can you inpsect the raw input data?

    Is that data meaningful? (having every second byte correspond to its second next neighbours) test that with lit, dark and uni-colored sample data

     

    check if your image source is truely a bayer color sensor - its easy for sensor vendors to add or remove those checkerboard filters

    and thus having two very similar sensor models (with an identical register set) that only differ in that respect.