1 /* |
|
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Contains constants which define the configuration of the camera |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CAMSETTINGS_HRH |
|
20 #define CAMSETTINGS_HRH |
|
21 |
|
22 #include <pathconfiguration.hrh> |
|
23 |
|
24 #include <bldvariant.hrh> |
|
25 |
|
26 |
|
27 // DATA TYPES |
|
28 |
|
29 |
|
30 |
|
31 // Ids for camera statup mode |
|
32 // Values associated with the key "DefaultCaptureMode" for |
|
33 // the shared.ini file |
|
34 enum TCamStartupMode |
|
35 { |
|
36 ECamStillCapture, |
|
37 ECamVideoCapture, |
|
38 ECamBurstCapture |
|
39 }; |
|
40 |
|
41 // Ids for different white balance settings |
|
42 // Values associated with the key "UserSceneWhiteBalance" for |
|
43 // the shared.ini file |
|
44 enum TCamWhiteBalanceId |
|
45 { |
|
46 ECamWhiteBalanceAWB , |
|
47 ECamWhiteBalanceDaylight, |
|
48 ECamWhiteBalanceCloudy, |
|
49 ECamWhiteBalanceTungsten, |
|
50 ECamWhiteBalanceFlourescent, |
|
51 ECamWhiteBalanceMax |
|
52 }; |
|
53 |
|
54 // Ids for different exposure values (dynamic) |
|
55 // Values associated with the key "UserSceneExposure" for |
|
56 // the shared.ini file |
|
57 // IMPORTANT: These values must be in order from lowest |
|
58 // to highest. Otherwise, the mapping function ConvertSettingsModelEvToCameraAPIEv |
|
59 // will not work correctly. |
|
60 enum TCamExposureId |
|
61 { |
|
62 ECamExposureMinusTwo = -4, |
|
63 ECamExposureMinusOnePointFive = -3, |
|
64 ECamExposureMinusOne = -2, |
|
65 ECamExposureMinusPointFive = -1, |
|
66 ECamExposureZero = 0, |
|
67 ECamExposurePointFive = 1, |
|
68 ECamExposureOne = 2, |
|
69 ECamExposureOnePointFive = 3, |
|
70 ECamExposureTwo = 4, |
|
71 ECamExposureMax = ECamExposureTwo |
|
72 }; |
|
73 |
|
74 // Ids for different colour filter settings |
|
75 // Values associated with the key "UserSceneColourFilter" for |
|
76 // the shared.ini file |
|
77 enum TCamColourFilterId |
|
78 { |
|
79 ECamColourFilterColour, |
|
80 ECamColourFilterBlackAndWhite, |
|
81 ECamColourFilterSepia, |
|
82 ECamColourFilterNegative, |
|
83 ECamColourFilterVivid, |
|
84 ECamColourFilterMax |
|
85 }; |
|
86 |
|
87 // Ids for different flash settings |
|
88 // Values associated with the key "UserSceneFlash" for |
|
89 // the shared.ini file |
|
90 enum TCamFlashId |
|
91 { |
|
92 ECamFlashOff, |
|
93 ECamFlashAuto, |
|
94 ECamFlashForced, |
|
95 ECamFlashAntiRedEye, |
|
96 ECamFlashLastItem |
|
97 }; |
|
98 |
|
99 |
|
100 // Ids for different media storage |
|
101 // Values associated with the keys "PhotoMemInUse" and "VideoMemInUse" |
|
102 // for the shared.ini file |
|
103 // ECamMediaStorageCurrent indicates use current media storage |
|
104 // ECamMediaStorageNone indicates an uninitialised state |
|
105 // IMPORTANT: These values are mapped in the camUtility file to |
|
106 // CAknMemorySelectionDialog::TMemory values used in the settings list |
|
107 // page for selecting the memory in use |
|
108 enum TCamMediaStorage |
|
109 { |
|
110 ECamMediaStorageNone, |
|
111 ECamMediaStoragePhone, |
|
112 ECamMediaStorageCard, |
|
113 ECamMediaStorageMassStorage, |
|
114 ECamMediaStorageCurrent |
|
115 }; |
|
116 |
|
117 |
|
118 // Ids for different light sensitivities |
|
119 enum TCamLightSensitivityId |
|
120 { |
|
121 ECamLightSensitivityAuto, |
|
122 ECamLightSensitivityLow, |
|
123 ECamLightSensitivityLowMed, |
|
124 ECamLightSensitivityMed, |
|
125 ECamLightSensitivityMedHigh, |
|
126 ECamLightSensitivityHigh |
|
127 }; |
|
128 |
|
129 |
|
130 // <CAMERAAPP_CAPI_V2_MIGRATION> |
|
131 // The actual ISO rate identifier. |
|
132 // Mapped from TCamLightSensitivityId in product configuration. |
|
133 enum TCamIsoRate |
|
134 { |
|
135 ECamIsoRateAuto = 0, |
|
136 ECamIsoRate50 = 50, |
|
137 ECamIsoRate100 = 100, |
|
138 ECamIsoRate200 = 200, |
|
139 ECamIsoRate400 = 400, |
|
140 ECamIsoRate800 = 800, |
|
141 ECamIsoRate1600 = 1600, |
|
142 ECamIsoRate3200 = 3200 |
|
143 }; |
|
144 // </CAMERAAPP_CAPI_V2_MIGRATION> |
|
145 |
|
146 |
|
147 // Ids for video clip length |
|
148 // Values associated with the key "VideoClipLen" for the shared.ini file |
|
149 enum TCamVideoClipLength |
|
150 { |
|
151 ECamVideoClipMax, |
|
152 ECamVideoClipShort |
|
153 }; |
|
154 |
|
155 |
|
156 // No/Yes settings options |
|
157 // Values associated with the keys "PhotoStoreAlbum" and "VideoStoreAlbum" |
|
158 // for the shared.ini file |
|
159 enum TCamSettingsNoYes |
|
160 { |
|
161 ECamSettNo, |
|
162 ECamSettYes |
|
163 }; |
|
164 |
|
165 // On/off settings options |
|
166 // Values associated with the keys "PhotoFocusPoint", "PhotoShowCaptured", |
|
167 // "VideoAudRec" and "VideoShowCaptured", "ContinuosAutofocus" for the shared.ini file |
|
168 enum TCamSettingsOnOff |
|
169 { |
|
170 ECamSettOn, |
|
171 ECamSettOff |
|
172 }; |
|
173 |
|
174 // Values for the settings of zoom. |
|
175 enum TCamSettingsDigitalZoom |
|
176 { |
|
177 // If product does not support paused extended zoom, then only "normal continuous" and "exteneded continuous" |
|
178 // options are available. The values are thenused as booleans so one of them needs to be zero ("false"). |
|
179 |
|
180 ECamSettDigZoomNormalCont = 0x00, // Basic digital zoom enabled, no pause on optical-digital zoom boundary |
|
181 ECamSettDigZoomExtendCont = 0x01, // Extended zoom enabled, no pauses on zoom barriers |
|
182 ECamSettDigZoomNormalPause = 0x02, // Basic digital zoom enabled, pause on optical-digital zoom boundary |
|
183 ECamSettDigZoomExtendPause = 0x03, // Extended zoom enabled, pause on optical-digital-extended zoom boundaries |
|
184 ECamSettDigZoomNone = 0x04 // Digital and extended zoom disabled |
|
185 }; |
|
186 |
|
187 |
|
188 // Capture tone settings |
|
189 // Values associated with the key "PhotoCaptureTone" |
|
190 enum TCamSettingsCaptureTone |
|
191 { |
|
192 ECamSettTone1, |
|
193 ECamSettTone2, |
|
194 ECamSettTone3, |
|
195 ECamSettTone4, |
|
196 ECamSettToneOff |
|
197 }; |
|
198 |
|
199 // File name base type settings |
|
200 // Values associated with the keys "ImgNamType" and "VidNamType" for |
|
201 // the shared.ini file |
|
202 enum TCamNameBaseType |
|
203 { |
|
204 ECamNameBaseDate, |
|
205 ECamNameBaseText |
|
206 }; |
|
207 |
|
208 // Ids for different brightness settings (dynamic) |
|
209 enum TCamBrightnessId |
|
210 { |
|
211 ECamBrightnessNorm, |
|
212 ECamBrightnessPlus, |
|
213 ECamBrightnessNeg |
|
214 }; |
|
215 |
|
216 // Ids for different contrast settings (dynamic) |
|
217 enum TCamContrastId |
|
218 { |
|
219 ECamContrastNorm, |
|
220 ECamContrastPlus, |
|
221 ECamContrastNeg |
|
222 }; |
|
223 |
|
224 // Ids for different self-timer settings (dynamic) |
|
225 enum TCamSelfTimerId |
|
226 { |
|
227 ECamSelfTimerOff, |
|
228 ECamSelfTimer2, |
|
229 ECamSelfTimer10, |
|
230 ECamSelfTimer20 |
|
231 }; |
|
232 |
|
233 // Ids for different image sharpness settings (dynamic) |
|
234 enum TCamImageSharpnessId |
|
235 { |
|
236 ECamImageSharpnessHard, |
|
237 ECamImageSharpnessNorm, |
|
238 ECamImageSharpnessSoft |
|
239 }; |
|
240 |
|
241 // Ids for different colour saturation settings (dynamic) |
|
242 enum TCamColourSaturationId |
|
243 { |
|
244 ECamColourSaturationNorm, |
|
245 ECamColourSaturationPlus, |
|
246 ECamColourSaturationNeg |
|
247 }; |
|
248 |
|
249 enum TCamFlickerCancellation |
|
250 { |
|
251 ECamFlickerCancellation50Hz, |
|
252 ECamFlickerCancellation60Hz |
|
253 }; |
|
254 |
|
255 enum TCamImageOrientation |
|
256 { |
|
257 ECamOrientation0, |
|
258 ECamOrientation90, |
|
259 ECamOrientation180, |
|
260 ECamOrientation270, |
|
261 ECamOrientationIgnore, |
|
262 ECamOrientationCount |
|
263 }; |
|
264 |
|
265 enum T2ndCamOrientation |
|
266 { |
|
267 E2ndCamUnknown, |
|
268 E2ndCamAuto, // Follows qwerty state |
|
269 E2ndCamPortraitForced, |
|
270 E2ndCamLandscapeForced |
|
271 }; |
|
272 |
|
273 enum TCameraSwitchRequired |
|
274 { |
|
275 ESwitchDone, |
|
276 ESwitchToUnknown, |
|
277 ESwitchPrimaryToSecondary, |
|
278 ESwitchSecondaryToPrimary, |
|
279 ESwitchSecondaryOrientation |
|
280 }; |
|
281 |
|
282 enum TCamEditorSupport |
|
283 { |
|
284 ECamNoEditorSupport, |
|
285 ECamEditorSupportInToolbar, |
|
286 ECamEditorSupportInOptions |
|
287 }; |
|
288 |
|
289 #ifdef _DEBUG |
|
290 #ifndef CAMERAAPP_PLUGIN_BUILD |
|
291 const TUint16* const KCamOrientationNames[] = |
|
292 { |
|
293 (const TUint16* const)_S16("ECamOrientation0"), |
|
294 (const TUint16* const)_S16("ECamOrientation90"), |
|
295 (const TUint16* const)_S16("ECamOrientation180"), |
|
296 (const TUint16* const)_S16("ECamOrientation270"), |
|
297 (const TUint16* const)_S16("ECamOrientationIgnore") |
|
298 }; |
|
299 __ASSERT_COMPILE( (sizeof(KCamOrientationNames)/sizeof(TUint16*)) == ECamOrientationCount ); |
|
300 #endif // CAMERAAPP_PLUGIN_BUILD |
|
301 #endif // _DEBUG |
|
302 |
|
303 #endif // CAMSETTINGS_HRH |
|