diff options
Diffstat (limited to 'drivers/media/video/wmt_v4l2/sensors/bf3703/bf3703.h')
-rwxr-xr-x | drivers/media/video/wmt_v4l2/sensors/bf3703/bf3703.h | 269 |
1 files changed, 269 insertions, 0 deletions
diff --git a/drivers/media/video/wmt_v4l2/sensors/bf3703/bf3703.h b/drivers/media/video/wmt_v4l2/sensors/bf3703/bf3703.h new file mode 100755 index 00000000..40f4933f --- /dev/null +++ b/drivers/media/video/wmt_v4l2/sensors/bf3703/bf3703.h @@ -0,0 +1,269 @@ +
+// Scene Mode
+uint8_t bf3703_scene_mode_auto[] = {
+ 0x8e,0x0d, //0x07
+ 0x8f,0xf2 //0x79
+};
+
+uint8_t bf3703_scene_mode_night[] = {
+ 0x8e,0x0e,
+ 0x8f,0xf2,
+};
+
+
+// White Balance
+uint8_t bf3703_wb_auto [] = {
+ 0x13,0x07,
+};
+
+uint8_t bf3703_wb_incandescent [] = {
+ 0x13,0x05,
+ 0x01, 0x1f,
+ 0x02, 0x15,
+};
+
+uint8_t bf3703_wb_fluorescent [] = {
+ 0x13,0x05,
+ 0x01, 0x1a,
+ 0x02, 0x1e,
+};
+
+uint8_t bf3703_wb_daylight [] = {
+ 0x13,0x05,
+ 0x01, 0x13,
+ 0x02, 0x26,
+};
+
+uint8_t bf3703_wb_cloudy [] = {
+ 0x13,0x05,
+ 0x01, 0x10,
+ 0x02, 0x28,
+};
+
+
+// Exposure
+uint8_t bf3703_exposure_neg6[] = {
+0x55, 0xa8,
+};
+
+uint8_t bf3703_exposure_neg3[] = {
+0x55, 0x98,
+};
+
+uint8_t bf3703_exposure_zero[] = {
+0x55, 0x00,
+};
+
+uint8_t bf3703_exposure_pos3[] = {
+0x55, 0x10,
+};
+
+uint8_t bf3703_exposure_pos6[] = {
+0x55, 0x20,
+};
+
+
+// Resolution
+uint8_t bf3703_320x240[]= {
+ 0x12, 0x10,
+
+};
+
+uint8_t bf3703_640x480[] = {
+ 0x12, 0x00,
+};
+
+uint8_t bf3703_default_regs_init[] = {
+
+ 0xff , 0xff,
+ // 0x12 , 0x80,
+ 0x15 , 0x00, //byd add 20120628
+ 0x3a , 0x00, //byd add 20120628
+
+ 0x11 , 0x80, //0x80
+ 0x13 , 0x00,
+ 0x01 , 0x15,
+ 0x02 , 0x24,
+ 0x8c , 0x02,//01 :devided by 2 02 :devided by 1
+ 0x8d , 0x64,//32: devided by 2 64 :devided by 1
+ 0x87 , 0x18,
+ 0x13 , 0x07,
+
+ //black level , 对上电偏绿有改善 , 如果需要请使用
+
+ 0x05 , 0x1f,
+ 0x06 , 0x60,
+ 0x14 , 0x1f,
+ 0x27 , 0x03,
+ 0x06 , 0xe0,
+
+ //lens shading
+ 0x35 , 0x68,
+ 0x65 , 0x68,
+ 0x66 , 0x62,
+ 0x36 , 0x05,
+ 0x37 , 0xf6,
+ 0x38 , 0x46,
+ 0x9b , 0xf6,
+ 0x9c , 0x46,
+ 0xbc , 0x01,
+ 0xbd , 0xf6,
+ 0xbe , 0x46,
+
+ //AE
+ 0x82 , 0x14,
+ 0x83 , 0x23,
+ 0x9a , 0x23, //the same as 0x83
+ 0x84 , 0x1a,
+ 0x85 , 0x20,
+ 0x89 , 0x04, //02 :devided by 2 04 :devided by 1
+ 0x8a , 0x08, //04: devided by 2 05 :devided by 1
+ 0x86 , 0x28,
+ 0x96 , 0xa6, //AE speed
+ 0x97 , 0x0c, //AE speed
+ 0x98 , 0x18, //AE speed
+ //AE target
+ 0x24 , 0x6a, //78 //0x6a
+ 0x25 , 0x7a, //88 //0x7a
+ 0x94 , 0x0a, //INT_OPEN
+ 0x80 , 0x55,
+
+ //denoise
+ 0x70 , 0xff,//denoise //0x6f
+ 0x72 , 0x6f,//denoise //0x4f
+ 0x73 , 0x4f,//denoise //0x2f
+ 0x74 , 0x38,//denoise //0x27
+ 0x77 , 0x90,//去除格子噪声
+ 0x7a , 0x0e,//denoise in low light , 0x8e\0x4e\0x0e
+ 0x7b , 0x28,//the same as 0x86
+
+ //black levl
+ 0X1F , 0x20, //G target
+ 0X22 , 0x20, //R target
+ 0X26 , 0x20, //B target
+ // 模拟部分参数
+ 0X16 , 0x03, //如果觉得黑色物体不够黑,有点偏红,将0x16写为0x03会有点改善
+ 0xbb , 0x20, // deglitch 对xclk整形
+ 0xeb , 0x30,
+ 0xf5 , 0x21,
+ 0xe1 , 0x3c,
+ 0xbb , 0x20,
+ 0X2f , 0Xf6,
+ 0x06 , 0xe0,
+
+ //anti black sun spot
+ 0x61 , 0xd3, //0x61[3]=0 black sun disable
+ 0x79 , 0x48, //0x79[7]=0 black sun disable
+
+ //contrast
+ 0x56 , 0x40,
+
+ //Gamma
+ 0x3b , 0x58, //auto gamma offset adjust in low light
+ 0x3c , 0x20, //auto gamma offset adjust in low light
+ //0x56 , 0x48,
+ 0x39 , 0x80,
+
+ //gamma 4 low noise
+ 0X3f , 0Xb8, //0xa8
+ 0X40 , 0X48,
+ 0X41 , 0X54,
+ 0X42 , 0X4E,
+ 0X43 , 0X44,
+ 0X44 , 0X3E,
+ 0X45 , 0X39,
+ 0X46 , 0X35,
+ 0X47 , 0X31,
+ 0X48 , 0X2E,
+ 0X49 , 0X2B,
+ 0X4b , 0X29,
+ 0X4c , 0X27,
+ 0X4e , 0X23,
+ 0X4f , 0X20,
+ 0X50 , 0X20,
+
+ //适中
+ 0x51 , 0x08,
+ 0x52 , 0x0E,
+ 0x53 , 0x06,
+ 0x54 , 0x12,
+ 0x57 , 0x82,
+ 0x58 , 0x70,
+ 0x59 , 0x5C,
+ 0x5a , 0x77,
+ 0x5b , 0x1B,
+ 0x5c , 0x0e, //0x5c[3:0] low light color coefficient,smaller , lower noise
+ 0x5d , 0x95,
+
+ 0x60 , 0x20,//color open in low light
+ //AWB
+ 0x6a , 0x81,//如果肤色偏色,将0x6a写为0x81. //0x01
+ 0x23 , 0x66,//Green gain
+ 0xa0 , 0x07,//0xa0写0x03,黑色物体更红;0xa0写0x07,黑色物体更黑;
+
+ 0xa1 , 0X41,//
+ 0xa2 , 0X0e,
+ 0xa3 , 0X26,
+ 0xa4 , 0X0d,
+ //冷色调
+ //0xa5 , 0x26,//The upper limit of red gain
+ 0xa5 , 0x2d, ///*暖色调*/
+
+ 0xa6 , 0x04,
+ 0xa7 , 0x82,//BLUE Target///0x80
+ 0xa8 , 0x7f,//RED Target
+ 0xa9 , 0x28,
+ 0xaa , 0x28,
+ 0xab , 0x28,
+ 0xac , 0x3c,
+ 0xad , 0xf0,
+ 0xc8 , 0x18,
+ 0xc9 , 0x20,
+ 0xca , 0x17,
+ 0xcb , 0x1f,
+ 0xaf , 0x00,
+ 0xc5 , 0x18,
+ 0xc6 , 0x00,
+ 0xc7 , 0x20,
+ 0xae , 0x83,//如果照户外偏蓝,将此寄存器0xae写为0x81。
+ 0xcc , 0x30,
+ 0xcd , 0x70,
+ 0xee , 0x4c,// P_TH
+
+ // color sauration
+ 0xb0 , 0xd0,
+ //0xb1 , 0xc0,
+ //0xb2 , 0xaa,
+
+ // 饱和度艳丽
+ 0xb1 , 0xd0,
+ 0xb2 , 0xc0,
+
+ 0xb3 , 0x88,
+
+ //anti webcmera banding
+ 0x9d , 0x82, //0x4c //updata by yang.chunming@byd.com 2013.12.3 16:27
+ 0x9e , 0x6c, //add by yang.chunming@byd.com 2013.12.3 16:27
+ //switch diection
+
+ 0x1e , 0x00, //00:normal 10:IMAGE_V_MIRROR 20:IMAGE_H_MIRROR 30:IMAGE_HV_MIRROR
+
+ //set max 15fps
+ 0x92 , 0xa0,
+ 0x93 , 0x00,
+ 0x2a , 0x00, //0x10
+ 0x2b , 0x88,
+
+ 0x8e ,0x0d, //0x07 set fps as auto mode by yang.chunming@byd.com 2013.12.03
+ 0x8f ,0xf2,
+ //0x8e , 0X03,
+ //0x8f , 0Xfb, //set min 10fps
+
+ 0x20 , 0x40,
+ 0x09 , 0xc1,
+
+};
+
+uint8_t bf3703_default_regs_exit[]={
+};
+//#endif
|