各位好!
我这边使用的是ipn rdk v3.8版本, 芯片是8127, 前端sensor为4通道,分辨率为3392 x 2008
进入到8127的输入行顺序为:
0 2007 1 2006 2 2005 ...
需要通过isif dataformatter的转换,变回正常的输入顺序,如
0 1 2 3 4 ... 2007
我仔细看了有关iss的文档.类似的一个例子是
The following examples show the program
(AFE):
• Register settings:
– ISIF_FMTCFG[0] FMTEN = 0x1
– ISIF_FMTCFG[1] FMTCBL = 0x0
– ISIF_FMTCFG[11:8] FMTAINC = 0x0 (add or subtract 1)
– ISIF_FMTCFG[5:4] LNUM = 0x0
One input line (4096) - one output line with left and right read-out
Input - First pixel, last pixel, first pixel + 1, last pixel – 1, and so on
Input - 0, 4095, 1, 4094, 2, 4093, 3, 4092, ..., 2047 and 2048
Output - 0, 1, 2, 3, ..., 4094 and 4095
但上述例子是指的一行中的像素,且只指出了ISIF_FMTCFG的配置.好像至少要配置如下一些寄存器
1)FMTCFG
2)FMTPLEN: 设置每个SET的program entries的数量
3)FMTSPH: set the first pixel in a line
4)FMTLNH: set the number of pixels in a line
5)FMTSLV: set the start line vertical
6)FMTLNV: set the number of lines in a vertical
7)FMTRLEN: set the number of pixels in an output line
8)FMTHCNT: set the HD interval for output lines
9)FMTAPTR0~15(cfg->line_init,isif_ipfmt_line_init_t结构参见isif.h)
10)FMTPGMVF0/1: set the 32 possible program entry valid flag
11)FMTPGMAPU0/1: set the 32 possible address update(inc/dec)
12)FMTPGMAPS0~7: set the 32 possible address pointers
有谁做过这个吗? 能告诉有关寄存器怎样去配置吗? 最主要是寄存器FMTAPTR0~15, FMTPGMVF0/1,FMTPGMAPU0/1,FMTPGMAPS0~7的配置,
纠结了很多天,有谁烦请指点下,不甚感激!!!
