blob: 60031a4f7fe592227c59d8b49548734c2f693ef8 [file] [log] [blame]
Mathias Agopian3cf61352010-02-09 17:46:37 -08001/*
2 * Copyright (C) 2008 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef ANDROID_HARDWARE_CAMERA_PARAMETERS_H
18#define ANDROID_HARDWARE_CAMERA_PARAMETERS_H
19
20#include <utils/KeyedVector.h>
21#include <utils/String8.h>
22
23namespace android {
24
Nipun Kwatra34c91a32010-07-30 13:40:14 -070025struct Size {
26 int width;
27 int height;
28
29 Size() {
30 width = 0;
31 height = 0;
32 }
33
34 Size(int w, int h) {
35 width = w;
36 height = h;
37 }
38};
39
Mathias Agopian3cf61352010-02-09 17:46:37 -080040class CameraParameters
41{
42public:
43 CameraParameters();
44 CameraParameters(const String8 &params) { unflatten(params); }
45 ~CameraParameters();
46
47 String8 flatten() const;
48 void unflatten(const String8 &params);
49
50 void set(const char *key, const char *value);
51 void set(const char *key, int value);
52 void setFloat(const char *key, float value);
53 const char *get(const char *key) const;
54 int getInt(const char *key) const;
55 float getFloat(const char *key) const;
56
Wu-cheng Liadbda962010-05-11 12:11:56 +080057 void remove(const char *key);
58
Mathias Agopian3cf61352010-02-09 17:46:37 -080059 void setPreviewSize(int width, int height);
60 void getPreviewSize(int *width, int *height) const;
Nipun Kwatrae44607e2010-08-04 14:04:07 -070061 void getSupportedPreviewSizes(Vector<Size> &sizes) const;
James Dong0d14c252010-09-30 10:50:51 -070062
63 // Set the dimensions in pixels to the given width and height
64 // for video frames. The given width and height must be one
65 // of the supported dimensions returned from
66 // getSupportedVideoSizes(). Must not be called if
67 // getSupportedVideoSizes() returns an empty Vector of Size.
68 void setVideoSize(int width, int height);
69 // Retrieve the current dimensions (width and height)
70 // in pixels for video frames, which must be one of the
71 // supported dimensions returned from getSupportedVideoSizes().
72 // Must not be called if getSupportedVideoSizes() returns an
73 // empty Vector of Size.
74 void getVideoSize(int *width, int *height) const;
75 // Retrieve a Vector of supported dimensions (width and height)
76 // in pixels for video frames. If sizes returned from the method
77 // is empty, the camera does not support calls to setVideoSize()
78 // or getVideoSize(). In adddition, it also indicates that
79 // the camera only has a single output, and does not have
80 // separate output for video frames and preview frame.
81 void getSupportedVideoSizes(Vector<Size> &sizes) const;
82
Mathias Agopian3cf61352010-02-09 17:46:37 -080083 void setPreviewFrameRate(int fps);
84 int getPreviewFrameRate() const;
Wu-cheng Li04379fa2010-08-11 16:48:05 -070085 void getPreviewFpsRange(int *min_fps, int *max_fps) const;
Mathias Agopian3cf61352010-02-09 17:46:37 -080086 void setPreviewFormat(const char *format);
87 const char *getPreviewFormat() const;
Mathias Agopian3cf61352010-02-09 17:46:37 -080088 void setPictureSize(int width, int height);
89 void getPictureSize(int *width, int *height) const;
Nipun Kwatra34c91a32010-07-30 13:40:14 -070090 void getSupportedPictureSizes(Vector<Size> &sizes) const;
Mathias Agopian3cf61352010-02-09 17:46:37 -080091 void setPictureFormat(const char *format);
92 const char *getPictureFormat() const;
93
94 void dump() const;
95 status_t dump(int fd, const Vector<String16>& args) const;
96
97 // Parameter keys to communicate between camera application and driver.
98 // The access (read/write, read only, or write only) is viewed from the
99 // perspective of applications, not driver.
100
101 // Preview frame size in pixels (width x height).
102 // Example value: "480x320". Read/Write.
103 static const char KEY_PREVIEW_SIZE[];
104 // Supported preview frame sizes in pixels.
105 // Example value: "800x600,480x320". Read only.
106 static const char KEY_SUPPORTED_PREVIEW_SIZES[];
Wu-cheng Li04379fa2010-08-11 16:48:05 -0700107 // The current minimum and maximum preview fps. This controls the rate of
108 // preview frames received (CAMERA_MSG_PREVIEW_FRAME). The minimum and
109 // maximum fps must be one of the elements from
110 // KEY_SUPPORTED_PREVIEW_FPS_RANGE parameter.
111 // Example value: "10500,26623"
112 static const char KEY_PREVIEW_FPS_RANGE[];
113 // The supported preview fps (frame-per-second) ranges. Each range contains
114 // a minimum fps and maximum fps. If minimum fps equals to maximum fps, the
115 // camera outputs frames in fixed frame rate. If not, the camera outputs
116 // frames in auto frame rate. The actual frame rate fluctuates between the
117 // minimum and the maximum. The list has at least one element. The list is
118 // sorted from small to large (first by maximum fps and then minimum fps).
119 // Example value: "(10500,26623),(15000,26623),(30000,30000)"
120 static const char KEY_SUPPORTED_PREVIEW_FPS_RANGE[];
Wu-cheng Li0b0279e2010-05-28 17:32:41 +0800121 // The image format for preview frames. See CAMERA_MSG_PREVIEW_FRAME in
122 // frameworks/base/include/camera/Camera.h.
Mathias Agopian3cf61352010-02-09 17:46:37 -0800123 // Example value: "yuv420sp" or PIXEL_FORMAT_XXX constants. Read/write.
124 static const char KEY_PREVIEW_FORMAT[];
125 // Supported image formats for preview frames.
126 // Example value: "yuv420sp,yuv422i-yuyv". Read only.
127 static const char KEY_SUPPORTED_PREVIEW_FORMATS[];
Wu-cheng Li0b0279e2010-05-28 17:32:41 +0800128 // Number of preview frames per second. This is the target frame rate. The
129 // actual frame rate depends on the driver.
Mathias Agopian3cf61352010-02-09 17:46:37 -0800130 // Example value: "15". Read/write.
131 static const char KEY_PREVIEW_FRAME_RATE[];
132 // Supported number of preview frames per second.
133 // Example value: "24,15,10". Read.
134 static const char KEY_SUPPORTED_PREVIEW_FRAME_RATES[];
135 // The dimensions for captured pictures in pixels (width x height).
136 // Example value: "1024x768". Read/write.
137 static const char KEY_PICTURE_SIZE[];
138 // Supported dimensions for captured pictures in pixels.
139 // Example value: "2048x1536,1024x768". Read only.
140 static const char KEY_SUPPORTED_PICTURE_SIZES[];
Wu-cheng Li0b0279e2010-05-28 17:32:41 +0800141 // The image format for captured pictures. See CAMERA_MSG_COMPRESSED_IMAGE
142 // in frameworks/base/include/camera/Camera.h.
Mathias Agopian3cf61352010-02-09 17:46:37 -0800143 // Example value: "jpeg" or PIXEL_FORMAT_XXX constants. Read/write.
144 static const char KEY_PICTURE_FORMAT[];
145 // Supported image formats for captured pictures.
146 // Example value: "jpeg,rgb565". Read only.
147 static const char KEY_SUPPORTED_PICTURE_FORMATS[];
148 // The width (in pixels) of EXIF thumbnail in Jpeg picture.
149 // Example value: "512". Read/write.
150 static const char KEY_JPEG_THUMBNAIL_WIDTH[];
151 // The height (in pixels) of EXIF thumbnail in Jpeg picture.
152 // Example value: "384". Read/write.
153 static const char KEY_JPEG_THUMBNAIL_HEIGHT[];
154 // Supported EXIF thumbnail sizes (width x height). 0x0 means not thumbnail
155 // in EXIF.
156 // Example value: "512x384,320x240,0x0". Read only.
157 static const char KEY_SUPPORTED_JPEG_THUMBNAIL_SIZES[];
158 // The quality of the EXIF thumbnail in Jpeg picture. The range is 1 to 100,
159 // with 100 being the best.
160 // Example value: "90". Read/write.
161 static const char KEY_JPEG_THUMBNAIL_QUALITY[];
162 // Jpeg quality of captured picture. The range is 1 to 100, with 100 being
163 // the best.
164 // Example value: "90". Read/write.
165 static const char KEY_JPEG_QUALITY[];
166 // The orientation of the device in degrees. For example, suppose the
167 // natural position of the device is landscape. If the user takes a picture
168 // in landscape mode in 2048x1536 resolution, the rotation will be set to
169 // "0". If the user rotates the phone 90 degrees clockwise, the rotation
170 // should be set to "90".
171 // The camera driver can set orientation in the EXIF header without rotating
172 // the picture. Or the driver can rotate the picture and the EXIF thumbnail.
173 // If the Jpeg picture is rotated, the orientation in the EXIF header should
174 // be missing or 1 (row #0 is top and column #0 is left side). The driver
175 // should not set default value for this parameter.
176 // Example value: "0" or "90" or "180" or "270". Write only.
177 static const char KEY_ROTATION[];
Wu-cheng Li6b19fac2010-05-21 17:52:42 +0800178 // GPS latitude coordinate. GPSLatitude and GPSLatitudeRef will be stored in
179 // JPEG EXIF header.
180 // Example value: "25.032146" or "-33.462809". Write only.
Mathias Agopian3cf61352010-02-09 17:46:37 -0800181 static const char KEY_GPS_LATITUDE[];
Wu-cheng Li6b19fac2010-05-21 17:52:42 +0800182 // GPS longitude coordinate. GPSLongitude and GPSLongitudeRef will be stored
183 // in JPEG EXIF header.
184 // Example value: "121.564448" or "-70.660286". Write only.
Mathias Agopian3cf61352010-02-09 17:46:37 -0800185 static const char KEY_GPS_LONGITUDE[];
Wu-cheng Li6b19fac2010-05-21 17:52:42 +0800186 // GPS altitude. GPSAltitude and GPSAltitudeRef will be stored in JPEG EXIF
187 // header.
188 // Example value: "21.0" or "-5". Write only.
Mathias Agopian3cf61352010-02-09 17:46:37 -0800189 static const char KEY_GPS_ALTITUDE[];
190 // GPS timestamp (UTC in seconds since January 1, 1970). This should be
191 // stored in JPEG EXIF header.
192 // Example value: "1251192757". Write only.
193 static const char KEY_GPS_TIMESTAMP[];
Ray Chenc0170bc2010-02-23 10:45:42 +0800194 // GPS Processing Method
195 // Example value: "GPS" or "NETWORK". Write only.
196 static const char KEY_GPS_PROCESSING_METHOD[];
Mathias Agopian3cf61352010-02-09 17:46:37 -0800197 // Current white balance setting.
198 // Example value: "auto" or WHITE_BALANCE_XXX constants. Read/write.
199 static const char KEY_WHITE_BALANCE[];
200 // Supported white balance settings.
201 // Example value: "auto,incandescent,daylight". Read only.
202 static const char KEY_SUPPORTED_WHITE_BALANCE[];
203 // Current color effect setting.
204 // Example value: "none" or EFFECT_XXX constants. Read/write.
205 static const char KEY_EFFECT[];
206 // Supported color effect settings.
207 // Example value: "none,mono,sepia". Read only.
208 static const char KEY_SUPPORTED_EFFECTS[];
209 // Current antibanding setting.
210 // Example value: "auto" or ANTIBANDING_XXX constants. Read/write.
211 static const char KEY_ANTIBANDING[];
212 // Supported antibanding settings.
213 // Example value: "auto,50hz,60hz,off". Read only.
214 static const char KEY_SUPPORTED_ANTIBANDING[];
215 // Current scene mode.
216 // Example value: "auto" or SCENE_MODE_XXX constants. Read/write.
217 static const char KEY_SCENE_MODE[];
218 // Supported scene mode settings.
219 // Example value: "auto,night,fireworks". Read only.
220 static const char KEY_SUPPORTED_SCENE_MODES[];
221 // Current flash mode.
222 // Example value: "auto" or FLASH_MODE_XXX constants. Read/write.
223 static const char KEY_FLASH_MODE[];
224 // Supported flash modes.
225 // Example value: "auto,on,off". Read only.
226 static const char KEY_SUPPORTED_FLASH_MODES[];
Wu-cheng Lic6e88fd2010-08-05 11:50:25 -0700227 // Current focus mode. This will not be empty. Applications should call
228 // CameraHardwareInterface.autoFocus to start the focus if focus mode is
229 // FOCUS_MODE_AUTO or FOCUS_MODE_MACRO.
Mathias Agopian3cf61352010-02-09 17:46:37 -0800230 // Example value: "auto" or FOCUS_MODE_XXX constants. Read/write.
231 static const char KEY_FOCUS_MODE[];
232 // Supported focus modes.
233 // Example value: "auto,macro,fixed". Read only.
234 static const char KEY_SUPPORTED_FOCUS_MODES[];
235 // Focal length in millimeter.
236 // Example value: "4.31". Read only.
237 static const char KEY_FOCAL_LENGTH[];
238 // Horizontal angle of view in degrees.
239 // Example value: "54.8". Read only.
240 static const char KEY_HORIZONTAL_VIEW_ANGLE[];
241 // Vertical angle of view in degrees.
242 // Example value: "42.5". Read only.
243 static const char KEY_VERTICAL_VIEW_ANGLE[];
Wu-cheng Li4f1bff92010-02-20 17:47:04 +0800244 // Exposure compensation index. 0 means exposure is not adjusted.
245 // Example value: "0" or "5". Read/write.
Mathias Agopian3cf61352010-02-09 17:46:37 -0800246 static const char KEY_EXPOSURE_COMPENSATION[];
Wu-cheng Li4f1bff92010-02-20 17:47:04 +0800247 // The maximum exposure compensation index (>=0).
248 // Example value: "6". Read only.
249 static const char KEY_MAX_EXPOSURE_COMPENSATION[];
250 // The minimum exposure compensation index (<=0).
251 // Example value: "-6". Read only.
252 static const char KEY_MIN_EXPOSURE_COMPENSATION[];
253 // The exposure compensation step. Exposure compensation index multiply by
254 // step eqals to EV. Ex: if exposure compensation index is 6 and step is
255 // 0.3333, EV is -2.
256 // Example value: "0.333333333" or "0.5". Read only.
257 static const char KEY_EXPOSURE_COMPENSATION_STEP[];
Wu-cheng Li949c5032010-02-28 23:19:55 -0800258 // Current zoom value.
259 // Example value: "0" or "6". Read/write.
260 static const char KEY_ZOOM[];
261 // Maximum zoom value.
262 // Example value: "6". Read only.
263 static const char KEY_MAX_ZOOM[];
264 // The zoom ratios of all zoom values. The zoom ratio is in 1/100
265 // increments. Ex: a zoom of 3.2x is returned as 320. The number of list
266 // elements is KEY_MAX_ZOOM + 1. The first element is always 100. The last
267 // element is the zoom ratio of zoom value KEY_MAX_ZOOM.
268 // Example value: "100,150,200,250,300,350,400". Read only.
269 static const char KEY_ZOOM_RATIOS[];
270 // Whether zoom is supported. Zoom is supported if the value is "true". Zoom
271 // is not supported if the value is not "true" or the key does not exist.
272 // Example value: "true". Read only.
273 static const char KEY_ZOOM_SUPPORTED[];
274 // Whether if smooth zoom is supported. Smooth zoom is supported if the
275 // value is "true". It is not supported if the value is not "true" or the
276 // key does not exist.
277 // See CAMERA_CMD_START_SMOOTH_ZOOM, CAMERA_CMD_STOP_SMOOTH_ZOOM, and
278 // CAMERA_MSG_ZOOM in frameworks/base/include/camera/Camera.h.
279 // Example value: "true". Read only.
280 static const char KEY_SMOOTH_ZOOM_SUPPORTED[];
Mathias Agopian3cf61352010-02-09 17:46:37 -0800281
Wu-cheng Li09a2ab92010-05-13 19:31:02 +0800282 // The distances (in meters) from the camera to where an object appears to
283 // be in focus. The object is sharpest at the optimal focus distance. The
284 // depth of field is the far focus distance minus near focus distance.
285 //
Wu-cheng Lic6e88fd2010-08-05 11:50:25 -0700286 // Focus distances may change after starting auto focus, canceling auto
287 // focus, or starting the preview. Applications can read this anytime to get
288 // the latest focus distances. If the focus mode is FOCUS_MODE_CONTINUOUS,
289 // focus distances may change from time to time.
290 //
291 // This is intended to estimate the distance between the camera and the
292 // subject. After autofocus, the subject distance may be within near and far
293 // focus distance. However, the precision depends on the camera hardware,
294 // autofocus algorithm, the focus area, and the scene. The error can be
295 // large and it should be only used as a reference.
Wu-cheng Li09a2ab92010-05-13 19:31:02 +0800296 //
297 // Far focus distance > optimal focus distance > near focus distance. If
298 // the far focus distance is infinity, the value should be "Infinity" (case
299 // sensitive). The format is three float values separated by commas. The
300 // first is near focus distance. The second is optimal focus distance. The
301 // third is far focus distance.
302 // Example value: "0.95,1.9,Infinity" or "0.049,0.05,0.051". Read only.
303 static const char KEY_FOCUS_DISTANCES[];
304
James Dong0d14c252010-09-30 10:50:51 -0700305 // The current dimensions in pixels (width x height) for video frames.
306 // The width and height must be one of the supported sizes retrieved
307 // via KEY_SUPPORTED_VIDEO_SIZES.
308 // Example value: "1280x720". Read/write.
309 static const char KEY_VIDEO_SIZE[];
310 // A list of the supported dimensions in pixels (width x height)
311 // for video frames. See CAMERA_MSG_VIDEO_FRAME for details in
312 // frameworks/base/include/camera/Camera.h.
313 // Example: "176x144,1280x720". Read only.
314 static const char KEY_SUPPORTED_VIDEO_SIZES[];
Wu-cheng Li0b0279e2010-05-28 17:32:41 +0800315 // The image format for video frames. See CAMERA_MSG_VIDEO_FRAME in
316 // frameworks/base/include/camera/Camera.h.
317 // Example value: "yuv420sp" or PIXEL_FORMAT_XXX constants. Read only.
318 static const char KEY_VIDEO_FRAME_FORMAT[];
319
Wu-cheng Lid8d888e2010-03-08 15:28:48 -0800320 // Value for KEY_ZOOM_SUPPORTED or KEY_SMOOTH_ZOOM_SUPPORTED.
321 static const char TRUE[];
322
Wu-cheng Li09a2ab92010-05-13 19:31:02 +0800323 // Value for KEY_FOCUS_DISTANCES.
Wu-cheng Liae77ffa2010-05-15 13:05:04 +0800324 static const char FOCUS_DISTANCE_INFINITY[];
Wu-cheng Li09a2ab92010-05-13 19:31:02 +0800325
Wu-cheng Li4f1bff92010-02-20 17:47:04 +0800326 // Values for white balance settings.
Mathias Agopian3cf61352010-02-09 17:46:37 -0800327 static const char WHITE_BALANCE_AUTO[];
328 static const char WHITE_BALANCE_INCANDESCENT[];
329 static const char WHITE_BALANCE_FLUORESCENT[];
330 static const char WHITE_BALANCE_WARM_FLUORESCENT[];
331 static const char WHITE_BALANCE_DAYLIGHT[];
332 static const char WHITE_BALANCE_CLOUDY_DAYLIGHT[];
333 static const char WHITE_BALANCE_TWILIGHT[];
334 static const char WHITE_BALANCE_SHADE[];
335
336 // Values for effect settings.
337 static const char EFFECT_NONE[];
338 static const char EFFECT_MONO[];
339 static const char EFFECT_NEGATIVE[];
340 static const char EFFECT_SOLARIZE[];
341 static const char EFFECT_SEPIA[];
342 static const char EFFECT_POSTERIZE[];
343 static const char EFFECT_WHITEBOARD[];
344 static const char EFFECT_BLACKBOARD[];
345 static const char EFFECT_AQUA[];
346
347 // Values for antibanding settings.
348 static const char ANTIBANDING_AUTO[];
349 static const char ANTIBANDING_50HZ[];
350 static const char ANTIBANDING_60HZ[];
351 static const char ANTIBANDING_OFF[];
352
353 // Values for flash mode settings.
354 // Flash will not be fired.
355 static const char FLASH_MODE_OFF[];
356 // Flash will be fired automatically when required. The flash may be fired
357 // during preview, auto-focus, or snapshot depending on the driver.
358 static const char FLASH_MODE_AUTO[];
359 // Flash will always be fired during snapshot. The flash may also be
360 // fired during preview or auto-focus depending on the driver.
361 static const char FLASH_MODE_ON[];
362 // Flash will be fired in red-eye reduction mode.
363 static const char FLASH_MODE_RED_EYE[];
364 // Constant emission of light during preview, auto-focus and snapshot.
365 // This can also be used for video recording.
366 static const char FLASH_MODE_TORCH[];
367
368 // Values for scene mode settings.
369 static const char SCENE_MODE_AUTO[];
370 static const char SCENE_MODE_ACTION[];
371 static const char SCENE_MODE_PORTRAIT[];
372 static const char SCENE_MODE_LANDSCAPE[];
373 static const char SCENE_MODE_NIGHT[];
374 static const char SCENE_MODE_NIGHT_PORTRAIT[];
375 static const char SCENE_MODE_THEATRE[];
376 static const char SCENE_MODE_BEACH[];
377 static const char SCENE_MODE_SNOW[];
378 static const char SCENE_MODE_SUNSET[];
379 static const char SCENE_MODE_STEADYPHOTO[];
380 static const char SCENE_MODE_FIREWORKS[];
381 static const char SCENE_MODE_SPORTS[];
382 static const char SCENE_MODE_PARTY[];
383 static const char SCENE_MODE_CANDLELIGHT[];
Wu-cheng Li465d5a72010-03-29 17:21:28 +0800384 // Applications are looking for a barcode. Camera driver will be optimized
385 // for barcode reading.
386 static const char SCENE_MODE_BARCODE[];
Mathias Agopian3cf61352010-02-09 17:46:37 -0800387
James Donge2d8ba82010-09-15 16:52:51 -0700388 // Pixel color formats for KEY_PREVIEW_FORMAT, KEY_PICTURE_FORMAT,
389 // and KEY_VIDEO_FRAME_FORMAT
390 // Planar variant of the YUV420 color format
391 static const char PIXEL_FORMAT_YUV420P[];
Mathias Agopian3cf61352010-02-09 17:46:37 -0800392 static const char PIXEL_FORMAT_YUV422SP[];
393 static const char PIXEL_FORMAT_YUV420SP[]; // NV21
394 static const char PIXEL_FORMAT_YUV422I[]; // YUY2
395 static const char PIXEL_FORMAT_RGB565[];
396 static const char PIXEL_FORMAT_JPEG[];
397
398 // Values for focus mode settings.
Wu-cheng Li85b6e162010-08-17 13:44:35 -0700399 // Auto-focus mode. Applications should call
400 // CameraHardwareInterface.autoFocus to start the focus in this mode.
Mathias Agopian3cf61352010-02-09 17:46:37 -0800401 static const char FOCUS_MODE_AUTO[];
402 // Focus is set at infinity. Applications should not call
403 // CameraHardwareInterface.autoFocus in this mode.
404 static const char FOCUS_MODE_INFINITY[];
Wu-cheng Li85b6e162010-08-17 13:44:35 -0700405 // Macro (close-up) focus mode. Applications should call
406 // CameraHardwareInterface.autoFocus to start the focus in this mode.
Mathias Agopian3cf61352010-02-09 17:46:37 -0800407 static const char FOCUS_MODE_MACRO[];
408 // Focus is fixed. The camera is always in this mode if the focus is not
409 // adjustable. If the camera has auto-focus, this mode can fix the
410 // focus, which is usually at hyperfocal distance. Applications should
411 // not call CameraHardwareInterface.autoFocus in this mode.
412 static const char FOCUS_MODE_FIXED[];
Wu-cheng Li465d5a72010-03-29 17:21:28 +0800413 // Extended depth of field (EDOF). Focusing is done digitally and
414 // continuously. Applications should not call
415 // CameraHardwareInterface.autoFocus in this mode.
416 static const char FOCUS_MODE_EDOF[];
Wu-cheng Liac4205c2010-09-20 16:15:32 -0700417 // Continuous auto focus mode intended for video recording. The camera
418 // continuously tries to focus. This is ideal for shooting video.
419 // Applications still can call CameraHardwareInterface.takePicture in this
420 // mode but the subject may not be in focus. Auto focus starts when the
421 // parameter is set. Applications should not call
422 // CameraHardwareInterface.autoFocus in this mode. To stop continuous focus,
423 // applications should change the focus mode to other modes.
424 static const char FOCUS_MODE_CONTINUOUS_VIDEO[];
Wu-cheng Li4bf7ace2010-05-06 16:47:30 +0800425
Mathias Agopian3cf61352010-02-09 17:46:37 -0800426private:
427 DefaultKeyedVector<String8,String8> mMap;
428};
429
430}; // namespace android
431
432#endif