⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 camera_info.c

📁 MTK6225 摄像头驱动 OV7660
💻 C
📖 第 1 页 / 共 2 页
字号:
/*****************************************************************************
*  Copyright Statement:
*  --------------------
*  This software is protected by Copyright and the information contained
*  herein is confidential. The software may not be copied and the information
*  contained herein may not be used or disclosed except with the written
*  permission of MediaTek Inc. (C) 2005
*
*  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
*  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
*  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
*  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
*  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
*  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
*  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
*  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
*  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
*  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
*  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
*  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
*  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
*  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
*  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
*  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
*  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. 
*
*  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
*  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
*  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
*  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
*  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/

/*****************************************************************************
 *
 * Filename:
 * ---------
 *   camera_info.c
 *
 * Project:
 * --------
 *   Maui_Software
 *
 * Description:
 * ------------
 *   Camera information 
 *
 * Author:
 * -------
 * -------
 *
 *============================================================================
 *             HISTORY
 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
 *------------------------------------------------------------------------------
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 *------------------------------------------------------------------------------
 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
 *============================================================================
 ****************************************************************************/
#if defined(ISP_SUPPORT)
#include "drv_comm.h"
#include "stdio.h"
#include "isp_if.h"
#include "image_sensor.h"
#include "sccb.h"
#include "ae_awb.h"
#include "camera_para.h"
#include "med_api.h"

//#ifdef ISO_PRIORITY_MODE_SUPPORT
ae_iso_sensor_gain_struct ae_iso_sensor_gain_info = {0, 0};
//#endif

dsc_info_struct	dsc_support_info={
	{1,0,0,0,1,1,0,0,0},								/* dscmode: 9 AE Mode */
	{0,0},												/* dsccomp: flash / af */
	{0,0,0,0},											/* flashlight: 4 flash mode */
	{0,0,0,0}};											/* af: 4 af mode */
	
device_info_struct device_support_info={
/* ae_info: step num/step/minEV/maxEV/No.Iris */	
	{121,100,4000,16000,1},							
/* flash_info: pol/lumIdx/duty/offset/shutter/minShut/maxShut/R/G/B/sensorgain/ispgain */	
	{0,6,560,1200,2672,2112,2840,143,128,129,256,64}};	

kal_bool const APERTURE_PRI_TABLE[AV_NO]={0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
kal_bool const ISO_PRI_TABLE[ISO_NO]={1,1,1};
kal_uint16 const ISO_INFO_TABLE[ISO_NO]={64,64,64};

const exposure_lut_struct AE_AUTO_60HZ[121]={
{690 	,256 	,127 }, 
{690 	,256 	,118 }, 
{690 	,256 	,111 }, 
{690 	,256 	,103 }, 
{690 	,256 	,96  }, 
{690 	,256 	,90  }, 
{690 	,256 	,84  }, 
{690 	,256 	,78  }, 
{690 	,256 	,73  }, 
{690 	,256 	,68  }, 
{690 	,128 	,127 }, 
{690 	,128 	,119 }, 
{690 	,128 	,111 }, 
{690 	,128 	,103 }, 
{690 	,128 	,96  }, 
{690 	,128 	,90  }, 
{690 	,128 	,84  }, 
{690 	,128 	,78  }, 
{690 	,128 	,73  }, 
{690 	,128 	,68  }, 
{690 	,128 	,64  }, 
{621 	,128 	,66  }, 
{621 	,124 	,63  }, 
{552 	,128 	,64  }, 
{552 	,120 	,64  }, 
{483 	,128 	,64  }, 
{483 	,120 	,64  }, 
{414 	,128 	,65  }, 
{414 	,120 	,65  }, 
{345 	,128 	,68  }, 
{345 	,128 	,63  }, 
{345 	,120 	,63  }, 
{276 	,128 	,69  }, 
{276 	,128 	,64  }, 
{276 	,120 	,64  }, 
{276 	,112 	,64  }, 
{207 	,128 	,70  }, 
{207 	,128 	,65  }, 
{207 	,124 	,63  }, 
{207 	,112 	,65  }, 
{138 	,128 	,79  }, 
{138 	,128 	,74  }, 
{138 	,128 	,69  }, 
{138 	,128 	,64  }, 
{138 	,120 	,64  }, 
{138 	,112 	,64  }, 
{138 	,104 	,65  }, 
{138 	,96 	,65  }, 
{69 	,128 	,92  }, 
{69 	,128 	,86  }, 
{69 	,128 	,79  }, 
{69 	,128 	,74  }, 
{69 	,128 	,69  }, 
{69 	,128 	,64  }, 
{69 	,120 	,64  }, 
{69 	,112 	,64  }, 
{69 	,104 	,64  }, 
{69 	,100 	,63  }, 
{69 	,92 	,63  }, 
{69 	,84 	,65  }, 
{69 	,80 	,63  }, 
{69 	,76 	,62  }, 
{69 	,68 	,65  }, 
{69 	,64 	,64  }, 
{65 	,64 	,64  }, 
{60 	,64 	,64  }, 
{56 	,64 	,64  }, 
{53 	,64 	,64  }, 
{49 	,64 	,64  }, 
{46 	,64 	,64  }, 
{43 	,64 	,64  }, 
{40 	,64 	,64  }, 
{37 	,64 	,64  }, 
{35 	,64 	,63  }, 
{32 	,64 	,65  }, 
{30 	,64 	,64  }, 
{28 	,64 	,64  }, 
{26 	,64 	,65  }, 
{25 	,64 	,63  }, 
{23 	,64 	,64  }, 
{21 	,64 	,65  }, 
{20 	,64 	,64  }, 
{19 	,64 	,63  }, 
{17 	,64 	,65  }, 
{16 	,64 	,65  }, 
{15 	,64 	,64  }, 
{14 	,64 	,64  }, 
{13 	,64 	,65  }, 
{12 	,64 	,65  }, 
{11 	,68 	,63  }, 
{11 	,64 	,62  }, 
{10 	,64 	,64  }, 
{9 	,68 	,62  }, 
{9 	,64 	,62  }, 
{8 	,64 	,65  }, 
{8 	,64 	,60  }, 
{7 	,64 	,64  }, 
{7 	,64 	,60  }, 
{6 	,64 	,65  },    
{6 	,64 	,61  },    
{5 	,68 	,64  },    
{5 	,64 	,64  },    
{5 	,64 	,60  },    
{4 	,68 	,65  },    
{4 	,64 	,65  },    
{4 	,64 	,60  },    
{3 	,64 	,75  },    
{3 	,72 	,62  },    
{3 	,64 	,65  },    
{3 	,64 	,61  },    
{3 	,64 	,57  },    
{2 	,80 	,64  },    
{2 	,64 	,75  },    
{2 	,68 	,65  },    
{2 	,64 	,65  },    
{2 	,64 	,60  },    
{1 	,64 	,112 },    
{1 	,64 	,106 },    
{1 	,64 	,98  },    
{1 	,92 	,64  },    
{1 	,84 	,65  }};

const exposure_lut_struct AE_AUTO_60HZ_NIGHT[121]={
{1380 ,256 	,127 }, 
{1380 ,256 	,118 }, 
{1380 ,256 	,111 }, 
{1380 ,256 	,103 }, 
{1380 ,256 	,96  }, 
{1380 ,256 	,90  }, 
{1380 ,256 	,84  }, 
{1380 ,256 	,78  }, 
{1380 ,256 	,73  }, 
{1380 ,256 	,68  }, 
{1380 ,128 	,127 }, 
{1380 ,128 	,119 }, 
{1380 ,128 	,111 }, 
{1380 ,128 	,103 }, 
{1380 ,128 	,96  }, 
{1380 ,128 	,90  }, 
{1380 ,128 	,84  }, 
{1380 ,128 	,78  }, 
{1380 ,128 	,73  }, 
{1380 ,128 	,68  }, 
{1380 ,128 	,64  }, 
{1242 ,128 	,66  }, 
{1173 ,128 	,65  }, 
{1104 ,128 	,64  }, 
{1035 ,128 	,64  }, 
{966 	,128 	,64  }, 
{897 	,128 	,65  }, 
{828 	,128 	,65  }, 
{759 	,128 	,66  }, 
{759 	,124 	,64  }, 
{690 	,128 	,63  }, 
{621 	,128 	,66  }, 
{621 	,124 	,63  }, 
{552 	,128 	,64  }, 
{552 	,120 	,64  }, 
{483 	,128 	,64  }, 
{483 	,120 	,63  }, 
{414 	,128 	,65  }, 
{414 	,120 	,65  }, 
{345 	,128 	,68  }, 
{345 	,128 	,63  }, 
{345 	,120 	,63  }, 
{276 	,128 	,69  }, 
{276 	,128 	,64  }, 
{276 	,120 	,64  }, 
{276 	,112 	,64  }, 
{207 	,128 	,70  }, 
{207 	,128 	,65  }, 
{207 	,124 	,63  }, 
{207 	,112 	,65  }, 
{138 	,128 	,79  }, 
{138 	,128 	,74  }, 
{138 	,128 	,69  }, 
{138 	,128 	,64  }, 
{138 	,120 	,64  }, 
{138 	,112 	,64  }, 
{138 	,104 	,65  }, 
{138 	,96 	,65  }, 
{69 	,128 	,92  }, 
{69 	,128 	,86  }, 
{69 	,128 	,79  }, 
{69 	,128 	,74  }, 
{69 	,128 	,69  }, 
{69 	,128 	,64  }, 
{69 	,120 	,64  }, 
{69 	,112 	,64  }, 
{69 	,104 	,64  }, 
{69 	,100 	,63  }, 
{69 	,92 	,63  }, 
{69 	,84 	,65  }, 
{69 	,80 	,63  }, 
{69 	,76 	,62  }, 
{69 	,68 	,65  }, 
{69 	,64 	,64  }, 
{65 	,64 	,64  }, 
{60 	,64 	,64  }, 
{56 	,64 	,64  }, 
{53 	,64 	,64  }, 
{49 	,64 	,64  }, 
{46 	,64 	,64  }, 
{43 	,64 	,64  }, 
{40 	,64 	,64  }, 
{37 	,64 	,64  }, 
{35 	,64 	,63  }, 
{32 	,64 	,65  }, 
{30 	,64 	,64  }, 
{28 	,64 	,64  }, 
{26 	,64 	,65  }, 
{25 	,64 	,63  }, 
{23 	,64 	,64  }, 
{21 	,64 	,65  }, 
{20 	,64 	,64  }, 
{19 	,64 	,63  }, 
{17 	,64 	,65  }, 
{16 	,64 	,65  }, 
{15 	,64 	,64  }, 
{14 	,64 	,64  }, 
{13 	,64 	,65  }, 
{12 	,64 	,65  }, 
{11 	,68 	,63  }, 
{11 	,64 	,62  }, 
{10 	,64 	,64  }, 
{9 	,68 	,62  }, 
{9 	,64 	,62  }, 
{8 	,64 	,65  }, 
{8 	,64 	,60  }, 
{7 	,64 	,64  }, 
{7 	,64 	,60  }, 
{6 	,64 	,65  },    
{6 	,64 	,61  },    
{5 	,68 	,64  },    
{5 	,64 	,64  },    
{4 	,76 	,62  },    
{4 	,68 	,65  },    
{4 	,64 	,65  },    
{4 	,64 	,60  },    
{3 	,76 	,63  },    
{3 	,72 	,62  },    
{3 	,64 	,65  },    
{3 	,64 	,61  },    
{3 	,64 	,57  }};    

const exposure_lut_struct AE_AUTO_50HZ[121]={
{664 	,256 	,123 }, 
{664 	,256 	,115 }, 
{664 	,256 	,107 }, 
{664 	,256 	,100 }, 
{664 	,256 	,93  }, 
{664 	,256 	,87  }, 
{664 	,256 	,81  }, 
{664 	,256 	,76  }, 
{664 	,256 	,71  }, 
{664 	,256 	,66  }, 
{664 	,128 	,123 }, 
{664 	,128 	,115 }, 
{664 	,128 	,107 }, 
{664 	,128 	,100 }, 
{664 	,128 	,93  }, 
{664 	,128 	,87  }, 
{664 	,128 	,81  }, 
{664 	,128 	,76  }, 
{664 	,128 	,71  }, 
{664 	,128 	,66  }, 
{664 	,124 	,63  }, 
{581 	,128 	,66  }, 
{581 	,124 	,63  }, 
{498 	,128 	,67  }, 
{498 	,124 	,64  }, 
{415 	,128 	,70  }, 
{415 	,128 	,65  }, 
{415 	,120 	,65  }, 
{332 	,128 	,71  }, 
{332 	,128 	,66  }, 
{332 	,124 	,63  }, 

⌨️ 快捷键说明

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