ov2640.h

来自「linux pxa270 ov2640 驱动实例」· C头文件 代码 · 共 61 行

H
61
字号
/* ovpxacamera - header file for ov2640 driver 
 *	
 * Copyrith (c) 2006, OmniVision
 * 	
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation; either version 2 of the License, or (at your
 * option) any later version. NO WARRANTY OF ANY KIND is expressed or implied.
 *
 * OmniVision is a trademark of OmniVision Technologies, Inc. 
 *
 *  Version 1.00   Jun.30.2006   david zhu
 *					      david@ovt.com.cn
 */ 

#ifndef _LINUX_OV2640_H_
#define _LINUX_OV2640_H_

#define OV2640_MAX_WIDTH	1600
#define OV2640_MAX_HEIGHT	1200

#define OV2640_MAXLEVEL_BRIGHTNESS	8
#define OV2640_MAXLEVEL_CONTRAST		8
#define OV2640_MAXLEVEL_SHARPNESS	6
#define OV2640_MAXLEVEL_SATURATION 	8
#define OV2640_MAXLEVEL_HUE 			4
#define OV2640_MAXLEVEL_WHITEBALANCE	4
#define OV2640_MAXLEVEL_SPECIALEFFECT	6

#define OV2640_MAXLEVEL_FRAMERATE	15

#define OV2640_MAXLEVEL_ZOOM			22

int camerachip_ip_init( void );

int camerachip_ip_set_format(unsigned int width, unsigned int height, int format);
int camerachip_ip_stream_on( void );
int camerachip_ip_stream_off( void );

int camerachip_ip_flip( int flip );
int camerachip_ip_mirror( int mirror );

int camerachip_ip_brightness(  int brightness );
int camerachip_ip_sharpness(  int sharpness );
int camerachip_ip_hue(  int brightness );
int camerachip_ip_saturation(  int saturation );
int camerachip_ip_contrast(  int contrast );
int camerachip_ip_specialeffect(  int specialeffect );
int camerachip_ip_gamma(  int gamma );

int camerachip_ip_whitebalance( int whitebalance  );
int camerachip_ip_framerate(  int framerate );
int camerachip_ip_lightfrequency( int lightfrequency );

int camerachip_ip_zoom( u8 zoom );

int camerachip_ip_debug( void );

#endif

⌨️ 快捷键说明

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