1 /*****************************************************************************
13 * Header file of camera customized parameters.
20 *============================================================================
22 * Below this line, this part is controlled by CC/CQ. DO NOT MODIFY!!
23 *------------------------------------------------------------------------------
29 * [ALPS00030473] [Camera]
30 * [Camera] Add the OV5647 sensor driver to perforce.
33 * [DUMA00154355] JPeg Orientation feature check in
36 * Oct 27 2009 mtk02204
37 * [DUMA00015869] [Camera Driver] Modifiy camera related drivers for dual/backup sensor/lens drivers.
40 * Sep 24 2009 mtk02204
41 * [DUMA00134387] [LTK][GW616][Camera]4040 Camera:Camera Quality Test failed.
45 * [DUMA00008051] [Camera Driver] Add drivers for camera high ISO binning mode.
49 * [DUMA00008051] [Camera Driver] Add drivers for camera high ISO binning mode.
53 * [DUMA00008051] [Camera Driver] Add drivers for camera high ISO binning mode.
57 * [DUMA00119628] MTK camera_recorded video only contain audio but no video with Jean effect
60 * Apr 10 2009 mtk02204
61 * [DUMA00004178] [Camera] Check in for MTK camera integration
64 * Mar 13 2009 mtk02204
65 * [DUMA00001084] First Check in of MT6516 multimedia drivers
69 * [DUMA00001084] First Check in of MT6516 multimedia drivers
73 * [DUMA00001084] First Check in of MT6516 multimedia drivers
76 *------------------------------------------------------------------------------
77 * Upper this line, this part is controlled by CC/CQ. DO NOT MODIFY!!
78 *============================================================================
79 ****************************************************************************/
81 #ifndef __CAMERA_CUSTOMIZED_H
82 #define __CAMERA_CUSTOMIZED_H
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
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
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
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}}
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}}
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)
138 #define NUM_OF_VIDEO_STREAM_BUFF 8 // Maximun is 8