import PULS_20160108
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / misc / mediatek / imgsensor / src / mt8127 / ov5647_CameraCustomized.h
1 /*****************************************************************************
2 *
3 * Filename:
4 * ---------
5 * sensor.h
6 *
7 * Project:
8 * --------
9 * DUMA
10 *
11 * Description:
12 * ------------
13 * Header file of camera customized parameters.
14 *
15 *
16 * Author:
17 * -------
18 * PC Huang (MTK02204)
19 *
20 *============================================================================
21 * HISTORY
22 * Below this line, this part is controlled by CC/CQ. DO NOT MODIFY!!
23 *------------------------------------------------------------------------------
24 * $Revision:$
25 * $Modtime:$
26 * $Log:$
27 *
28 * 12 16 2011 koli.lin
29 * [ALPS00030473] [Camera]
30 * [Camera] Add the OV5647 sensor driver to perforce.
31 *
32 * Feb 9 2010 mtk80461
33 * [DUMA00154355] JPeg Orientation feature check in
34 *
35 *
36 * Oct 27 2009 mtk02204
37 * [DUMA00015869] [Camera Driver] Modifiy camera related drivers for dual/backup sensor/lens drivers.
38 *
39 *
40 * Sep 24 2009 mtk02204
41 * [DUMA00134387] [LTK][GW616][Camera]4040 Camera:Camera Quality Test failed.
42 *
43 *
44 * Jul 8 2009 mtk02204
45 * [DUMA00008051] [Camera Driver] Add drivers for camera high ISO binning mode.
46 *
47 *
48 * Jul 8 2009 mtk02204
49 * [DUMA00008051] [Camera Driver] Add drivers for camera high ISO binning mode.
50 *
51 *
52 * Jul 7 2009 mtk02204
53 * [DUMA00008051] [Camera Driver] Add drivers for camera high ISO binning mode.
54 *
55 *
56 * Jun 6 2009 mtk02204
57 * [DUMA00119628] MTK camera_recorded video only contain audio but no video with Jean effect
58 *
59 *
60 * Apr 10 2009 mtk02204
61 * [DUMA00004178] [Camera] Check in for MTK camera integration
62 *
63 *
64 * Mar 13 2009 mtk02204
65 * [DUMA00001084] First Check in of MT6516 multimedia drivers
66 *
67 *
68 * Mar 2 2009 mtk02204
69 * [DUMA00001084] First Check in of MT6516 multimedia drivers
70 *
71 *
72 * Feb 6 2009 mtk02204
73 * [DUMA00001084] First Check in of MT6516 multimedia drivers
74 *
75 *
76 *------------------------------------------------------------------------------
77 * Upper this line, this part is controlled by CC/CQ. DO NOT MODIFY!!
78 *============================================================================
79 ****************************************************************************/
80
81 #ifndef __CAMERA_CUSTOMIZED_H
82 #define __CAMERA_CUSTOMIZED_H
83
84 // the angle between handset and sensor placement in clockwise, should be one of 0, 90, 270
85 #define MAIN_SENSOR_ORIENTATION_ANGLE 90
86 #define SUB_SENSOR_ORIENTATION_ANGLE 0 // do not care if the sub sensor does not exist
87
88
89 // First, we think you hold the cell phone vertical.
90 // Second, we suppose the direction of upward is 0
91 // Third, it is 90, 180, 270 in clockwise
92 // here we define the main sensor and sub sensor angles to deal with the jpeg orientation
93 #define MAIN_SENSOR_TO_PHONE_ANGLE 90
94 #define SUB_SENSOR_TO_PHONE_ANGLE 0
95
96
97 #define CAM_SIZE_QVGA_WIDTH 320
98 #define CAM_SIZE_QVGA_HEIGHT 240
99 #define CAM_SIZE_VGA_WIDTH 640
100 #define CAM_SIZE_VGA_HEIGHT 480
101 #define CAM_SIZE_05M_WIDTH 800
102 #define CAM_SIZE_05M_HEIGHT 600
103 #define CAM_SIZE_1M_WIDTH 1280
104 #define CAM_SIZE_1M_HEIGHT 960
105 #define CAM_SIZE_2M_WIDTH 1600
106 #define CAM_SIZE_2M_HEIGHT 1200
107 #define CAM_SIZE_3M_WIDTH 2048
108 #define CAM_SIZE_3M_HEIGHT 1536
109 #define CAM_SIZE_5M_WIDTH 2592
110 #define CAM_SIZE_5M_HEIGHT 1944
111
112 // for main sensor
113 #define MAIN_NUM_OF_PREVIEW_RESOLUTION 3
114 #define MAIN_NUM_OF_VIDEO_RESOLUTION 4
115 #define MAIN_NUM_OF_STILL_RESOLUTION 7
116 #define MAIN_VIDEO_RESOLUTION_PROFILE {{176,144},{320,240},{640,480},{720,480}}
117 #define MAIN_PREVIEW_RESOLUTION_PROFILE {{232,174},{320,240},{240,320}}
118 #define MAIN_STILL_RESOLUTION_PROFILE {{CAM_SIZE_QVGA_WIDTH,CAM_SIZE_QVGA_HEIGHT}, \
119 {CAM_SIZE_VGA_WIDTH,CAM_SIZE_VGA_HEIGHT}, \
120 {CAM_SIZE_05M_WIDTH,CAM_SIZE_05M_HEIGHT}, \
121 {CAM_SIZE_1M_WIDTH,CAM_SIZE_1M_HEIGHT}, \
122 {CAM_SIZE_2M_WIDTH,CAM_SIZE_2M_HEIGHT}, \
123 {CAM_SIZE_3M_WIDTH,CAM_SIZE_3M_HEIGHT}, \
124 {CAM_SIZE_5M_WIDTH,CAM_SIZE_5M_HEIGHT}}
125
126 // if sub sensor does not exist, set all the parameters as 0
127 #define SUB_NUM_OF_PREVIEW_RESOLUTION 0
128 #define SUB_NUM_OF_VIDEO_RESOLUTION 0
129 #define SUB_NUM_OF_STILL_RESOLUTION 0
130 #define SUB_VIDEO_RESOLUTION_PROFILE {{0,0}}
131 #define SUB_PREVIEW_RESOLUTION_PROFILE {{0,0}}
132 #define SUB_STILL_RESOLUTION_PROFILE {{0,0}}
133
134 //#define NUM_OF_PREVIEW_RESOLUTION max(MAIN_NUM_OF_PREVIEW_RESOLUTION,SUB_NUM_OF_PREVIEW_RESOLUTION)
135 //#define NUM_OF_VIDEO_RESOLUTION max(MAIN_NUM_OF_VIDEO_RESOLUTION,SUB_NUM_OF_VIDEO_RESOLUTION)
136 //#define NUM_OF_STILL_RESOLUTION max(MAIN_NUM_OF_STILL_RESOLUTION,SUB_NUM_OF_STILL_RESOLUTION)
137
138 #define NUM_OF_VIDEO_STREAM_BUFF 8 // Maximun is 8
139 #endif