5241
- 收藏
- 点赞
- 分享
- 举报
hi3516D+AR0237 ISP无中断
使用海思提供的SDK5.0,sensor初始序列用的SDK提供的代码,由于我们自己的硬件采用的aptina 的 HiVCM模式,故只是修改了0x306E寄存器的值,I2C接口通的,往sensor寄存器写的值可以正确读出。
跑的是海思提供的stream程序,ini文件用的海思提供的ar0237_1080p_line.ini,程序跑起来后cat /proc/umap/isp 无中断产生,还请大神指导指导!!
sensor初始化序列如下:
void sensor_linear_1080p30_init()
{
//#[HiSPi Linear 1080p30 Low Power Mode - 4 Lane]
//#Load = Reset
sensor_write_register(0x301A, 0x0001);
delay_ms(200);
sensor_write_register(0x301A, 0x10D8);
//#LOAD = Linear_mode_sequencer
//#[Linear_mode_sequencer]
sensor_write_register(0x3088, 0x8000);
sensor_write_register(0x3086, 0x4558);
sensor_write_register(0x3086, 0x72A6);
sensor_write_register(0x3086, 0x4A31);
sensor_write_register(0x3086, 0x4342);
sensor_write_register(0x3086, 0x8E03);
sensor_write_register(0x3086, 0x2A14);
sensor_write_register(0x3086, 0x4578);
sensor_write_register(0x3086, 0x7B3D);
sensor_write_register(0x3086, 0xFF3D);
sensor_write_register(0x3086, 0xFF3D);
sensor_write_register(0x3086, 0xEA2A);
sensor_write_register(0x3086, 0x043D);
sensor_write_register(0x3086, 0x102A);
sensor_write_register(0x3086, 0x052A);
sensor_write_register(0x3086, 0x1535);
sensor_write_register(0x3086, 0x2A05);
sensor_write_register(0x3086, 0x3D10);
sensor_write_register(0x3086, 0x4558);
sensor_write_register(0x3086, 0x2A04);
sensor_write_register(0x3086, 0x2A14);
sensor_write_register(0x3086, 0x3DFF);
sensor_write_register(0x3086, 0x3DFF);
sensor_write_register(0x3086, 0x3DEA);
sensor_write_register(0x3086, 0x2A04);
sensor_write_register(0x3086, 0x622A);
sensor_write_register(0x3086, 0x288E);
sensor_write_register(0x3086, 0x0036);
sensor_write_register(0x3086, 0x2A08);
sensor_write_register(0x3086, 0x3D64);
sensor_write_register(0x3086, 0x7A3D);
sensor_write_register(0x3086, 0x0444);
sensor_write_register(0x3086, 0x2C4B);
sensor_write_register(0x3086, 0xA403);
sensor_write_register(0x3086, 0x430D);
sensor_write_register(0x3086, 0x2D46);
sensor_write_register(0x3086, 0x4316);
sensor_write_register(0x3086, 0x2A90);
sensor_write_register(0x3086, 0x3E06);
sensor_write_register(0x3086, 0x2A98);
sensor_write_register(0x3086, 0x5F16);
sensor_write_register(0x3086, 0x530D);
sensor_write_register(0x3086, 0x1660);
sensor_write_register(0x3086, 0x3E4C);
sensor_write_register(0x3086, 0x2904);
sensor_write_register(0x3086, 0x2984);
sensor_write_register(0x3086, 0x8E03);
sensor_write_register(0x3086, 0x2AFC);
sensor_write_register(0x3086, 0x5C1D);
sensor_write_register(0x3086, 0x5754);
sensor_write_register(0x3086, 0x495F);
sensor_write_register(0x3086, 0x5305);
sensor_write_register(0x3086, 0x5307);
sensor_write_register(0x3086, 0x4D2B);
sensor_write_register(0x3086, 0xF810);
sensor_write_register(0x3086, 0x164C);
sensor_write_register(0x3086, 0x0955);
sensor_write_register(0x3086, 0x562B);
sensor_write_register(0x3086, 0xB82B);
sensor_write_register(0x3086, 0x984E);
sensor_write_register(0x3086, 0x1129);
sensor_write_register(0x3086, 0x9460);
sensor_write_register(0x3086, 0x5C19);
sensor_write_register(0x3086, 0x5C1B);
sensor_write_register(0x3086, 0x4548);
sensor_write_register(0x3086, 0x4508);
sensor_write_register(0x3086, 0x4588);
sensor_write_register(0x3086, 0x29B6);
sensor_write_register(0x3086, 0x8E01);
sensor_write_register(0x3086, 0x2AF8);
sensor_write_register(0x3086, 0x3E02);
sensor_write_register(0x3086, 0x2AFA);
sensor_write_register(0x3086, 0x3F09);
sensor_write_register(0x3086, 0x5C1B);
sensor_write_register(0x3086, 0x29B2);
sensor_write_register(0x3086, 0x3F0C);
sensor_write_register(0x3086, 0x3E03);
sensor_write_register(0x3086, 0x3E15);
sensor_write_register(0x3086, 0x5C13);
sensor_write_register(0x3086, 0x3F11);
sensor_write_register(0x3086, 0x3E0F);
sensor_write_register(0x3086, 0x5F2B);
sensor_write_register(0x3086, 0x902B);
sensor_write_register(0x3086, 0x803E);
sensor_write_register(0x3086, 0x062A);
sensor_write_register(0x3086, 0xF23F);
sensor_write_register(0x3086, 0x103E);
sensor_write_register(0x3086, 0x0160);
sensor_write_register(0x3086, 0x29A2);
sensor_write_register(0x3086, 0x29A3);
sensor_write_register(0x3086, 0x5F4D);
sensor_write_register(0x3086, 0x1C2A);
sensor_write_register(0x3086, 0xFA29);
sensor_write_register(0x3086, 0x8345);
sensor_write_register(0x3086, 0xA83E);
sensor_write_register(0x3086, 0x072A);
sensor_write_register(0x3086, 0xFB3E);
sensor_write_register(0x3086, 0x2945);
sensor_write_register(0x3086, 0x8824);
sensor_write_register(0x3086, 0x3E08);
sensor_write_register(0x3086, 0x2AFA);
sensor_write_register(0x3086, 0x5D29);
sensor_write_register(0x3086, 0x9288);
sensor_write_register(0x3086, 0x102B);
sensor_write_register(0x3086, 0x048B);
sensor_write_register(0x3086, 0x1686);
sensor_write_register(0x3086, 0x8D48);
sensor_write_register(0x3086, 0x4D4E);
sensor_write_register(0x3086, 0x2B80);
sensor_write_register(0x3086, 0x4C0B);
sensor_write_register(0x3086, 0x3F36);
sensor_write_register(0x3086, 0x2AF2);
sensor_write_register(0x3086, 0x3F10);
sensor_write_register(0x3086, 0x3E01);
sensor_write_register(0x3086, 0x6029);
sensor_write_register(0x3086, 0x8229);
sensor_write_register(0x3086, 0x8329);
sensor_write_register(0x3086, 0x435C);
sensor_write_register(0x3086, 0x155F);
sensor_write_register(0x3086, 0x4D1C);
sensor_write_register(0x3086, 0x2AFA);
sensor_write_register(0x3086, 0x4558);
sensor_write_register(0x3086, 0x8E00);
sensor_write_register(0x3086, 0x2A98);
sensor_write_register(0x3086, 0x3F0A);
sensor_write_register(0x3086, 0x4A0A);
sensor_write_register(0x3086, 0x4316);
sensor_write_register(0x3086, 0x0B43);
sensor_write_register(0x3086, 0x168E);
sensor_write_register(0x3086, 0x032A);
sensor_write_register(0x3086, 0x9C45);
sensor_write_register(0x3086, 0x783F);
sensor_write_register(0x3086, 0x072A);
sensor_write_register(0x3086, 0x9D3E);
sensor_write_register(0x3086, 0x305D);
sensor_write_register(0x3086, 0x2944);
sensor_write_register(0x3086, 0x8810);
sensor_write_register(0x3086, 0x2B04);
sensor_write_register(0x3086, 0x530D);
sensor_write_register(0x3086, 0x4558);
sensor_write_register(0x3086, 0x3E08);
sensor_write_register(0x3086, 0x8E01);
sensor_write_register(0x3086, 0x2A98);
sensor_write_register(0x3086, 0x8E00);
sensor_write_register(0x3086, 0x76A7);
sensor_write_register(0x3086, 0x77A7);
sensor_write_register(0x3086, 0x4644);
sensor_write_register(0x3086, 0x1616);
sensor_write_register(0x3086, 0xA57A);
sensor_write_register(0x3086, 0x1244);
sensor_write_register(0x3086, 0x4B18);
sensor_write_register(0x3086, 0x4A04);
sensor_write_register(0x3086, 0x4316);
sensor_write_register(0x3086, 0x0643);
sensor_write_register(0x3086, 0x1605);
sensor_write_register(0x3086, 0x4316);
sensor_write_register(0x3086, 0x0743);
sensor_write_register(0x3086, 0x1658);
sensor_write_register(0x3086, 0x4316);
sensor_write_register(0x3086, 0x5A43);
sensor_write_register(0x3086, 0x1645);
sensor_write_register(0x3086, 0x588E);
sensor_write_register(0x3086, 0x032A);
sensor_write_register(0x3086, 0x9C45);
sensor_write_register(0x3086, 0x787B);
sensor_write_register(0x3086, 0x3F07);
sensor_write_register(0x3086, 0x2A9D);
sensor_write_register(0x3086, 0x530D);
sensor_write_register(0x3086, 0x8B16);
sensor_write_register(0x3086, 0x863E);
sensor_write_register(0x3086, 0x2345);
sensor_write_register(0x3086, 0x5825);
sensor_write_register(0x3086, 0x3E10);
sensor_write_register(0x3086, 0x8E01);
sensor_write_register(0x3086, 0x2A98);
sensor_write_register(0x3086, 0x8E00);
sensor_write_register(0x3086, 0x3E10);
sensor_write_register(0x3086, 0x8D60);
sensor_write_register(0x3086, 0x1244);
sensor_write_register(0x3086, 0x4BB9);
sensor_write_register(0x3086, 0x2C2C);
sensor_write_register(0x3086, 0x2C2C);
//#LOAD= Default_Settings_12_Aug
//#[Default_Settings_12_Aug]
sensor_write_register(0x30F0, 0x1283);
sensor_write_register(0x3064, 0x1802);
sensor_write_register(0x3EEE, 0xA0AA);
sensor_write_register(0x30BA, 0x762C);
sensor_write_register(0x3FA4, 0x0F70);
sensor_write_register(0x309E, 0x016A);
sensor_write_register(0x3096, 0xF880);
sensor_write_register(0x3F32, 0xF880);
sensor_write_register(0x3092, 0x006F);
sensor_write_register(0x301A, 0x0058);
sensor_write_register(0x30B0, 0x0118);
sensor_write_register(0x31AC, 0x0C0C);
//#LOAD= PLL_settings - 4 Lane 12-bit HiSPi Low Power Mode
//#[PLL_settings - 4 Lane 12-bit HiSPi Low Power Mode]
#if 0
//Actual Pixel Clock: 37.125 MHz
sensor_write_register(0x302A, 0x000C); //vt_pix_clk_div
sensor_write_register(0x302C, 0x0001); //vt_sys_clk_div
sensor_write_register(0x302E, 0x0004); //pre_pll_clk_div
sensor_write_register(0x3030, 0x0042); //pll_multiplier
sensor_write_register(0x3036, 0x000C); //op_pix_clk_div
sensor_write_register(0x3038, 0x0002); //op_sys_clk_div
#else
//Actual Pixel Clock: 74.250 MHz
sensor_write_register(0x302A, 0x0006); //vt_pix_clk_div
sensor_write_register(0x302C, 0x0001); //vt_sys_clk_div
sensor_write_register(0x302E, 0x0004); //pre_pll_clk_div
sensor_write_register(0x3030, 0x0042); //pll_multiplier
sensor_write_register(0x3036, 0x000C); //op_pix_clk_div
sensor_write_register(0x3038, 0x0001); //op_sys_clk_div
#endif
sensor_write_register(0x3002, 0x0000);
sensor_write_register(0x3004, 0x0000);
sensor_write_register(0x3006, 0x0437);
sensor_write_register(0x3008, 0x0787);
sensor_write_register(0x300A, 0x0454);
sensor_write_register(0x300C, 0x045E);
sensor_write_register(0x3012, 0x0416);
sensor_write_register(0x30A2, 0x0001);
sensor_write_register(0x30A6, 0x0001);
sensor_write_register(0x30AE, 0x0001);
sensor_write_register(0x30A8, 0x0001);
sensor_write_register(0x3040, 0x0000);
//#LOAD= Linear Mode Setup
sensor_write_register(0x3082, 0x0009);
//#sensor_write_register(0x30BA 0x762C);
sensor_write_register(0x3096, 0x0080);
sensor_write_register(0x3098, 0x0080);
//#LOAD= Linear Mode Low Conversion Gain
//#LOAD= 1.5x analog Gain
sensor_write_register(0x3060, 0x000B);
sensor_write_register(0x3100, 0x0000);
//#LOAD= Companding Disabled
sensor_write_register(0x31D0, 0x0000);
//#LOAD= AR0230_Rev1_AWB_CCM
//#LOAD= Enable Embedded Data and Stats
//#sensor_write_register(0x3064 0x1982);
sensor_write_register(0x31AE, 0x0304);
sensor_write_register(0x31C6, 0x0400); //choose Packetized-SP protocol
//sensor_write_register(0x306E, 0x9010); //yanwei close it for debug
sensor_write_register(0x306E, 0x9210); //choose HiVcm mode
//#patch start###########################
sensor_write_register(0x3ECC, 0x6E2D);
sensor_write_register(0x3ED2, 0xFE96);
sensor_write_register(0x3ED6, 0x34B3);
sensor_write_register(0x3EEA, 0x2818);
//#patch end ############################
sensor_write_register(0x301A, 0x005C);
delay_ms(33);
printf("Aptina AR0237 sensor linear 2M-1080p 30fps init success!\n");
return ;
}
ar0237_1080p_line.ini文件内容如下:
[sensor]
Sensor_type =ar0237 ;sensor name
Mode =0 ;WDR_MODE_NONE = 0
;WDR_MODE_BUILT_IN = 1
;WDR_MODE_2To1_LINE = 2
;WDR_MODE_2To1_FRAME = 3
;WDR_MODE_2To1_FRAME_FULL_RATE =4 ...etc
DllFile =libs/libsns_ar0237.so ;sensor lib path
[mode]
input_mode =3 ;INPUT_MODE_MIPI = 0
;INPUT_MODE_SUBLVDS = 1
;INPUT_MODE_LVDS = 2 ...etc
dev_attr = 1 ;mipi_dev_attr_t = 0
;lvds_dev_attr_t = 1
;NULL =2
[mipi]
;----------only for mipi_dev---------
data_type =-1 ;raw data type: 8/10/12/14 bit
;RAW_DATA_8BIT = 0
;RAW_DATA_10BIT = 1
;RAW_DATA_12BIT = 2
;RAW_DATA_14BIT = 3
lane_id = 0|1|2|3|-1|-1|-1|-1| ;lane_id: -1 - disable
[lvds]
;----------only for lvds_dev---------
img_size_w = 1920 ;oringnal sensor input image size W
img_size_h = 1080 ;oringnal sensor input image size H
wdr_mode = 0 ;HI_WDR_MODE_NONE =0
;HI_WDR_MODE_2F = 1;HI_WDR_MODE_3F = 2;HI_WDR_MODE_4F =3
;HI_WDR_MODE_DOL_2F = 4;HI_WDR_MODE_DOL_3F = 5;HI_WDR_MODE_DOL_4F = 6
sync_mode = 0 ;LVDS_SYNC_MODE_SOL = 0
;LVDS_SYNC_MODE_SAV = 1
raw_data_type = 2 ;RAW_DATA_8BIT = 0
;RAW_DATA_10BIT = 1
;RAW_DATA_12BIT = 2
;RAW_DATA_14BIT = 3
data_endian = 0 ;LVDS_ENDIAN_LITTLE = 0
;LVDS_ENDIAN_BIG = 1
sync_code_endian =0 ;LVDS_ENDIAN_LITTLE = 0
;LVDS_ENDIAN_BIG = 1
lane_id = 0|1|2|3|-1|-1|-1|-1| ;lane_id: -1 - disable
lvds_lane_num = 8 ;LVDS_LANE_NUM
wdr_vc_num = 4 ;WDR_VC_NUM
sync_code_num = 4 ;SYNC_CODE_NUM
sync_code_0 = 0x003|0x007|0x001|0x005|0x043|0x047|0x041|0x045|0x023|0x027|0x021|0x025|0x083|0x087|0x081|0x085|
sync_code_1 = 0x003|0x007|0x001|0x005|0x043|0x047|0x041|0x045|0x023|0x027|0x021|0x025|0x083|0x087|0x081|0x085|
sync_code_2 = 0x003|0x007|0x001|0x005|0x043|0x047|0x041|0x045|0x023|0x027|0x021|0x025|0x083|0x087|0x081|0x085|
sync_code_3 = 0x003|0x007|0x001|0x005|0x043|0x047|0x041|0x045|0x023|0x027|0x021|0x025|0x083|0x087|0x081|0x085|
sync_code_4 = 0x003|0x007|0x001|0x005|0x043|0x047|0x041|0x045|0x023|0x027|0x021|0x025|0x083|0x087|0x081|0x085|
sync_code_5 = 0x003|0x007|0x001|0x005|0x043|0x047|0x041|0x045|0x023|0x027|0x021|0x025|0x083|0x087|0x081|0x085|
sync_code_6 = 0x003|0x007|0x001|0x005|0x043|0x047|0x041|0x045|0x023|0x027|0x021|0x025|0x083|0x087|0x081|0x085|
sync_code_7 = 0x003|0x007|0x001|0x005|0x043|0x047|0x041|0x045|0x023|0x027|0x021|0x025|0x083|0x087|0x081|0x085|
[isp_image]
Isp_x =0
Isp_y =0
Isp_W =1920
Isp_H =1080
Isp_FrameRate=25
Isp_Bayer =1 ;BAYER_RGGB=0, BAYER_GRBG=1, BAYER_GBRG=2, BAYER_BGGR=3
[vi_dev]
Input_mod =5 ;VI_INPUT_MODE_BT656 = 0
;VI_INPUT_MODE_BT601,
;VI_INPUT_MODE_DIGITAL_CAMERA
Work_mod =0 ;VI_WORK_MODE_1Multiplex = 0
;VI_WORK_MODE_2Multiplex,
;VI_WORK_MODE_4Multiplex
Combine_mode =0 ;Y/C composite or separation mode
;VI_COMBINE_COMPOSITE = 0 /*Composite mode */
;VI_COMBINE_SEPARATE, /*Separate mode */
Comp_mode =0 ;Component mode (single-component or dual-component)
;VI_COMP_MODE_SINGLE = 0, /*single component mode */
;VI_COMP_MODE_DOUBLE = 1, /*double component mode */
Clock_edge =1 ;Clock edge mode (sampling on the rising or falling edge)
;VI_CLK_EDGE_SINGLE_UP=0, /*rising edge */
;VI_CLK_EDGE_SINGLE_DOWN, /*falling edge */
Mask_num =2 ;Component mask
Mask_0 =0xFFF00000
Mask_1 =0x0
Scan_mode = 1;VI_SCAN_INTERLACED = 0
;VI_SCAN_PROGRESSIVE,
Data_seq =2 ;data sequence (ONLY for YUV format)
;----2th component U/V sequence in bt1120
; VI_INPUT_DATA_VUVU = 0,
; VI_INPUT_DATA_UVUV,
;----input sequence for yuv
; VI_INPUT_DATA_UYVY = 0,
; VI_INPUT_DATA_VYUY,
; VI_INPUT_DATA_YUYV,
; VI_INPUT_DATA_YVYU
Vsync =1 ; vertical synchronization signal
;VI_VSYNC_FIELD = 0,
;VI_VSYNC_PULSE,
VsyncNeg=0 ;Polarity of the vertical synchronization signal
;VI_VSYNC_NEG_HIGH = 0,
;VI_VSYNC_NEG_LOW /*if VIU_VSYNC_E
Hsync =0 ;Attribute of the horizontal synchronization signal
;VI_HSYNC_VALID_SINGNAL = 0,
;VI_HSYNC_PULSE,
HsyncNeg =0 ;Polarity of the horizontal synchronization signal
;VI_HSYNC_NEG_HIGH = 0,
;VI_HSYNC_NEG_LOW
VsyncValid =1 ;Attribute of the valid vertical synchronization signal
;VI_VSYNC_NORM_PULSE = 0,
;VI_VSYNC_VALID_SINGAL,
VsyncValidNeg =0;Polarity of the valid vertical synchronization signal
;VI_VSYNC_VALID_NEG_HIGH = 0,
;VI_VSYNC_VALID_NEG_LOW
Timingblank_HsyncHfb =0 ;Horizontal front blanking width
Timingblank_HsyncAct =1920 ;Horizontal effetive width
Timingblank_HsyncHbb =0 ;Horizontal back blanking width
Timingblank_VsyncVfb =0 ;Vertical front blanking height
Timingblank_VsyncVact =1080 ;Vertical effetive width
Timingblank_VsyncVbb=0 ;Vertical back blanking height
Timingblank_VsyncVbfb =0 ;Even-field vertical front blanking height(interlace, invalid progressive)
Timingblank_VsyncVbact=0 ;Even-field vertical effetive width(interlace, invalid progressive)
Timingblank_VsyncVbbb =0 ;Even-field vertical back blanking height(interlace, invalid progressive)
;----- only for bt656 ----------
FixCode =0 ;BT656_FIXCODE_1 = 0,
;BT656_FIXCODE_0
FieldPolar=0 ;BT656_FIELD_POLAR_STD = 0
;BT656_FIELD_POLAR_NSTD
DataPath =1 ;ISP enable or bypass
;VI_PATH_BYPASS = 0,/* ISP bypass */
;VI_PATH_ISP = 1,/* ISP enable */
;VI_PATH_RAW = 2,/* Capture raw data, for debug */
InputDataType=1 ;VI_DATA_TYPE_YUV = 0,VI_DATA_TYPE_RGB = 1,
DataRev =FALSE ;Data reverse. FALSE = 0; TRUE = 1
DevRect_x=0 ;
DevRect_y=0 ;
DevRect_w=1920 ;
DevRect_h=1080 ;
[vi_chn]
CapRect_X =0
CapRect_Y =0
CapRect_Width=1920
CapRect_Height=1080
DestSize_Width=1920
DestSize_Height=1080
CapSel =2 ;Frame/field select. ONLY used in interlaced mode
;VI_CAPSEL_TOP = 0, /* top field */
;VI_CAPSEL_BOTTOM, /* bottom field */
;VI_CAPSEL_BOTH, /* top and bottom field */
PixFormat =23;PIXEL_FORMAT_YUV_SEMIPLANAR_422 = 22
;PIXEL_FORMAT_YUV_SEMIPLANAR_420 = 23 ...etc
CompressMode =0 ;COMPRESS_MODE_NONE = 0
;COMPRESS_MODE_SEG =1 ...etc
SrcFrameRate=-1 ;Source frame rate. -1: not controll
FrameRate =-1 ;Target frame rate. -1: not controll
[wdr]
;only for wdr mode
Compress =FALSE ;WDR Compress. FALSE = 0; TRUE = 1
[vpss_group]
Vpss_DciEn =FALSE
Vpss_IeEn =FALSE
Vpss_NrEn =TRUE
Vpss_HistEn =FALSE
Vpss_DieMode=1 ;Define de-interlace mode
;VPSS_DIE_MODE_AUTO = 0,
;VPSS_DIE_MODE_NODIE = 1,
;VPSS_DIE_MODE_DIE = 2,
[vpss_corp]
Crop_enable =FALSE
Coordinate =1 ;VPSS_CROP_RATIO_COOR = 0, /*Ratio coordinate*/
;VPSS_CROP_ABS_COOR = 1 /*Absolute coordinate*/
Crop_X =128
Crop_Y =128
Crop_W =1664
Crop_H =824
[vpss_chn]
Vpss_W =1920
Vpss_H =1080
CompressMode=0 ;COMPRESS_MODE_NONE = 0
;COMPRESS_MODE_SEG =1 ...etc
Mirror =FALSE;Whether to mirror
Flip =FALSE;Whether to flip
[vb_conf]
VbCnt=10
[venc_comm]
venc_chn =1 ;create venc chn number;(0,2]
BufCnt = 1 ;network meida-trans bufcnt
[venc_0]
PicWidth =1920
PicHeight =1080
Profile =2
RcMode =VENC_RC_MODE_H264CBR
Gop =50
StatTime =2
ViFrmRate =25
TargetFrmRate=25
;----- only for VENC_RC_MODE_H264CBR ----------
BitRate=4096
FluctuateLevel=1
;----- only for VENC_RC_MODE_H264VBR ----------
MaxBitRate =10000
MaxQp=32
MinQp=24
;----- only for VENC_RC_MODE_H264FIXQP ----------
IQp=32
PQp=35
[venc_1]
PicWidth =1920
PicHeight =1080
Profile =2
RcMode =VENC_RC_MODE_H264CBR
Gop =50
StatTime =2
ViFrmRate =25
TargetFrmRate=25
;----- only for VENC_RC_MODE_H264CBR ----------
BitRate=4096
FluctuateLevel=1
;----- only for VENC_RC_MODE_H264VBR ----------
MaxBitRate =10000
MaxQp=32
MinQp=24
;----- only for VENC_RC_MODE_H264FIXQP ----------
IQp=32
PQp=35
[bind]
ViDev =0
ViChn =0
VpssGrp =0
VpssChn = 0
VoDev =0
VoChn =0
ViSnapChn =0
VpssSnapGrp=0
VpssSnapChn=1
VencSnapGrp=1
VencSnapChn=3
跑的是海思提供的stream程序,ini文件用的海思提供的ar0237_1080p_line.ini,程序跑起来后cat /proc/umap/isp 无中断产生,还请大神指导指导!!
sensor初始化序列如下:
void sensor_linear_1080p30_init()
{
//#[HiSPi Linear 1080p30 Low Power Mode - 4 Lane]
//#Load = Reset
sensor_write_register(0x301A, 0x0001);
delay_ms(200);
sensor_write_register(0x301A, 0x10D8);
//#LOAD = Linear_mode_sequencer
//#[Linear_mode_sequencer]
sensor_write_register(0x3088, 0x8000);
sensor_write_register(0x3086, 0x4558);
sensor_write_register(0x3086, 0x72A6);
sensor_write_register(0x3086, 0x4A31);
sensor_write_register(0x3086, 0x4342);
sensor_write_register(0x3086, 0x8E03);
sensor_write_register(0x3086, 0x2A14);
sensor_write_register(0x3086, 0x4578);
sensor_write_register(0x3086, 0x7B3D);
sensor_write_register(0x3086, 0xFF3D);
sensor_write_register(0x3086, 0xFF3D);
sensor_write_register(0x3086, 0xEA2A);
sensor_write_register(0x3086, 0x043D);
sensor_write_register(0x3086, 0x102A);
sensor_write_register(0x3086, 0x052A);
sensor_write_register(0x3086, 0x1535);
sensor_write_register(0x3086, 0x2A05);
sensor_write_register(0x3086, 0x3D10);
sensor_write_register(0x3086, 0x4558);
sensor_write_register(0x3086, 0x2A04);
sensor_write_register(0x3086, 0x2A14);
sensor_write_register(0x3086, 0x3DFF);
sensor_write_register(0x3086, 0x3DFF);
sensor_write_register(0x3086, 0x3DEA);
sensor_write_register(0x3086, 0x2A04);
sensor_write_register(0x3086, 0x622A);
sensor_write_register(0x3086, 0x288E);
sensor_write_register(0x3086, 0x0036);
sensor_write_register(0x3086, 0x2A08);
sensor_write_register(0x3086, 0x3D64);
sensor_write_register(0x3086, 0x7A3D);
sensor_write_register(0x3086, 0x0444);
sensor_write_register(0x3086, 0x2C4B);
sensor_write_register(0x3086, 0xA403);
sensor_write_register(0x3086, 0x430D);
sensor_write_register(0x3086, 0x2D46);
sensor_write_register(0x3086, 0x4316);
sensor_write_register(0x3086, 0x2A90);
sensor_write_register(0x3086, 0x3E06);
sensor_write_register(0x3086, 0x2A98);
sensor_write_register(0x3086, 0x5F16);
sensor_write_register(0x3086, 0x530D);
sensor_write_register(0x3086, 0x1660);
sensor_write_register(0x3086, 0x3E4C);
sensor_write_register(0x3086, 0x2904);
sensor_write_register(0x3086, 0x2984);
sensor_write_register(0x3086, 0x8E03);
sensor_write_register(0x3086, 0x2AFC);
sensor_write_register(0x3086, 0x5C1D);
sensor_write_register(0x3086, 0x5754);
sensor_write_register(0x3086, 0x495F);
sensor_write_register(0x3086, 0x5305);
sensor_write_register(0x3086, 0x5307);
sensor_write_register(0x3086, 0x4D2B);
sensor_write_register(0x3086, 0xF810);
sensor_write_register(0x3086, 0x164C);
sensor_write_register(0x3086, 0x0955);
sensor_write_register(0x3086, 0x562B);
sensor_write_register(0x3086, 0xB82B);
sensor_write_register(0x3086, 0x984E);
sensor_write_register(0x3086, 0x1129);
sensor_write_register(0x3086, 0x9460);
sensor_write_register(0x3086, 0x5C19);
sensor_write_register(0x3086, 0x5C1B);
sensor_write_register(0x3086, 0x4548);
sensor_write_register(0x3086, 0x4508);
sensor_write_register(0x3086, 0x4588);
sensor_write_register(0x3086, 0x29B6);
sensor_write_register(0x3086, 0x8E01);
sensor_write_register(0x3086, 0x2AF8);
sensor_write_register(0x3086, 0x3E02);
sensor_write_register(0x3086, 0x2AFA);
sensor_write_register(0x3086, 0x3F09);
sensor_write_register(0x3086, 0x5C1B);
sensor_write_register(0x3086, 0x29B2);
sensor_write_register(0x3086, 0x3F0C);
sensor_write_register(0x3086, 0x3E03);
sensor_write_register(0x3086, 0x3E15);
sensor_write_register(0x3086, 0x5C13);
sensor_write_register(0x3086, 0x3F11);
sensor_write_register(0x3086, 0x3E0F);
sensor_write_register(0x3086, 0x5F2B);
sensor_write_register(0x3086, 0x902B);
sensor_write_register(0x3086, 0x803E);
sensor_write_register(0x3086, 0x062A);
sensor_write_register(0x3086, 0xF23F);
sensor_write_register(0x3086, 0x103E);
sensor_write_register(0x3086, 0x0160);
sensor_write_register(0x3086, 0x29A2);
sensor_write_register(0x3086, 0x29A3);
sensor_write_register(0x3086, 0x5F4D);
sensor_write_register(0x3086, 0x1C2A);
sensor_write_register(0x3086, 0xFA29);
sensor_write_register(0x3086, 0x8345);
sensor_write_register(0x3086, 0xA83E);
sensor_write_register(0x3086, 0x072A);
sensor_write_register(0x3086, 0xFB3E);
sensor_write_register(0x3086, 0x2945);
sensor_write_register(0x3086, 0x8824);
sensor_write_register(0x3086, 0x3E08);
sensor_write_register(0x3086, 0x2AFA);
sensor_write_register(0x3086, 0x5D29);
sensor_write_register(0x3086, 0x9288);
sensor_write_register(0x3086, 0x102B);
sensor_write_register(0x3086, 0x048B);
sensor_write_register(0x3086, 0x1686);
sensor_write_register(0x3086, 0x8D48);
sensor_write_register(0x3086, 0x4D4E);
sensor_write_register(0x3086, 0x2B80);
sensor_write_register(0x3086, 0x4C0B);
sensor_write_register(0x3086, 0x3F36);
sensor_write_register(0x3086, 0x2AF2);
sensor_write_register(0x3086, 0x3F10);
sensor_write_register(0x3086, 0x3E01);
sensor_write_register(0x3086, 0x6029);
sensor_write_register(0x3086, 0x8229);
sensor_write_register(0x3086, 0x8329);
sensor_write_register(0x3086, 0x435C);
sensor_write_register(0x3086, 0x155F);
sensor_write_register(0x3086, 0x4D1C);
sensor_write_register(0x3086, 0x2AFA);
sensor_write_register(0x3086, 0x4558);
sensor_write_register(0x3086, 0x8E00);
sensor_write_register(0x3086, 0x2A98);
sensor_write_register(0x3086, 0x3F0A);
sensor_write_register(0x3086, 0x4A0A);
sensor_write_register(0x3086, 0x4316);
sensor_write_register(0x3086, 0x0B43);
sensor_write_register(0x3086, 0x168E);
sensor_write_register(0x3086, 0x032A);
sensor_write_register(0x3086, 0x9C45);
sensor_write_register(0x3086, 0x783F);
sensor_write_register(0x3086, 0x072A);
sensor_write_register(0x3086, 0x9D3E);
sensor_write_register(0x3086, 0x305D);
sensor_write_register(0x3086, 0x2944);
sensor_write_register(0x3086, 0x8810);
sensor_write_register(0x3086, 0x2B04);
sensor_write_register(0x3086, 0x530D);
sensor_write_register(0x3086, 0x4558);
sensor_write_register(0x3086, 0x3E08);
sensor_write_register(0x3086, 0x8E01);
sensor_write_register(0x3086, 0x2A98);
sensor_write_register(0x3086, 0x8E00);
sensor_write_register(0x3086, 0x76A7);
sensor_write_register(0x3086, 0x77A7);
sensor_write_register(0x3086, 0x4644);
sensor_write_register(0x3086, 0x1616);
sensor_write_register(0x3086, 0xA57A);
sensor_write_register(0x3086, 0x1244);
sensor_write_register(0x3086, 0x4B18);
sensor_write_register(0x3086, 0x4A04);
sensor_write_register(0x3086, 0x4316);
sensor_write_register(0x3086, 0x0643);
sensor_write_register(0x3086, 0x1605);
sensor_write_register(0x3086, 0x4316);
sensor_write_register(0x3086, 0x0743);
sensor_write_register(0x3086, 0x1658);
sensor_write_register(0x3086, 0x4316);
sensor_write_register(0x3086, 0x5A43);
sensor_write_register(0x3086, 0x1645);
sensor_write_register(0x3086, 0x588E);
sensor_write_register(0x3086, 0x032A);
sensor_write_register(0x3086, 0x9C45);
sensor_write_register(0x3086, 0x787B);
sensor_write_register(0x3086, 0x3F07);
sensor_write_register(0x3086, 0x2A9D);
sensor_write_register(0x3086, 0x530D);
sensor_write_register(0x3086, 0x8B16);
sensor_write_register(0x3086, 0x863E);
sensor_write_register(0x3086, 0x2345);
sensor_write_register(0x3086, 0x5825);
sensor_write_register(0x3086, 0x3E10);
sensor_write_register(0x3086, 0x8E01);
sensor_write_register(0x3086, 0x2A98);
sensor_write_register(0x3086, 0x8E00);
sensor_write_register(0x3086, 0x3E10);
sensor_write_register(0x3086, 0x8D60);
sensor_write_register(0x3086, 0x1244);
sensor_write_register(0x3086, 0x4BB9);
sensor_write_register(0x3086, 0x2C2C);
sensor_write_register(0x3086, 0x2C2C);
//#LOAD= Default_Settings_12_Aug
//#[Default_Settings_12_Aug]
sensor_write_register(0x30F0, 0x1283);
sensor_write_register(0x3064, 0x1802);
sensor_write_register(0x3EEE, 0xA0AA);
sensor_write_register(0x30BA, 0x762C);
sensor_write_register(0x3FA4, 0x0F70);
sensor_write_register(0x309E, 0x016A);
sensor_write_register(0x3096, 0xF880);
sensor_write_register(0x3F32, 0xF880);
sensor_write_register(0x3092, 0x006F);
sensor_write_register(0x301A, 0x0058);
sensor_write_register(0x30B0, 0x0118);
sensor_write_register(0x31AC, 0x0C0C);
//#LOAD= PLL_settings - 4 Lane 12-bit HiSPi Low Power Mode
//#[PLL_settings - 4 Lane 12-bit HiSPi Low Power Mode]
#if 0
//Actual Pixel Clock: 37.125 MHz
sensor_write_register(0x302A, 0x000C); //vt_pix_clk_div
sensor_write_register(0x302C, 0x0001); //vt_sys_clk_div
sensor_write_register(0x302E, 0x0004); //pre_pll_clk_div
sensor_write_register(0x3030, 0x0042); //pll_multiplier
sensor_write_register(0x3036, 0x000C); //op_pix_clk_div
sensor_write_register(0x3038, 0x0002); //op_sys_clk_div
#else
//Actual Pixel Clock: 74.250 MHz
sensor_write_register(0x302A, 0x0006); //vt_pix_clk_div
sensor_write_register(0x302C, 0x0001); //vt_sys_clk_div
sensor_write_register(0x302E, 0x0004); //pre_pll_clk_div
sensor_write_register(0x3030, 0x0042); //pll_multiplier
sensor_write_register(0x3036, 0x000C); //op_pix_clk_div
sensor_write_register(0x3038, 0x0001); //op_sys_clk_div
#endif
sensor_write_register(0x3002, 0x0000);
sensor_write_register(0x3004, 0x0000);
sensor_write_register(0x3006, 0x0437);
sensor_write_register(0x3008, 0x0787);
sensor_write_register(0x300A, 0x0454);
sensor_write_register(0x300C, 0x045E);
sensor_write_register(0x3012, 0x0416);
sensor_write_register(0x30A2, 0x0001);
sensor_write_register(0x30A6, 0x0001);
sensor_write_register(0x30AE, 0x0001);
sensor_write_register(0x30A8, 0x0001);
sensor_write_register(0x3040, 0x0000);
//#LOAD= Linear Mode Setup
sensor_write_register(0x3082, 0x0009);
//#sensor_write_register(0x30BA 0x762C);
sensor_write_register(0x3096, 0x0080);
sensor_write_register(0x3098, 0x0080);
//#LOAD= Linear Mode Low Conversion Gain
//#LOAD= 1.5x analog Gain
sensor_write_register(0x3060, 0x000B);
sensor_write_register(0x3100, 0x0000);
//#LOAD= Companding Disabled
sensor_write_register(0x31D0, 0x0000);
//#LOAD= AR0230_Rev1_AWB_CCM
//#LOAD= Enable Embedded Data and Stats
//#sensor_write_register(0x3064 0x1982);
sensor_write_register(0x31AE, 0x0304);
sensor_write_register(0x31C6, 0x0400); //choose Packetized-SP protocol
//sensor_write_register(0x306E, 0x9010); //yanwei close it for debug
sensor_write_register(0x306E, 0x9210); //choose HiVcm mode
//#patch start###########################
sensor_write_register(0x3ECC, 0x6E2D);
sensor_write_register(0x3ED2, 0xFE96);
sensor_write_register(0x3ED6, 0x34B3);
sensor_write_register(0x3EEA, 0x2818);
//#patch end ############################
sensor_write_register(0x301A, 0x005C);
delay_ms(33);
printf("Aptina AR0237 sensor linear 2M-1080p 30fps init success!\n");
return ;
}
ar0237_1080p_line.ini文件内容如下:
[sensor]
Sensor_type =ar0237 ;sensor name
Mode =0 ;WDR_MODE_NONE = 0
;WDR_MODE_BUILT_IN = 1
;WDR_MODE_2To1_LINE = 2
;WDR_MODE_2To1_FRAME = 3
;WDR_MODE_2To1_FRAME_FULL_RATE =4 ...etc
DllFile =libs/libsns_ar0237.so ;sensor lib path
[mode]
input_mode =3 ;INPUT_MODE_MIPI = 0
;INPUT_MODE_SUBLVDS = 1
;INPUT_MODE_LVDS = 2 ...etc
dev_attr = 1 ;mipi_dev_attr_t = 0
;lvds_dev_attr_t = 1
;NULL =2
[mipi]
;----------only for mipi_dev---------
data_type =-1 ;raw data type: 8/10/12/14 bit
;RAW_DATA_8BIT = 0
;RAW_DATA_10BIT = 1
;RAW_DATA_12BIT = 2
;RAW_DATA_14BIT = 3
lane_id = 0|1|2|3|-1|-1|-1|-1| ;lane_id: -1 - disable
[lvds]
;----------only for lvds_dev---------
img_size_w = 1920 ;oringnal sensor input image size W
img_size_h = 1080 ;oringnal sensor input image size H
wdr_mode = 0 ;HI_WDR_MODE_NONE =0
;HI_WDR_MODE_2F = 1;HI_WDR_MODE_3F = 2;HI_WDR_MODE_4F =3
;HI_WDR_MODE_DOL_2F = 4;HI_WDR_MODE_DOL_3F = 5;HI_WDR_MODE_DOL_4F = 6
sync_mode = 0 ;LVDS_SYNC_MODE_SOL = 0
;LVDS_SYNC_MODE_SAV = 1
raw_data_type = 2 ;RAW_DATA_8BIT = 0
;RAW_DATA_10BIT = 1
;RAW_DATA_12BIT = 2
;RAW_DATA_14BIT = 3
data_endian = 0 ;LVDS_ENDIAN_LITTLE = 0
;LVDS_ENDIAN_BIG = 1
sync_code_endian =0 ;LVDS_ENDIAN_LITTLE = 0
;LVDS_ENDIAN_BIG = 1
lane_id = 0|1|2|3|-1|-1|-1|-1| ;lane_id: -1 - disable
lvds_lane_num = 8 ;LVDS_LANE_NUM
wdr_vc_num = 4 ;WDR_VC_NUM
sync_code_num = 4 ;SYNC_CODE_NUM
sync_code_0 = 0x003|0x007|0x001|0x005|0x043|0x047|0x041|0x045|0x023|0x027|0x021|0x025|0x083|0x087|0x081|0x085|
sync_code_1 = 0x003|0x007|0x001|0x005|0x043|0x047|0x041|0x045|0x023|0x027|0x021|0x025|0x083|0x087|0x081|0x085|
sync_code_2 = 0x003|0x007|0x001|0x005|0x043|0x047|0x041|0x045|0x023|0x027|0x021|0x025|0x083|0x087|0x081|0x085|
sync_code_3 = 0x003|0x007|0x001|0x005|0x043|0x047|0x041|0x045|0x023|0x027|0x021|0x025|0x083|0x087|0x081|0x085|
sync_code_4 = 0x003|0x007|0x001|0x005|0x043|0x047|0x041|0x045|0x023|0x027|0x021|0x025|0x083|0x087|0x081|0x085|
sync_code_5 = 0x003|0x007|0x001|0x005|0x043|0x047|0x041|0x045|0x023|0x027|0x021|0x025|0x083|0x087|0x081|0x085|
sync_code_6 = 0x003|0x007|0x001|0x005|0x043|0x047|0x041|0x045|0x023|0x027|0x021|0x025|0x083|0x087|0x081|0x085|
sync_code_7 = 0x003|0x007|0x001|0x005|0x043|0x047|0x041|0x045|0x023|0x027|0x021|0x025|0x083|0x087|0x081|0x085|
[isp_image]
Isp_x =0
Isp_y =0
Isp_W =1920
Isp_H =1080
Isp_FrameRate=25
Isp_Bayer =1 ;BAYER_RGGB=0, BAYER_GRBG=1, BAYER_GBRG=2, BAYER_BGGR=3
[vi_dev]
Input_mod =5 ;VI_INPUT_MODE_BT656 = 0
;VI_INPUT_MODE_BT601,
;VI_INPUT_MODE_DIGITAL_CAMERA
Work_mod =0 ;VI_WORK_MODE_1Multiplex = 0
;VI_WORK_MODE_2Multiplex,
;VI_WORK_MODE_4Multiplex
Combine_mode =0 ;Y/C composite or separation mode
;VI_COMBINE_COMPOSITE = 0 /*Composite mode */
;VI_COMBINE_SEPARATE, /*Separate mode */
Comp_mode =0 ;Component mode (single-component or dual-component)
;VI_COMP_MODE_SINGLE = 0, /*single component mode */
;VI_COMP_MODE_DOUBLE = 1, /*double component mode */
Clock_edge =1 ;Clock edge mode (sampling on the rising or falling edge)
;VI_CLK_EDGE_SINGLE_UP=0, /*rising edge */
;VI_CLK_EDGE_SINGLE_DOWN, /*falling edge */
Mask_num =2 ;Component mask
Mask_0 =0xFFF00000
Mask_1 =0x0
Scan_mode = 1;VI_SCAN_INTERLACED = 0
;VI_SCAN_PROGRESSIVE,
Data_seq =2 ;data sequence (ONLY for YUV format)
;----2th component U/V sequence in bt1120
; VI_INPUT_DATA_VUVU = 0,
; VI_INPUT_DATA_UVUV,
;----input sequence for yuv
; VI_INPUT_DATA_UYVY = 0,
; VI_INPUT_DATA_VYUY,
; VI_INPUT_DATA_YUYV,
; VI_INPUT_DATA_YVYU
Vsync =1 ; vertical synchronization signal
;VI_VSYNC_FIELD = 0,
;VI_VSYNC_PULSE,
VsyncNeg=0 ;Polarity of the vertical synchronization signal
;VI_VSYNC_NEG_HIGH = 0,
;VI_VSYNC_NEG_LOW /*if VIU_VSYNC_E
Hsync =0 ;Attribute of the horizontal synchronization signal
;VI_HSYNC_VALID_SINGNAL = 0,
;VI_HSYNC_PULSE,
HsyncNeg =0 ;Polarity of the horizontal synchronization signal
;VI_HSYNC_NEG_HIGH = 0,
;VI_HSYNC_NEG_LOW
VsyncValid =1 ;Attribute of the valid vertical synchronization signal
;VI_VSYNC_NORM_PULSE = 0,
;VI_VSYNC_VALID_SINGAL,
VsyncValidNeg =0;Polarity of the valid vertical synchronization signal
;VI_VSYNC_VALID_NEG_HIGH = 0,
;VI_VSYNC_VALID_NEG_LOW
Timingblank_HsyncHfb =0 ;Horizontal front blanking width
Timingblank_HsyncAct =1920 ;Horizontal effetive width
Timingblank_HsyncHbb =0 ;Horizontal back blanking width
Timingblank_VsyncVfb =0 ;Vertical front blanking height
Timingblank_VsyncVact =1080 ;Vertical effetive width
Timingblank_VsyncVbb=0 ;Vertical back blanking height
Timingblank_VsyncVbfb =0 ;Even-field vertical front blanking height(interlace, invalid progressive)
Timingblank_VsyncVbact=0 ;Even-field vertical effetive width(interlace, invalid progressive)
Timingblank_VsyncVbbb =0 ;Even-field vertical back blanking height(interlace, invalid progressive)
;----- only for bt656 ----------
FixCode =0 ;BT656_FIXCODE_1 = 0,
;BT656_FIXCODE_0
FieldPolar=0 ;BT656_FIELD_POLAR_STD = 0
;BT656_FIELD_POLAR_NSTD
DataPath =1 ;ISP enable or bypass
;VI_PATH_BYPASS = 0,/* ISP bypass */
;VI_PATH_ISP = 1,/* ISP enable */
;VI_PATH_RAW = 2,/* Capture raw data, for debug */
InputDataType=1 ;VI_DATA_TYPE_YUV = 0,VI_DATA_TYPE_RGB = 1,
DataRev =FALSE ;Data reverse. FALSE = 0; TRUE = 1
DevRect_x=0 ;
DevRect_y=0 ;
DevRect_w=1920 ;
DevRect_h=1080 ;
[vi_chn]
CapRect_X =0
CapRect_Y =0
CapRect_Width=1920
CapRect_Height=1080
DestSize_Width=1920
DestSize_Height=1080
CapSel =2 ;Frame/field select. ONLY used in interlaced mode
;VI_CAPSEL_TOP = 0, /* top field */
;VI_CAPSEL_BOTTOM, /* bottom field */
;VI_CAPSEL_BOTH, /* top and bottom field */
PixFormat =23;PIXEL_FORMAT_YUV_SEMIPLANAR_422 = 22
;PIXEL_FORMAT_YUV_SEMIPLANAR_420 = 23 ...etc
CompressMode =0 ;COMPRESS_MODE_NONE = 0
;COMPRESS_MODE_SEG =1 ...etc
SrcFrameRate=-1 ;Source frame rate. -1: not controll
FrameRate =-1 ;Target frame rate. -1: not controll
[wdr]
;only for wdr mode
Compress =FALSE ;WDR Compress. FALSE = 0; TRUE = 1
[vpss_group]
Vpss_DciEn =FALSE
Vpss_IeEn =FALSE
Vpss_NrEn =TRUE
Vpss_HistEn =FALSE
Vpss_DieMode=1 ;Define de-interlace mode
;VPSS_DIE_MODE_AUTO = 0,
;VPSS_DIE_MODE_NODIE = 1,
;VPSS_DIE_MODE_DIE = 2,
[vpss_corp]
Crop_enable =FALSE
Coordinate =1 ;VPSS_CROP_RATIO_COOR = 0, /*Ratio coordinate*/
;VPSS_CROP_ABS_COOR = 1 /*Absolute coordinate*/
Crop_X =128
Crop_Y =128
Crop_W =1664
Crop_H =824
[vpss_chn]
Vpss_W =1920
Vpss_H =1080
CompressMode=0 ;COMPRESS_MODE_NONE = 0
;COMPRESS_MODE_SEG =1 ...etc
Mirror =FALSE;Whether to mirror
Flip =FALSE;Whether to flip
[vb_conf]
VbCnt=10
[venc_comm]
venc_chn =1 ;create venc chn number;(0,2]
BufCnt = 1 ;network meida-trans bufcnt
[venc_0]
PicWidth =1920
PicHeight =1080
Profile =2
RcMode =VENC_RC_MODE_H264CBR
Gop =50
StatTime =2
ViFrmRate =25
TargetFrmRate=25
;----- only for VENC_RC_MODE_H264CBR ----------
BitRate=4096
FluctuateLevel=1
;----- only for VENC_RC_MODE_H264VBR ----------
MaxBitRate =10000
MaxQp=32
MinQp=24
;----- only for VENC_RC_MODE_H264FIXQP ----------
IQp=32
PQp=35
[venc_1]
PicWidth =1920
PicHeight =1080
Profile =2
RcMode =VENC_RC_MODE_H264CBR
Gop =50
StatTime =2
ViFrmRate =25
TargetFrmRate=25
;----- only for VENC_RC_MODE_H264CBR ----------
BitRate=4096
FluctuateLevel=1
;----- only for VENC_RC_MODE_H264VBR ----------
MaxBitRate =10000
MaxQp=32
MinQp=24
;----- only for VENC_RC_MODE_H264FIXQP ----------
IQp=32
PQp=35
[bind]
ViDev =0
ViChn =0
VpssGrp =0
VpssChn = 0
VoDev =0
VoChn =0
ViSnapChn =0
VpssSnapGrp=0
VpssSnapChn=1
VencSnapGrp=1
VencSnapChn=3
我来回答
回答1个
时间排序
认可量排序
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2016-09-29 20:25:44
-
2016-10-12 11:17:17
-
2016-10-12 16:08:22
-
2016-07-18 10:01:59
-
2016-10-06 13:16:37
-
2019-04-25 15:37:44
-
2016-12-20 15:08:01
-
2016-08-22 22:42:48
-
2021-03-05 17:09:29
-
2016-11-17 20:05:13
-
2017-12-15 18:15:02
-
2019-01-21 14:39:11
-
2019-01-21 14:38:49
-
2020-11-12 11:17:09
-
2021-01-02 10:29:54
-
2016-08-04 15:12:21
-
2016-08-30 18:53:24
-
2016-09-28 17:41:41
-
2017-08-08 16:18:20
-
252015-01-23 01:53:02
更多相似问答
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5Hi3516CV610 如何使用SD卡升级固件
-
5cat /dev/logmpp 报错 <3>[ vi] [func]:vi_send_frame_node [line]:99 [info]:vi pic queue is full!
-
50如何获取vpss chn的图像修改后发送至vo
-
5FPGA通过Bt1120传YUV422数据过来,vi接收不到数据——3516dv500
-
50SS928 运行PQtools 拼接 推到设备里有一半画面会异常
-
53536AV100的sample_vdec输出到CVBS显示
-
10海思板子mpp怎么在vi阶段改变视频数据尺寸
-
10HI3559AV100 多摄像头同步模式
-
9海思ss928单路摄像头vio中加入opencv处理并显示
-
10EB-RV1126-BC-191板子运行自己编码的程序
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认