📄 im8012.h
字号:
/*
* MX21 IM8012 driver
*
* 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.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Copyright (C) 2004 Motorola Semiconductors Hong Kong.
*
*/
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
int afc_freq;
//auto flicker cancellation freq, 0 = disable, cancel for 50 = 50Hz, 60 = 60Hz
int capture_width;
int capture_height;
} IM8012_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
//control commands
#define IM8012_IOC_CONFIG 10
#define IM8012_IOC_I2C_TEST 11
#define IM8012_IOC_READ_CONFIG 12
#define IM8012_IOC_SET_CAPTURE_MODE 13
#define IM8012_IOC_STANDBY 14
#define IM8012_IOC_SET_PREVIEW_MODE 15
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -