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.

dm365 dvsdk4.0.2 get raw data

Hi all,

I use DM365+mt9p031 on dvsdk4.0.2, I need get  raw data of mt9p031,I refer to the user guide of vpfe(sprufg8c.pdf) on page 119.


5.6.1.2.2 Raw Input, Raw Output Mode (IPIPE.SRC_FMT = 1)

In this mode, the raw data bypassed the raw-to-YCbCr processes, but since it still passes through the
RZA processing blocks, the following registers must be set accordingly:

IPIPE.SRC_FMT = 1             RZA_V_LPF[Y] = 0
SRC_FMT1[RAW] = 1           RZA_V_LPF[C] = 0
RZA_EN = ENABLE              RZA_H_PHS = 0
RZA_420[Y[ = DISABLE        RZA_H_PHS_ADJ = 0
RZA_420[C] = DISABLE       RZA_H_DIF = 256
RZA_I_VPS = 0                       RZA_H_LPF[Y] = 0
RZA_I_HPS = 0                      RZA_H_LPF[C] = 0
RZA_V_PHS_Y = 0                RZA_DWN_EN = DISABLE
RZA_V_PHS_C = 0               RZA_RGB_EN = DISABLE
RZA_V_DIF = 256                  RZB_EN = DISABLE

So , I modified these registers in dm365_ipipe_hw.c.And then I called the" Capture_get" in APP,and do "ioctl(hCapture->fd, VIDIOC_DQBUF, &v4l2buf)".This time I think I get the RAW data of mt9p031,am  I right?

Actually,the raw data I get is wrong

Or who can tell me the other way?

  • Hi,


    If I am not wrong is the linux kernel version 2.6.37 ? If so you can directly get the data from CCDC which is raw, then you no need to configure the registers. mt9p031_ccdc_file.c example does the same.

    Thanks,

    --Prabhakar Lad

  • Hi,

    Thanks for your reply!Our linux kernel version is 2.6.32.It is a good way to get the data from CCDC.But there is no app   like mt9p031_ccdc_file.c in dvsdk_dm365_4_02_00_06.I downloaded mt9p031_ccdc_file.c from Linuxtv.org,and I read .Mabye I can refer to this file and then modify thedirver of ccdc.By the way , what is your development package version?

    Thanks,

  • Hi,

    I am using Ti DaVinci_PSP_03.21.00.04 (http://processors.wiki.ti.com/index.php/DaVinci_PSP_03.21.00.04_Release_Notes)

    Regards,

    --Prabhakar Lad