ov9650.h

来自「freescale MX21 0V9650摄像头驱动程序」· C头文件 代码 · 共 61 行

H
61
字号
/*
*
*	MX21 OV9650 Driver
*
*	cliff.wong@motorola.com3
*	16 Jun, 04
*/

typedef struct
{
	int color_format;
	int vert_mirror;
	int hori_mirror;
	int out_width;
	int out_height;
	int test_pattern_enable;
		//0: off, 1: color bar, 2: black, 3: white, 4: gray
	
	int gain_green1;
	int gain_blue;
	int gain_red;
	int gain_green2;
	int gain_global;
		//gains -- scaled up by SCALEFAC to avoid using floating point
		//i.e. 1.0->100
	int gamma;
		//gamma -- scaled up by SCALEFAC to avoid using floating point
		//i.e. 1.0->100
	int sharpening;
		//sharpening percentage -- 0, 25, 50, 75, 100, 125, 150, 200
	int colorsat;
		//UV color saturation percentage -- 0, 25, 50, 75, 100, 150, -1(black & white)
	
	int awb_left;
	int awb_right;
	int awb_top;
	int awb_bottom;
	int fps;
		//frame rate: 0 = disable,  i.e. variable frame rate
	
} OV9650_CFG;

#define SCALEFAC 100
	//scale factor -- scaled up by SCALEFAC times to avoid using floating point
	//i.e. 1.0->100


#ifndef YUV
	#define YUV 1
#endif

#ifndef RGB
	#define RGB 0
#endif

//contro commands
#define OV9650_IOC_CONFIG	10
#define OV9650_IOC_I2C_TEST	11


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?