Hi all,
I use DM3658+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?