| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 23 | namespace android { |
| 24 | |
| 25 | struct 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 | }; |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 39 | #ifdef QCOM_HARDWARE |
| 40 | struct FPSRange{ |
| 41 | int minFPS; |
| 42 | int maxFPS; |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 43 | |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 44 | FPSRange(){ |
| 45 | minFPS=0; |
| 46 | maxFPS=0; |
| 47 | }; |
| 48 | FPSRange(int min,int max){ |
| 49 | minFPS=min; |
| 50 | maxFPS=max; |
| 51 | }; |
| 52 | }; |
| 53 | #endif |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 54 | class CameraParameters |
| 55 | { |
| 56 | public: |
| 57 | CameraParameters(); |
| 58 | CameraParameters(const String8 ¶ms) { unflatten(params); } |
| 59 | ~CameraParameters(); |
| 60 | |
| 61 | String8 flatten() const; |
| 62 | void unflatten(const String8 ¶ms); |
| 63 | |
| 64 | void set(const char *key, const char *value); |
| 65 | void set(const char *key, int value); |
| 66 | void setFloat(const char *key, float value); |
| 67 | const char *get(const char *key) const; |
| 68 | int getInt(const char *key) const; |
| Dorian Snyder | b57c300 | 2013-05-31 22:35:41 -0700 | [diff] [blame] | 69 | #ifdef SAMSUNG_CAMERA_HARDWARE |
| 70 | int getInt64(const char *key) const; |
| 71 | #endif |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 72 | float getFloat(const char *key) const; |
| 73 | |
| 74 | void remove(const char *key); |
| 75 | |
| 76 | void setPreviewSize(int width, int height); |
| 77 | void getPreviewSize(int *width, int *height) const; |
| 78 | void getSupportedPreviewSizes(Vector<Size> &sizes) const; |
| 79 | |
| 80 | // Set the dimensions in pixels to the given width and height |
| 81 | // for video frames. The given width and height must be one |
| 82 | // of the supported dimensions returned from |
| 83 | // getSupportedVideoSizes(). Must not be called if |
| 84 | // getSupportedVideoSizes() returns an empty Vector of Size. |
| 85 | void setVideoSize(int width, int height); |
| 86 | // Retrieve the current dimensions (width and height) |
| 87 | // in pixels for video frames, which must be one of the |
| 88 | // supported dimensions returned from getSupportedVideoSizes(). |
| 89 | // Must not be called if getSupportedVideoSizes() returns an |
| 90 | // empty Vector of Size. |
| 91 | void getVideoSize(int *width, int *height) const; |
| 92 | // Retrieve a Vector of supported dimensions (width and height) |
| 93 | // in pixels for video frames. If sizes returned from the method |
| 94 | // is empty, the camera does not support calls to setVideoSize() |
| 95 | // or getVideoSize(). In adddition, it also indicates that |
| 96 | // the camera only has a single output, and does not have |
| 97 | // separate output for video frames and preview frame. |
| 98 | void getSupportedVideoSizes(Vector<Size> &sizes) const; |
| 99 | // Retrieve the preferred preview size (width and height) in pixels |
| 100 | // for video recording. The given width and height must be one of |
| 101 | // supported preview sizes returned from getSupportedPreviewSizes(). |
| 102 | // Must not be called if getSupportedVideoSizes() returns an empty |
| 103 | // Vector of Size. If getSupportedVideoSizes() returns an empty |
| 104 | // Vector of Size, the width and height returned from this method |
| 105 | // is invalid, and is "-1x-1". |
| 106 | void getPreferredPreviewSizeForVideo(int *width, int *height) const; |
| 107 | |
| 108 | void setPreviewFrameRate(int fps); |
| 109 | int getPreviewFrameRate() const; |
| 110 | void getPreviewFpsRange(int *min_fps, int *max_fps) const; |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 111 | #ifdef QCOM_HARDWARE |
| 112 | void setPreviewFrameRateMode(const char *mode); |
| 113 | const char *getPreviewFrameRateMode() const; |
| 114 | #endif |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 115 | void setPreviewFormat(const char *format); |
| 116 | const char *getPreviewFormat() const; |
| 117 | void setPictureSize(int width, int height); |
| 118 | void getPictureSize(int *width, int *height) const; |
| 119 | void getSupportedPictureSizes(Vector<Size> &sizes) const; |
| Kevin Bruckert | a5dd910 | 2012-11-20 04:48:00 -0800 | [diff] [blame] | 120 | void set3DFileFormat(const char* buffer); |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 121 | void setPictureFormat(const char *format); |
| 122 | const char *getPictureFormat() const; |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 123 | #ifdef QCOM_HARDWARE |
| 124 | void setTouchIndexAec(int x, int y); |
| 125 | void getTouchIndexAec(int *x, int *y) const; |
| 126 | void setTouchIndexAf(int x, int y); |
| 127 | void getTouchIndexAf(int *x, int *y) const; |
| 128 | #endif |
| 129 | |
| 130 | void getMeteringAreaCenter(int * x, int *y) const; |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 131 | |
| 132 | void dump() const; |
| 133 | status_t dump(int fd, const Vector<String16>& args) const; |
| 134 | |
| 135 | // Parameter keys to communicate between camera application and driver. |
| 136 | // The access (read/write, read only, or write only) is viewed from the |
| 137 | // perspective of applications, not driver. |
| 138 | |
| 139 | // Preview frame size in pixels (width x height). |
| 140 | // Example value: "480x320". Read/Write. |
| 141 | static const char KEY_PREVIEW_SIZE[]; |
| 142 | // Supported preview frame sizes in pixels. |
| 143 | // Example value: "800x600,480x320". Read only. |
| 144 | static const char KEY_SUPPORTED_PREVIEW_SIZES[]; |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 145 | #ifdef QCOM_HARDWARE |
| 146 | // Supported PREVIEW/RECORDING SIZES IN HIGH FRAME RATE recording, sizes in pixels. |
| 147 | // Example value: "800x480,432x320". Read only. |
| 148 | static const char KEY_SUPPORTED_HFR_SIZES[]; |
| 149 | #endif |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 150 | // The current minimum and maximum preview fps. This controls the rate of |
| 151 | // preview frames received (CAMERA_MSG_PREVIEW_FRAME). The minimum and |
| 152 | // maximum fps must be one of the elements from |
| 153 | // KEY_SUPPORTED_PREVIEW_FPS_RANGE parameter. |
| 154 | // Example value: "10500,26623" |
| 155 | static const char KEY_PREVIEW_FPS_RANGE[]; |
| 156 | // The supported preview fps (frame-per-second) ranges. Each range contains |
| 157 | // a minimum fps and maximum fps. If minimum fps equals to maximum fps, the |
| 158 | // camera outputs frames in fixed frame rate. If not, the camera outputs |
| 159 | // frames in auto frame rate. The actual frame rate fluctuates between the |
| 160 | // minimum and the maximum. The list has at least one element. The list is |
| 161 | // sorted from small to large (first by maximum fps and then minimum fps). |
| 162 | // Example value: "(10500,26623),(15000,26623),(30000,30000)" |
| 163 | static const char KEY_SUPPORTED_PREVIEW_FPS_RANGE[]; |
| 164 | // The image format for preview frames. See CAMERA_MSG_PREVIEW_FRAME in |
| 165 | // frameworks/av/include/camera/Camera.h. The default is |
| 166 | // PIXEL_FORMAT_YUV420SP. Example value: "yuv420sp" or PIXEL_FORMAT_XXX |
| 167 | // constants. Read/write. |
| 168 | static const char KEY_PREVIEW_FORMAT[]; |
| 169 | // Supported image formats for preview frames. |
| 170 | // Example value: "yuv420sp,yuv422i-yuyv". Read only. |
| 171 | static const char KEY_SUPPORTED_PREVIEW_FORMATS[]; |
| 172 | // Number of preview frames per second. This is the target frame rate. The |
| 173 | // actual frame rate depends on the driver. |
| 174 | // Example value: "15". Read/write. |
| 175 | static const char KEY_PREVIEW_FRAME_RATE[]; |
| 176 | // Supported number of preview frames per second. |
| 177 | // Example value: "24,15,10". Read. |
| 178 | static const char KEY_SUPPORTED_PREVIEW_FRAME_RATES[]; |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 179 | #ifdef QCOM_HARDWARE |
| 180 | // The mode of preview frame rate. |
| 181 | // Example value: "frame-rate-auto, frame-rate-fixed". |
| 182 | static const char KEY_PREVIEW_FRAME_RATE_MODE[]; |
| 183 | static const char KEY_SUPPORTED_PREVIEW_FRAME_RATE_MODES[]; |
| 184 | static const char KEY_PREVIEW_FRAME_RATE_AUTO_MODE[]; |
| 185 | static const char KEY_PREVIEW_FRAME_RATE_FIXED_MODE[]; |
| Dorian Snyder | b57c300 | 2013-05-31 22:35:41 -0700 | [diff] [blame] | 186 | #ifdef QCOM_LEGACY_CAM_PARAMS |
| xkonni | cb9bc7f | 2012-08-09 11:05:39 +0200 | [diff] [blame] | 187 | static const char KEY_CAPTURE_MODE[]; |
| 188 | static const char KEY_SUPPORTED_CAPTURE_MODES[]; |
| 189 | static const char KEY_PICTURE_COUNT[]; |
| 190 | static const char KEY_MAX_BURST_PICTURE_COUNT[]; |
| 191 | static const char KEY_SUPPORTED_CONTINUOUS_AF[]; |
| Dorian Snyder | a507ddf | 2013-05-27 02:50:48 -0700 | [diff] [blame] | 192 | static const char KEY_SUPPORTED_CAF[]; |
| xkonni | cb9bc7f | 2012-08-09 11:05:39 +0200 | [diff] [blame] | 193 | static const char CAPTURE_MODE_NORMAL[]; |
| 194 | static const char CAPTURE_MODE_BURST[]; |
| 195 | static const char CAPTURE_MODE_CONTI_BURST[]; |
| 196 | static const char CAPTURE_MODE_HDR[]; |
| 197 | static const char CAPTURE_MODE_HJR[]; |
| 198 | static const char CAPTURE_MODE_PANORAMA[]; |
| Dorian Snyder | b57c300 | 2013-05-31 22:35:41 -0700 | [diff] [blame] | 199 | #endif |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 200 | #endif |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 201 | // The dimensions for captured pictures in pixels (width x height). |
| 202 | // Example value: "1024x768". Read/write. |
| 203 | static const char KEY_PICTURE_SIZE[]; |
| 204 | // Supported dimensions for captured pictures in pixels. |
| 205 | // Example value: "2048x1536,1024x768". Read only. |
| 206 | static const char KEY_SUPPORTED_PICTURE_SIZES[]; |
| Kevin Bruckert | a5dd910 | 2012-11-20 04:48:00 -0800 | [diff] [blame] | 207 | //HTC 3D color format |
| 208 | static const char KEY_SUPPORTED_3D_FILE_FORMAT[]; |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 209 | // The image format for captured pictures. See CAMERA_MSG_COMPRESSED_IMAGE |
| 210 | // in frameworks/base/include/camera/Camera.h. |
| 211 | // Example value: "jpeg" or PIXEL_FORMAT_XXX constants. Read/write. |
| 212 | static const char KEY_PICTURE_FORMAT[]; |
| 213 | // Supported image formats for captured pictures. |
| 214 | // Example value: "jpeg,rgb565". Read only. |
| 215 | static const char KEY_SUPPORTED_PICTURE_FORMATS[]; |
| 216 | // The width (in pixels) of EXIF thumbnail in Jpeg picture. |
| 217 | // Example value: "512". Read/write. |
| 218 | static const char KEY_JPEG_THUMBNAIL_WIDTH[]; |
| 219 | // The height (in pixels) of EXIF thumbnail in Jpeg picture. |
| 220 | // Example value: "384". Read/write. |
| 221 | static const char KEY_JPEG_THUMBNAIL_HEIGHT[]; |
| 222 | // Supported EXIF thumbnail sizes (width x height). 0x0 means not thumbnail |
| 223 | // in EXIF. |
| 224 | // Example value: "512x384,320x240,0x0". Read only. |
| 225 | static const char KEY_SUPPORTED_JPEG_THUMBNAIL_SIZES[]; |
| 226 | // The quality of the EXIF thumbnail in Jpeg picture. The range is 1 to 100, |
| 227 | // with 100 being the best. |
| 228 | // Example value: "90". Read/write. |
| 229 | static const char KEY_JPEG_THUMBNAIL_QUALITY[]; |
| 230 | // Jpeg quality of captured picture. The range is 1 to 100, with 100 being |
| 231 | // the best. |
| 232 | // Example value: "90". Read/write. |
| 233 | static const char KEY_JPEG_QUALITY[]; |
| 234 | // The rotation angle in degrees relative to the orientation of the camera. |
| 235 | // This affects the pictures returned from CAMERA_MSG_COMPRESSED_IMAGE. The |
| 236 | // camera driver may set orientation in the EXIF header without rotating the |
| 237 | // picture. Or the driver may rotate the picture and the EXIF thumbnail. If |
| 238 | // the Jpeg picture is rotated, the orientation in the EXIF header will be |
| 239 | // missing or 1 (row #0 is top and column #0 is left side). |
| 240 | // |
| 241 | // Note that the JPEG pictures of front-facing cameras are not mirrored |
| 242 | // as in preview display. |
| 243 | // |
| 244 | // For example, suppose the natural orientation of the device is portrait. |
| 245 | // The device is rotated 270 degrees clockwise, so the device orientation is |
| 246 | // 270. Suppose a back-facing camera sensor is mounted in landscape and the |
| 247 | // top side of the camera sensor is aligned with the right edge of the |
| 248 | // display in natural orientation. So the camera orientation is 90. The |
| 249 | // rotation should be set to 0 (270 + 90). |
| 250 | // |
| 251 | // Example value: "0" or "90" or "180" or "270". Write only. |
| 252 | static const char KEY_ROTATION[]; |
| 253 | // GPS latitude coordinate. GPSLatitude and GPSLatitudeRef will be stored in |
| 254 | // JPEG EXIF header. |
| 255 | // Example value: "25.032146" or "-33.462809". Write only. |
| 256 | static const char KEY_GPS_LATITUDE[]; |
| 257 | // GPS longitude coordinate. GPSLongitude and GPSLongitudeRef will be stored |
| 258 | // in JPEG EXIF header. |
| 259 | // Example value: "121.564448" or "-70.660286". Write only. |
| 260 | static const char KEY_GPS_LONGITUDE[]; |
| 261 | // GPS altitude. GPSAltitude and GPSAltitudeRef will be stored in JPEG EXIF |
| 262 | // header. |
| 263 | // Example value: "21.0" or "-5". Write only. |
| 264 | static const char KEY_GPS_ALTITUDE[]; |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 265 | |
| 266 | #ifdef QCOM_HARDWARE |
| 267 | static const char KEY_SKIN_TONE_ENHANCEMENT[] ; |
| 268 | static const char KEY_SUPPORTED_SKIN_TONE_ENHANCEMENT_MODES[] ; |
| 269 | #endif |
| 270 | |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 271 | // GPS timestamp (UTC in seconds since January 1, 1970). This should be |
| 272 | // stored in JPEG EXIF header. |
| 273 | // Example value: "1251192757". Write only. |
| 274 | static const char KEY_GPS_TIMESTAMP[]; |
| 275 | // GPS Processing Method |
| 276 | // Example value: "GPS" or "NETWORK". Write only. |
| 277 | static const char KEY_GPS_PROCESSING_METHOD[]; |
| 278 | // Current white balance setting. |
| 279 | // Example value: "auto" or WHITE_BALANCE_XXX constants. Read/write. |
| 280 | static const char KEY_WHITE_BALANCE[]; |
| 281 | // Supported white balance settings. |
| 282 | // Example value: "auto,incandescent,daylight". Read only. |
| 283 | static const char KEY_SUPPORTED_WHITE_BALANCE[]; |
| 284 | // Current color effect setting. |
| 285 | // Example value: "none" or EFFECT_XXX constants. Read/write. |
| 286 | static const char KEY_EFFECT[]; |
| 287 | // Supported color effect settings. |
| 288 | // Example value: "none,mono,sepia". Read only. |
| 289 | static const char KEY_SUPPORTED_EFFECTS[]; |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 290 | #ifdef QCOM_HARDWARE |
| 291 | //Touch Af/AEC settings. |
| 292 | static const char KEY_TOUCH_AF_AEC[]; |
| 293 | static const char KEY_SUPPORTED_TOUCH_AF_AEC[]; |
| 294 | //Touch Index for AEC. |
| 295 | static const char KEY_TOUCH_INDEX_AEC[]; |
| 296 | //Touch Index for AF. |
| 297 | static const char KEY_TOUCH_INDEX_AF[]; |
| 298 | #endif |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 299 | // Current antibanding setting. |
| 300 | // Example value: "auto" or ANTIBANDING_XXX constants. Read/write. |
| 301 | static const char KEY_ANTIBANDING[]; |
| 302 | // Supported antibanding settings. |
| 303 | // Example value: "auto,50hz,60hz,off". Read only. |
| 304 | static const char KEY_SUPPORTED_ANTIBANDING[]; |
| 305 | // Current scene mode. |
| 306 | // Example value: "auto" or SCENE_MODE_XXX constants. Read/write. |
| 307 | static const char KEY_SCENE_MODE[]; |
| 308 | // Supported scene mode settings. |
| 309 | // Example value: "auto,night,fireworks". Read only. |
| 310 | static const char KEY_SUPPORTED_SCENE_MODES[]; |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 311 | #ifdef QCOM_HARDWARE |
| 312 | // Current auto scene detection mode. |
| 313 | // Example value: "off" or SCENE_DETECT_XXX constants. Read/write. |
| 314 | static const char KEY_SCENE_DETECT[]; |
| 315 | // Supported auto scene detection settings. |
| 316 | // Example value: "off,backlight,snow/cloudy". Read only. |
| 317 | static const char KEY_SUPPORTED_SCENE_DETECT[]; |
| 318 | #endif |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 319 | // Current flash mode. |
| 320 | // Example value: "auto" or FLASH_MODE_XXX constants. Read/write. |
| 321 | static const char KEY_FLASH_MODE[]; |
| 322 | // Supported flash modes. |
| 323 | // Example value: "auto,on,off". Read only. |
| 324 | static const char KEY_SUPPORTED_FLASH_MODES[]; |
| 325 | // Current focus mode. This will not be empty. Applications should call |
| 326 | // CameraHardwareInterface.autoFocus to start the focus if focus mode is |
| 327 | // FOCUS_MODE_AUTO or FOCUS_MODE_MACRO. |
| 328 | // Example value: "auto" or FOCUS_MODE_XXX constants. Read/write. |
| 329 | static const char KEY_FOCUS_MODE[]; |
| 330 | // Supported focus modes. |
| 331 | // Example value: "auto,macro,fixed". Read only. |
| 332 | static const char KEY_SUPPORTED_FOCUS_MODES[]; |
| 333 | // The maximum number of focus areas supported. This is the maximum length |
| 334 | // of KEY_FOCUS_AREAS. |
| 335 | // Example value: "0" or "2". Read only. |
| 336 | static const char KEY_MAX_NUM_FOCUS_AREAS[]; |
| 337 | // Current focus areas. |
| 338 | // |
| 339 | // Before accessing this parameter, apps should check |
| 340 | // KEY_MAX_NUM_FOCUS_AREAS first to know the maximum number of focus areas |
| 341 | // first. If the value is 0, focus area is not supported. |
| 342 | // |
| 343 | // Each focus area is a five-element int array. The first four elements are |
| 344 | // the rectangle of the area (left, top, right, bottom). The direction is |
| 345 | // relative to the sensor orientation, that is, what the sensor sees. The |
| 346 | // direction is not affected by the rotation or mirroring of |
| 347 | // CAMERA_CMD_SET_DISPLAY_ORIENTATION. Coordinates range from -1000 to 1000. |
| 348 | // (-1000,-1000) is the upper left point. (1000, 1000) is the lower right |
| 349 | // point. The width and height of focus areas cannot be 0 or negative. |
| 350 | // |
| 351 | // The fifth element is the weight. Values for weight must range from 1 to |
| 352 | // 1000. The weight should be interpreted as a per-pixel weight - all |
| 353 | // pixels in the area have the specified weight. This means a small area |
| 354 | // with the same weight as a larger area will have less influence on the |
| 355 | // focusing than the larger area. Focus areas can partially overlap and the |
| 356 | // driver will add the weights in the overlap region. |
| 357 | // |
| 358 | // A special case of single focus area (0,0,0,0,0) means driver to decide |
| 359 | // the focus area. For example, the driver may use more signals to decide |
| 360 | // focus areas and change them dynamically. Apps can set (0,0,0,0,0) if they |
| 361 | // want the driver to decide focus areas. |
| 362 | // |
| 363 | // Focus areas are relative to the current field of view (KEY_ZOOM). No |
| 364 | // matter what the zoom level is, (-1000,-1000) represents the top of the |
| 365 | // currently visible camera frame. The focus area cannot be set to be |
| 366 | // outside the current field of view, even when using zoom. |
| 367 | // |
| 368 | // Focus area only has effect if the current focus mode is FOCUS_MODE_AUTO, |
| 369 | // FOCUS_MODE_MACRO, FOCUS_MODE_CONTINUOUS_VIDEO, or |
| 370 | // FOCUS_MODE_CONTINUOUS_PICTURE. |
| 371 | // Example value: "(-10,-10,0,0,300),(0,0,10,10,700)". Read/write. |
| 372 | static const char KEY_FOCUS_AREAS[]; |
| 373 | // Focal length in millimeter. |
| 374 | // Example value: "4.31". Read only. |
| 375 | static const char KEY_FOCAL_LENGTH[]; |
| 376 | // Horizontal angle of view in degrees. |
| 377 | // Example value: "54.8". Read only. |
| 378 | static const char KEY_HORIZONTAL_VIEW_ANGLE[]; |
| 379 | // Vertical angle of view in degrees. |
| 380 | // Example value: "42.5". Read only. |
| 381 | static const char KEY_VERTICAL_VIEW_ANGLE[]; |
| 382 | // Exposure compensation index. 0 means exposure is not adjusted. |
| James Painter | e538206 | 2012-09-05 18:02:32 -0700 | [diff] [blame] | 383 | // Example value: "-5" or "5". Read/write. |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 384 | static const char KEY_EXPOSURE_COMPENSATION[]; |
| 385 | // The maximum exposure compensation index (>=0). |
| 386 | // Example value: "6". Read only. |
| 387 | static const char KEY_MAX_EXPOSURE_COMPENSATION[]; |
| 388 | // The minimum exposure compensation index (<=0). |
| 389 | // Example value: "-6". Read only. |
| 390 | static const char KEY_MIN_EXPOSURE_COMPENSATION[]; |
| 391 | // The exposure compensation step. Exposure compensation index multiply by |
| James Painter | e538206 | 2012-09-05 18:02:32 -0700 | [diff] [blame] | 392 | // step eqals to EV. Ex: if exposure compensation index is -6 and step is |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 393 | // 0.3333, EV is -2. |
| 394 | // Example value: "0.333333333" or "0.5". Read only. |
| 395 | static const char KEY_EXPOSURE_COMPENSATION_STEP[]; |
| 396 | // The state of the auto-exposure lock. "true" means that |
| 397 | // auto-exposure is locked to its current value and will not |
| 398 | // change. "false" means the auto-exposure routine is free to |
| 399 | // change exposure values. If auto-exposure is already locked, |
| 400 | // setting this to true again has no effect (the driver will not |
| 401 | // recalculate exposure values). Changing exposure compensation |
| 402 | // settings will still affect the exposure settings while |
| 403 | // auto-exposure is locked. Stopping preview or taking a still |
| 404 | // image will not change the lock. In conjunction with |
| 405 | // exposure compensation, this allows for capturing multi-exposure |
| 406 | // brackets with known relative exposure values. Locking |
| 407 | // auto-exposure after open but before the first call to |
| 408 | // startPreview may result in severely over- or under-exposed |
| 409 | // images. The driver will not change the AE lock after |
| 410 | // auto-focus completes. |
| 411 | static const char KEY_AUTO_EXPOSURE_LOCK[]; |
| 412 | // Whether locking the auto-exposure is supported. "true" means it is, and |
| 413 | // "false" or this key not existing means it is not supported. |
| 414 | static const char KEY_AUTO_EXPOSURE_LOCK_SUPPORTED[]; |
| 415 | // The state of the auto-white balance lock. "true" means that |
| 416 | // auto-white balance is locked to its current value and will not |
| 417 | // change. "false" means the auto-white balance routine is free to |
| 418 | // change white balance values. If auto-white balance is already |
| 419 | // locked, setting this to true again has no effect (the driver |
| 420 | // will not recalculate white balance values). Stopping preview or |
| 421 | // taking a still image will not change the lock. In conjunction |
| 422 | // with exposure compensation, this allows for capturing |
| 423 | // multi-exposure brackets with fixed white balance. Locking |
| 424 | // auto-white balance after open but before the first call to |
| 425 | // startPreview may result in severely incorrect color. The |
| 426 | // driver will not change the AWB lock after auto-focus |
| 427 | // completes. |
| 428 | static const char KEY_AUTO_WHITEBALANCE_LOCK[]; |
| 429 | // Whether locking the auto-white balance is supported. "true" |
| 430 | // means it is, and "false" or this key not existing means it is |
| 431 | // not supported. |
| 432 | static const char KEY_AUTO_WHITEBALANCE_LOCK_SUPPORTED[]; |
| 433 | |
| 434 | // The maximum number of metering areas supported. This is the maximum |
| 435 | // length of KEY_METERING_AREAS. |
| 436 | // Example value: "0" or "2". Read only. |
| 437 | static const char KEY_MAX_NUM_METERING_AREAS[]; |
| 438 | // Current metering areas. Camera driver uses these areas to decide |
| 439 | // exposure. |
| 440 | // |
| 441 | // Before accessing this parameter, apps should check |
| 442 | // KEY_MAX_NUM_METERING_AREAS first to know the maximum number of metering |
| 443 | // areas first. If the value is 0, metering area is not supported. |
| 444 | // |
| 445 | // Each metering area is a rectangle with specified weight. The direction is |
| 446 | // relative to the sensor orientation, that is, what the sensor sees. The |
| 447 | // direction is not affected by the rotation or mirroring of |
| 448 | // CAMERA_CMD_SET_DISPLAY_ORIENTATION. Coordinates of the rectangle range |
| 449 | // from -1000 to 1000. (-1000, -1000) is the upper left point. (1000, 1000) |
| 450 | // is the lower right point. The width and height of metering areas cannot |
| 451 | // be 0 or negative. |
| 452 | // |
| 453 | // The fifth element is the weight. Values for weight must range from 1 to |
| 454 | // 1000. The weight should be interpreted as a per-pixel weight - all |
| 455 | // pixels in the area have the specified weight. This means a small area |
| 456 | // with the same weight as a larger area will have less influence on the |
| 457 | // metering than the larger area. Metering areas can partially overlap and |
| 458 | // the driver will add the weights in the overlap region. |
| 459 | // |
| 460 | // A special case of all-zero single metering area means driver to decide |
| 461 | // the metering area. For example, the driver may use more signals to decide |
| 462 | // metering areas and change them dynamically. Apps can set all-zero if they |
| 463 | // want the driver to decide metering areas. |
| 464 | // |
| 465 | // Metering areas are relative to the current field of view (KEY_ZOOM). |
| 466 | // No matter what the zoom level is, (-1000,-1000) represents the top of the |
| 467 | // currently visible camera frame. The metering area cannot be set to be |
| 468 | // outside the current field of view, even when using zoom. |
| 469 | // |
| 470 | // No matter what metering areas are, the final exposure are compensated |
| 471 | // by KEY_EXPOSURE_COMPENSATION. |
| 472 | // Example value: "(-10,-10,0,0,300),(0,0,10,10,700)". Read/write. |
| 473 | static const char KEY_METERING_AREAS[]; |
| 474 | // Current zoom value. |
| 475 | // Example value: "0" or "6". Read/write. |
| 476 | static const char KEY_ZOOM[]; |
| 477 | // Maximum zoom value. |
| 478 | // Example value: "6". Read only. |
| 479 | static const char KEY_MAX_ZOOM[]; |
| 480 | // The zoom ratios of all zoom values. The zoom ratio is in 1/100 |
| 481 | // increments. Ex: a zoom of 3.2x is returned as 320. The number of list |
| 482 | // elements is KEY_MAX_ZOOM + 1. The first element is always 100. The last |
| 483 | // element is the zoom ratio of zoom value KEY_MAX_ZOOM. |
| 484 | // Example value: "100,150,200,250,300,350,400". Read only. |
| 485 | static const char KEY_ZOOM_RATIOS[]; |
| 486 | // Whether zoom is supported. Zoom is supported if the value is "true". Zoom |
| 487 | // is not supported if the value is not "true" or the key does not exist. |
| 488 | // Example value: "true". Read only. |
| 489 | static const char KEY_ZOOM_SUPPORTED[]; |
| 490 | // Whether if smooth zoom is supported. Smooth zoom is supported if the |
| 491 | // value is "true". It is not supported if the value is not "true" or the |
| 492 | // key does not exist. |
| 493 | // See CAMERA_CMD_START_SMOOTH_ZOOM, CAMERA_CMD_STOP_SMOOTH_ZOOM, and |
| 494 | // CAMERA_MSG_ZOOM in frameworks/base/include/camera/Camera.h. |
| 495 | // Example value: "true". Read only. |
| 496 | static const char KEY_SMOOTH_ZOOM_SUPPORTED[]; |
| 497 | |
| 498 | // The distances (in meters) from the camera to where an object appears to |
| 499 | // be in focus. The object is sharpest at the optimal focus distance. The |
| 500 | // depth of field is the far focus distance minus near focus distance. |
| 501 | // |
| 502 | // Focus distances may change after starting auto focus, canceling auto |
| 503 | // focus, or starting the preview. Applications can read this anytime to get |
| 504 | // the latest focus distances. If the focus mode is FOCUS_MODE_CONTINUOUS, |
| 505 | // focus distances may change from time to time. |
| 506 | // |
| 507 | // This is intended to estimate the distance between the camera and the |
| 508 | // subject. After autofocus, the subject distance may be within near and far |
| 509 | // focus distance. However, the precision depends on the camera hardware, |
| 510 | // autofocus algorithm, the focus area, and the scene. The error can be |
| 511 | // large and it should be only used as a reference. |
| 512 | // |
| 513 | // Far focus distance > optimal focus distance > near focus distance. If |
| 514 | // the far focus distance is infinity, the value should be "Infinity" (case |
| 515 | // sensitive). The format is three float values separated by commas. The |
| 516 | // first is near focus distance. The second is optimal focus distance. The |
| 517 | // third is far focus distance. |
| 518 | // Example value: "0.95,1.9,Infinity" or "0.049,0.05,0.051". Read only. |
| 519 | static const char KEY_FOCUS_DISTANCES[]; |
| 520 | |
| 521 | // The current dimensions in pixels (width x height) for video frames. |
| 522 | // The width and height must be one of the supported sizes retrieved |
| 523 | // via KEY_SUPPORTED_VIDEO_SIZES. |
| 524 | // Example value: "1280x720". Read/write. |
| 525 | static const char KEY_VIDEO_SIZE[]; |
| 526 | // A list of the supported dimensions in pixels (width x height) |
| 527 | // for video frames. See CAMERA_MSG_VIDEO_FRAME for details in |
| 528 | // frameworks/base/include/camera/Camera.h. |
| 529 | // Example: "176x144,1280x720". Read only. |
| 530 | static const char KEY_SUPPORTED_VIDEO_SIZES[]; |
| 531 | |
| 532 | // The maximum number of detected faces supported by hardware face |
| 533 | // detection. If the value is 0, hardware face detection is not supported. |
| 534 | // Example: "5". Read only |
| 535 | static const char KEY_MAX_NUM_DETECTED_FACES_HW[]; |
| 536 | |
| 537 | // The maximum number of detected faces supported by software face |
| 538 | // detection. If the value is 0, software face detection is not supported. |
| 539 | // Example: "5". Read only |
| 540 | static const char KEY_MAX_NUM_DETECTED_FACES_SW[]; |
| 541 | |
| 542 | // Preferred preview frame size in pixels for video recording. |
| 543 | // The width and height must be one of the supported sizes retrieved |
| 544 | // via KEY_SUPPORTED_PREVIEW_SIZES. This key can be used only when |
| 545 | // getSupportedVideoSizes() does not return an empty Vector of Size. |
| 546 | // Camcorder applications are recommended to set the preview size |
| 547 | // to a value that is not larger than the preferred preview size. |
| 548 | // In other words, the product of the width and height of the |
| 549 | // preview size should not be larger than that of the preferred |
| 550 | // preview size. In addition, we recommend to choos a preview size |
| 551 | // that has the same aspect ratio as the resolution of video to be |
| 552 | // recorded. |
| 553 | // Example value: "800x600". Read only. |
| 554 | static const char KEY_PREFERRED_PREVIEW_SIZE_FOR_VIDEO[]; |
| 555 | |
| 556 | // The image format for video frames. See CAMERA_MSG_VIDEO_FRAME in |
| 557 | // frameworks/base/include/camera/Camera.h. |
| 558 | // Example value: "yuv420sp" or PIXEL_FORMAT_XXX constants. Read only. |
| 559 | static const char KEY_VIDEO_FRAME_FORMAT[]; |
| 560 | |
| 561 | // Sets the hint of the recording mode. If this is true, MediaRecorder.start |
| 562 | // may be faster or has less glitches. This should be called before starting |
| 563 | // the preview for the best result. But it is allowed to change the hint |
| 564 | // while the preview is active. The default value is false. |
| 565 | // |
| 566 | // The apps can still call Camera.takePicture when the hint is true. The |
| 567 | // apps can call MediaRecorder.start when the hint is false. But the |
| 568 | // performance may be worse. |
| 569 | // Example value: "true" or "false". Read/write. |
| 570 | static const char KEY_RECORDING_HINT[]; |
| 571 | |
| 572 | // Returns true if video snapshot is supported. That is, applications |
| 573 | // can call Camera.takePicture during recording. Applications do not need to |
| 574 | // call Camera.startPreview after taking a picture. The preview will be |
| 575 | // still active. Other than that, taking a picture during recording is |
| 576 | // identical to taking a picture normally. All settings and methods related |
| 577 | // to takePicture work identically. Ex: KEY_PICTURE_SIZE, |
| 578 | // KEY_SUPPORTED_PICTURE_SIZES, KEY_JPEG_QUALITY, KEY_ROTATION, and etc. |
| 579 | // The picture will have an EXIF header. FLASH_MODE_AUTO and FLASH_MODE_ON |
| 580 | // also still work, but the video will record the flash. |
| 581 | // |
| 582 | // Applications can set shutter callback as null to avoid the shutter |
| 583 | // sound. It is also recommended to set raw picture and post view callbacks |
| 584 | // to null to avoid the interrupt of preview display. |
| 585 | // |
| 586 | // Field-of-view of the recorded video may be different from that of the |
| 587 | // captured pictures. |
| 588 | // Example value: "true" or "false". Read only. |
| 589 | static const char KEY_VIDEO_SNAPSHOT_SUPPORTED[]; |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 590 | static const char KEY_FULL_VIDEO_SNAP_SUPPORTED[]; |
| 591 | |
| 592 | #ifdef QCOM_HARDWARE |
| 593 | static const char KEY_ISO_MODE[]; |
| 594 | static const char KEY_SUPPORTED_ISO_MODES[]; |
| 595 | static const char KEY_LENSSHADE[] ; |
| 596 | static const char KEY_SUPPORTED_LENSSHADE_MODES[] ; |
| 597 | |
| 598 | static const char KEY_AUTO_EXPOSURE[]; |
| 599 | static const char KEY_SUPPORTED_AUTO_EXPOSURE[]; |
| 600 | |
| 601 | static const char KEY_GPS_LATITUDE_REF[]; |
| 602 | static const char KEY_GPS_LONGITUDE_REF[]; |
| 603 | static const char KEY_GPS_ALTITUDE_REF[]; |
| 604 | static const char KEY_GPS_STATUS[]; |
| 605 | static const char KEY_EXIF_DATETIME[]; |
| 606 | #endif |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 607 | |
| 608 | // The state of the video stabilization. If set to true, both the |
| 609 | // preview stream and the recorded video stream are stabilized by |
| 610 | // the camera. Only valid to set if KEY_VIDEO_STABILIZATION_SUPPORTED is |
| 611 | // set to true. |
| 612 | // |
| 613 | // The value of this key can be changed any time the camera is |
| 614 | // open. If preview or recording is active, it is acceptable for |
| 615 | // there to be a slight video glitch when video stabilization is |
| 616 | // toggled on and off. |
| 617 | // |
| 618 | // This only stabilizes video streams (between-frames stabilization), and |
| 619 | // has no effect on still image capture. |
| 620 | static const char KEY_VIDEO_STABILIZATION[]; |
| 621 | |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 622 | #ifdef QCOM_HARDWARE |
| 623 | static const char KEY_MEMORY_COLOR_ENHANCEMENT[]; |
| 624 | static const char KEY_SUPPORTED_MEM_COLOR_ENHANCE_MODES[]; |
| 625 | |
| Dorian Snyder | f32d570 | 2013-03-01 14:25:46 -0800 | [diff] [blame] | 626 | static const char KEY_POWER_MODE_SUPPORTED[]; |
| Emerson Pinter | 8fc4d9e | 2012-11-27 19:52:52 -0200 | [diff] [blame] | 627 | static const char KEY_POWER_MODE[]; |
| 628 | |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 629 | static const char KEY_ZSL[]; |
| 630 | static const char KEY_SUPPORTED_ZSL_MODES[]; |
| 631 | |
| 632 | static const char KEY_CAMERA_MODE[]; |
| 633 | |
| 634 | static const char KEY_VIDEO_HIGH_FRAME_RATE[]; |
| 635 | static const char KEY_SUPPORTED_VIDEO_HIGH_FRAME_RATE_MODES[]; |
| 636 | static const char KEY_HIGH_DYNAMIC_RANGE_IMAGING[]; |
| 637 | static const char KEY_SUPPORTED_HDR_IMAGING_MODES[]; |
| 638 | #endif |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 639 | // Returns true if video stabilization is supported. That is, applications |
| 640 | // can set KEY_VIDEO_STABILIZATION to true and have a stabilized preview |
| 641 | // stream and record stabilized videos. |
| 642 | static const char KEY_VIDEO_STABILIZATION_SUPPORTED[]; |
| 643 | |
| codeworkx | 612842e | 2012-11-27 01:30:33 +0100 | [diff] [blame] | 644 | #ifdef HAVE_ISO |
| 645 | static const char KEY_SUPPORTED_ISO_MODES[]; |
| 646 | static const char KEY_ISO_MODE[]; |
| 647 | #endif |
| 648 | |
| codeworkx | f68caed | 2012-11-27 01:22:13 +0100 | [diff] [blame] | 649 | #ifdef SAMSUNG_CAMERA_HARDWARE |
| 650 | static const char KEY_ANTI_SHAKE_MODE[]; |
| 651 | static const char KEY_METERING[]; |
| 652 | static const char KEY_WDR[]; |
| 653 | static const char KEY_WEATHER[]; |
| Dorian Snyder | b57c300 | 2013-05-31 22:35:41 -0700 | [diff] [blame] | 654 | static const char KEY_CITYID[]; |
| codeworkx | f68caed | 2012-11-27 01:22:13 +0100 | [diff] [blame] | 655 | #endif |
| Daniel Hillenbrand | 8ec1296 | 2013-05-04 19:48:15 +0200 | [diff] [blame] | 656 | |
| 657 | #ifdef HTC_CAMERA_HARDWARE |
| 658 | static const char KEY_TIME_CONS_POST_PROCESSING[]; |
| 659 | static const char KEY_OIS_MODE[]; |
| 660 | static const char KEY_APP_OIS_SETTING[]; |
| 661 | static const char KEY_OIS_SUPPORT[]; |
| 662 | static const char KEY_CONTIBURST_TYPE[]; |
| Dorian Snyder | b57c300 | 2013-05-31 22:35:41 -0700 | [diff] [blame] | 663 | static const char KEY_CAPTURE_MODE[]; |
| 664 | static const char CAPTURE_MODE_NORMAL[]; |
| Daniel Hillenbrand | 8ec1296 | 2013-05-04 19:48:15 +0200 | [diff] [blame] | 665 | static const char CAPTURE_MODE_CONTI_ZOE[]; |
| Dorian Snyder | b57c300 | 2013-05-31 22:35:41 -0700 | [diff] [blame] | 666 | static const char CAPTURE_MODE_CONTI_BURST[]; |
| Daniel Hillenbrand | 8ec1296 | 2013-05-04 19:48:15 +0200 | [diff] [blame] | 667 | static const char CAPTURE_MODE_CONTI_BURST_ONE_SHOT[]; |
| Dorian Snyder | b57c300 | 2013-05-31 22:35:41 -0700 | [diff] [blame] | 668 | static const char CAPTURE_MODE_HDR[]; |
| 669 | static const char CAPTURE_MODE_PANORAMA[]; |
| Daniel Hillenbrand | 8ec1296 | 2013-05-04 19:48:15 +0200 | [diff] [blame] | 670 | static const char CAPTURE_MODE_ZOE[]; |
| 671 | static const char KEY_CONTI_BURST_STATE[]; |
| Dorian Snyder | b57c300 | 2013-05-31 22:35:41 -0700 | [diff] [blame] | 672 | static const char KEY_SUPPORTED_CAPTURE_MODES[]; |
| 673 | static const char KEY_MIN_CONTRAST[]; |
| 674 | static const char KEY_MIN_SHARPNESS[]; |
| 675 | static const char KEY_MIN_SATURATION[]; |
| Daniel Hillenbrand | 8ec1296 | 2013-05-04 19:48:15 +0200 | [diff] [blame] | 676 | static const char KEY_SINGLE_ISP_OUTPUT_ENABLED[]; |
| 677 | static const char POST_PROCESSING_ENABLE[]; |
| 678 | static const char POST_PROCESSING_BYPASS[]; |
| 679 | static const char POST_PROCESSING_DELAY[]; |
| Dorian Snyder | b57c300 | 2013-05-31 22:35:41 -0700 | [diff] [blame] | 680 | static const char SCENE_MODE_OFF[]; |
| Daniel Hillenbrand | 8ec1296 | 2013-05-04 19:48:15 +0200 | [diff] [blame] | 681 | static const char SCENE_MODE_TEXT[]; |
| 682 | static const char BURST_MODE_LIMIT20[]; |
| 683 | static const char BURST_MODE_UNLIMITED[]; |
| 684 | static const char OIS_MODE_OFF[]; |
| 685 | static const char OIS_MODE_ON[]; |
| 686 | static const char CONTI_BURST_CAPTURING[]; |
| 687 | static const char CONTI_BURST_CAPTURE_DONE[]; |
| 688 | static const char APP_OIS_SETTING_FALSE[]; |
| 689 | static const char APP_OIS_SETTING_TRUE[]; |
| Daniel Hillenbrand | 0226d02 | 2013-05-05 15:56:08 +0200 | [diff] [blame] | 690 | static const char KEY_GPU_EFFECT[]; |
| 691 | static const char KEY_GPU_EFFECT_PARAM_0[]; |
| 692 | static const char KEY_GPU_EFFECT_PARAM_1[]; |
| 693 | static const char KEY_GPU_EFFECT_PARAM_2[]; |
| 694 | static const char KEY_GPU_EFFECT_PARAM_3[]; |
| Daniel Hillenbrand | a88ca9d | 2013-06-27 17:16:10 +0200 | [diff] [blame^] | 695 | static const char KEY_FORCE_USE_AUDIO_ENABLED[]; |
| Daniel Hillenbrand | 8ec1296 | 2013-05-04 19:48:15 +0200 | [diff] [blame] | 696 | #endif |
| 697 | |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 698 | static const char KEY_AE_BRACKET_HDR[]; |
| codeworkx | f68caed | 2012-11-27 01:22:13 +0100 | [diff] [blame] | 699 | |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 700 | // Value for KEY_ZOOM_SUPPORTED or KEY_SMOOTH_ZOOM_SUPPORTED. |
| 701 | static const char TRUE[]; |
| 702 | static const char FALSE[]; |
| 703 | |
| 704 | // Value for KEY_FOCUS_DISTANCES. |
| 705 | static const char FOCUS_DISTANCE_INFINITY[]; |
| 706 | |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 707 | #ifdef QCOM_HARDWARE |
| 708 | // DENOISE |
| 709 | static const char KEY_DENOISE[]; |
| 710 | static const char KEY_SUPPORTED_DENOISE[]; |
| 711 | |
| 712 | //Selectable zone AF. |
| 713 | static const char KEY_SELECTABLE_ZONE_AF[]; |
| 714 | static const char KEY_SUPPORTED_SELECTABLE_ZONE_AF[]; |
| 715 | |
| 716 | //Face Detection |
| 717 | static const char KEY_FACE_DETECTION[]; |
| 718 | static const char KEY_SUPPORTED_FACE_DETECTION[]; |
| 719 | |
| 720 | //Redeye Reduction |
| 721 | static const char KEY_REDEYE_REDUCTION[]; |
| 722 | static const char KEY_SUPPORTED_REDEYE_REDUCTION[]; |
| 723 | #endif |
| 724 | |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 725 | // Values for white balance settings. |
| 726 | static const char WHITE_BALANCE_AUTO[]; |
| 727 | static const char WHITE_BALANCE_INCANDESCENT[]; |
| 728 | static const char WHITE_BALANCE_FLUORESCENT[]; |
| 729 | static const char WHITE_BALANCE_WARM_FLUORESCENT[]; |
| 730 | static const char WHITE_BALANCE_DAYLIGHT[]; |
| 731 | static const char WHITE_BALANCE_CLOUDY_DAYLIGHT[]; |
| 732 | static const char WHITE_BALANCE_TWILIGHT[]; |
| 733 | static const char WHITE_BALANCE_SHADE[]; |
| 734 | |
| 735 | // Values for effect settings. |
| 736 | static const char EFFECT_NONE[]; |
| 737 | static const char EFFECT_MONO[]; |
| 738 | static const char EFFECT_NEGATIVE[]; |
| 739 | static const char EFFECT_SOLARIZE[]; |
| 740 | static const char EFFECT_SEPIA[]; |
| 741 | static const char EFFECT_POSTERIZE[]; |
| 742 | static const char EFFECT_WHITEBOARD[]; |
| 743 | static const char EFFECT_BLACKBOARD[]; |
| 744 | static const char EFFECT_AQUA[]; |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 745 | #ifdef QCOM_HARDWARE |
| 746 | static const char EFFECT_EMBOSS[]; |
| 747 | static const char EFFECT_SKETCH[]; |
| 748 | static const char EFFECT_NEON[]; |
| 749 | |
| 750 | // Values for Touch AF/AEC |
| 751 | static const char TOUCH_AF_AEC_OFF[] ; |
| 752 | static const char TOUCH_AF_AEC_ON[] ; |
| 753 | #endif |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 754 | |
| 755 | // Values for antibanding settings. |
| 756 | static const char ANTIBANDING_AUTO[]; |
| 757 | static const char ANTIBANDING_50HZ[]; |
| 758 | static const char ANTIBANDING_60HZ[]; |
| 759 | static const char ANTIBANDING_OFF[]; |
| 760 | |
| 761 | // Values for flash mode settings. |
| 762 | // Flash will not be fired. |
| 763 | static const char FLASH_MODE_OFF[]; |
| 764 | // Flash will be fired automatically when required. The flash may be fired |
| 765 | // during preview, auto-focus, or snapshot depending on the driver. |
| 766 | static const char FLASH_MODE_AUTO[]; |
| 767 | // Flash will always be fired during snapshot. The flash may also be |
| 768 | // fired during preview or auto-focus depending on the driver. |
| 769 | static const char FLASH_MODE_ON[]; |
| 770 | // Flash will be fired in red-eye reduction mode. |
| 771 | static const char FLASH_MODE_RED_EYE[]; |
| 772 | // Constant emission of light during preview, auto-focus and snapshot. |
| 773 | // This can also be used for video recording. |
| 774 | static const char FLASH_MODE_TORCH[]; |
| 775 | |
| 776 | // Values for scene mode settings. |
| 777 | static const char SCENE_MODE_AUTO[]; |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 778 | static const char SCENE_MODE_ASD[]; |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 779 | static const char SCENE_MODE_ACTION[]; |
| 780 | static const char SCENE_MODE_PORTRAIT[]; |
| 781 | static const char SCENE_MODE_LANDSCAPE[]; |
| 782 | static const char SCENE_MODE_NIGHT[]; |
| 783 | static const char SCENE_MODE_NIGHT_PORTRAIT[]; |
| 784 | static const char SCENE_MODE_THEATRE[]; |
| 785 | static const char SCENE_MODE_BEACH[]; |
| 786 | static const char SCENE_MODE_SNOW[]; |
| 787 | static const char SCENE_MODE_SUNSET[]; |
| 788 | static const char SCENE_MODE_STEADYPHOTO[]; |
| 789 | static const char SCENE_MODE_FIREWORKS[]; |
| 790 | static const char SCENE_MODE_SPORTS[]; |
| 791 | static const char SCENE_MODE_PARTY[]; |
| 792 | static const char SCENE_MODE_CANDLELIGHT[]; |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 793 | #ifdef QCOM_HARDWARE |
| 794 | static const char SCENE_MODE_BACKLIGHT[]; |
| 795 | static const char SCENE_MODE_FLOWERS[]; |
| 796 | static const char SCENE_MODE_AR[]; |
| 797 | #endif |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 798 | // Applications are looking for a barcode. Camera driver will be optimized |
| 799 | // for barcode reading. |
| 800 | static const char SCENE_MODE_BARCODE[]; |
| Eino-Ville Talvala | c61b2aa | 2012-09-10 11:59:12 -0700 | [diff] [blame] | 801 | // A high-dynamic range mode. In this mode, the HAL module will use a |
| 802 | // capture strategy that extends the dynamic range of the captured |
| 803 | // image in some fashion. Only the final image is returned. |
| 804 | static const char SCENE_MODE_HDR[]; |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 805 | |
| 806 | // Pixel color formats for KEY_PREVIEW_FORMAT, KEY_PICTURE_FORMAT, |
| 807 | // and KEY_VIDEO_FRAME_FORMAT |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 808 | #ifdef QCOM_HARDWARE |
| 809 | static const char SCENE_DETECT_OFF[]; |
| 810 | static const char SCENE_DETECT_ON[]; |
| 811 | #endif |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 812 | static const char PIXEL_FORMAT_YUV422SP[]; |
| 813 | static const char PIXEL_FORMAT_YUV420SP[]; // NV21 |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 814 | #ifdef QCOM_HARDWARE |
| 815 | static const char PIXEL_FORMAT_YUV420SP_ADRENO[]; // ADRENO |
| 816 | #endif |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 817 | static const char PIXEL_FORMAT_YUV422I[]; // YUY2 |
| 818 | static const char PIXEL_FORMAT_YUV420P[]; // YV12 |
| 819 | static const char PIXEL_FORMAT_RGB565[]; |
| 820 | static const char PIXEL_FORMAT_RGBA8888[]; |
| 821 | static const char PIXEL_FORMAT_JPEG[]; |
| 822 | // Raw bayer format used for images, which is 10 bit precision samples |
| 823 | // stored in 16 bit words. The filter pattern is RGGB. |
| 824 | static const char PIXEL_FORMAT_BAYER_RGGB[]; |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 825 | |
| Eino-Ville Talvala | f6d9696 | 2012-07-18 17:50:46 -0700 | [diff] [blame] | 826 | // Pixel format is not known to the framework |
| 827 | static const char PIXEL_FORMAT_ANDROID_OPAQUE[]; |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 828 | |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 829 | #ifdef QCOM_HARDWARE |
| 830 | static const char PIXEL_FORMAT_RAW[]; |
| 831 | static const char PIXEL_FORMAT_YV12[]; // NV21 |
| 832 | static const char PIXEL_FORMAT_NV12[]; //NV12 |
| 833 | #endif |
| 834 | |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 835 | // Values for focus mode settings. |
| 836 | // Auto-focus mode. Applications should call |
| 837 | // CameraHardwareInterface.autoFocus to start the focus in this mode. |
| 838 | static const char FOCUS_MODE_AUTO[]; |
| 839 | // Focus is set at infinity. Applications should not call |
| 840 | // CameraHardwareInterface.autoFocus in this mode. |
| 841 | static const char FOCUS_MODE_INFINITY[]; |
| 842 | // Macro (close-up) focus mode. Applications should call |
| 843 | // CameraHardwareInterface.autoFocus to start the focus in this mode. |
| 844 | static const char FOCUS_MODE_MACRO[]; |
| 845 | // Focus is fixed. The camera is always in this mode if the focus is not |
| 846 | // adjustable. If the camera has auto-focus, this mode can fix the |
| 847 | // focus, which is usually at hyperfocal distance. Applications should |
| 848 | // not call CameraHardwareInterface.autoFocus in this mode. |
| 849 | static const char FOCUS_MODE_FIXED[]; |
| 850 | // Extended depth of field (EDOF). Focusing is done digitally and |
| 851 | // continuously. Applications should not call |
| 852 | // CameraHardwareInterface.autoFocus in this mode. |
| 853 | static const char FOCUS_MODE_EDOF[]; |
| 854 | // Continuous auto focus mode intended for video recording. The camera |
| 855 | // continuously tries to focus. This is the best choice for video |
| 856 | // recording because the focus changes smoothly . Applications still can |
| 857 | // call CameraHardwareInterface.takePicture in this mode but the subject may |
| 858 | // not be in focus. Auto focus starts when the parameter is set. |
| 859 | // |
| 860 | // Applications can call CameraHardwareInterface.autoFocus in this mode. The |
| 861 | // focus callback will immediately return with a boolean that indicates |
| 862 | // whether the focus is sharp or not. The focus position is locked after |
| 863 | // autoFocus call. If applications want to resume the continuous focus, |
| 864 | // cancelAutoFocus must be called. Restarting the preview will not resume |
| 865 | // the continuous autofocus. To stop continuous focus, applications should |
| 866 | // change the focus mode to other modes. |
| 867 | static const char FOCUS_MODE_CONTINUOUS_VIDEO[]; |
| 868 | // Continuous auto focus mode intended for taking pictures. The camera |
| 869 | // continuously tries to focus. The speed of focus change is more aggressive |
| 870 | // than FOCUS_MODE_CONTINUOUS_VIDEO. Auto focus starts when the parameter is |
| 871 | // set. |
| 872 | // |
| 873 | // Applications can call CameraHardwareInterface.autoFocus in this mode. If |
| 874 | // the autofocus is in the middle of scanning, the focus callback will |
| 875 | // return when it completes. If the autofocus is not scanning, focus |
| 876 | // callback will immediately return with a boolean that indicates whether |
| 877 | // the focus is sharp or not. The apps can then decide if they want to take |
| 878 | // a picture immediately or to change the focus mode to auto, and run a full |
| 879 | // autofocus cycle. The focus position is locked after autoFocus call. If |
| 880 | // applications want to resume the continuous focus, cancelAutoFocus must be |
| 881 | // called. Restarting the preview will not resume the continuous autofocus. |
| 882 | // To stop continuous focus, applications should change the focus mode to |
| 883 | // other modes. |
| 884 | static const char FOCUS_MODE_CONTINUOUS_PICTURE[]; |
| 885 | |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 886 | #ifdef QCOM_HARDWARE |
| Dorian Snyder | b57c300 | 2013-05-31 22:35:41 -0700 | [diff] [blame] | 887 | #ifdef QCOM_LEGACY_CAM_PARAMS |
| xkonni | cb9bc7f | 2012-08-09 11:05:39 +0200 | [diff] [blame] | 888 | static const char FOCUS_MODE_CONTINUOUS_CAMERA[]; |
| 889 | |
| 890 | // Values for Continuous AF |
| 891 | static const char CAF_OFF[] ; |
| 892 | static const char CAF_ON[] ; |
| 893 | // Proprietaries from CodeAurora use these... |
| 894 | static const char CONTINUOUS_AF_OFF[] ; |
| 895 | static const char CONTINUOUS_AF_ON[] ; |
| 896 | static const char KEY_CONTINUOUS_AF[] ; |
| Dorian Snyder | a507ddf | 2013-05-27 02:50:48 -0700 | [diff] [blame] | 897 | static const char KEY_CAF[] ; |
| Dorian Snyder | b57c300 | 2013-05-31 22:35:41 -0700 | [diff] [blame] | 898 | static const char KEY_TAKING_PICTURE_ZOOM[]; |
| 899 | static const char KEY_PANORAMA_MODE[]; |
| 900 | static const char PANORAMA_MODE_NOT_INPROGRESS[]; |
| 901 | static const char PANORAMA_MODE_INPROGRESS[]; |
| 902 | #endif |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 903 | // Normal focus mode. Applications should call |
| 904 | // CameraHardwareInterface.autoFocus to start the focus in this mode. |
| 905 | static const char FOCUS_MODE_NORMAL[]; |
| 906 | static const char ISO_AUTO[]; |
| 907 | static const char ISO_HJR[] ; |
| 908 | static const char ISO_100[]; |
| 909 | static const char ISO_200[] ; |
| 910 | static const char ISO_400[]; |
| 911 | static const char ISO_800[]; |
| 912 | static const char ISO_1600[]; |
| Emerson Pinter | 4eec138 | 2012-11-27 09:13:34 -0200 | [diff] [blame] | 913 | static const char ISO_3200[]; |
| 914 | static const char ISO_6400[]; |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 915 | // Values for Lens Shading |
| 916 | static const char LENSSHADE_ENABLE[] ; |
| 917 | static const char LENSSHADE_DISABLE[] ; |
| 918 | |
| 919 | // Values for auto exposure settings. |
| 920 | static const char AUTO_EXPOSURE_FRAME_AVG[]; |
| 921 | static const char AUTO_EXPOSURE_CENTER_WEIGHTED[]; |
| 922 | static const char AUTO_EXPOSURE_SPOT_METERING[]; |
| 923 | |
| 924 | static const char KEY_SHARPNESS[]; |
| 925 | static const char KEY_MAX_SHARPNESS[]; |
| Dorian Snyder | b57c300 | 2013-05-31 22:35:41 -0700 | [diff] [blame] | 926 | #ifdef QCOM_LEGACY_CAM_PARAMS |
| xkonni | cb9bc7f | 2012-08-09 11:05:39 +0200 | [diff] [blame] | 927 | static const char KEY_MIN_SHARPNESS[]; |
| 928 | #endif |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 929 | static const char KEY_CONTRAST[]; |
| 930 | static const char KEY_MAX_CONTRAST[]; |
| Dorian Snyder | b57c300 | 2013-05-31 22:35:41 -0700 | [diff] [blame] | 931 | #ifdef QCOM_LEGACY_CAM_PARAMS |
| xkonni | cb9bc7f | 2012-08-09 11:05:39 +0200 | [diff] [blame] | 932 | static const char KEY_MIN_CONTRAST[]; |
| 933 | #endif |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 934 | static const char KEY_SATURATION[]; |
| 935 | static const char KEY_MAX_SATURATION[]; |
| Dorian Snyder | b57c300 | 2013-05-31 22:35:41 -0700 | [diff] [blame] | 936 | #ifdef QCOM_LEGACY_CAM_PARAMS |
| xkonni | cb9bc7f | 2012-08-09 11:05:39 +0200 | [diff] [blame] | 937 | static const char KEY_MIN_SATURATION[]; |
| 938 | #endif |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 939 | |
| 940 | static const char KEY_HISTOGRAM[] ; |
| 941 | static const char KEY_SUPPORTED_HISTOGRAM_MODES[] ; |
| 942 | // Values for HISTOGRAM |
| 943 | static const char HISTOGRAM_ENABLE[] ; |
| 944 | static const char HISTOGRAM_DISABLE[] ; |
| 945 | |
| 946 | // Values for SKIN TONE ENHANCEMENT |
| 947 | static const char SKIN_TONE_ENHANCEMENT_ENABLE[] ; |
| 948 | static const char SKIN_TONE_ENHANCEMENT_DISABLE[] ; |
| 949 | |
| 950 | // Values for Denoise |
| 951 | static const char DENOISE_OFF[] ; |
| 952 | static const char DENOISE_ON[] ; |
| 953 | |
| 954 | // Values for auto exposure settings. |
| 955 | static const char SELECTABLE_ZONE_AF_AUTO[]; |
| 956 | static const char SELECTABLE_ZONE_AF_SPOT_METERING[]; |
| 957 | static const char SELECTABLE_ZONE_AF_CENTER_WEIGHTED[]; |
| 958 | static const char SELECTABLE_ZONE_AF_FRAME_AVERAGE[]; |
| 959 | |
| 960 | // Values for Face Detection settings. |
| 961 | static const char FACE_DETECTION_OFF[]; |
| 962 | static const char FACE_DETECTION_ON[]; |
| 963 | |
| Kevin Bruckert | a5dd910 | 2012-11-20 04:48:00 -0800 | [diff] [blame] | 964 | // Values for HTC 3D image settings. |
| 965 | static const char FILE_FORMAT_MPO[]; |
| 966 | static const char FILE_FORMAT_JPS[]; |
| 967 | |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 968 | // Values for MCE settings. |
| 969 | static const char MCE_ENABLE[]; |
| 970 | static const char MCE_DISABLE[]; |
| 971 | |
| 972 | // Values for ZSL settings. |
| 973 | static const char ZSL_OFF[]; |
| 974 | static const char ZSL_ON[]; |
| 975 | |
| 976 | // Values for HDR Bracketing settings. |
| 977 | static const char AE_BRACKET_HDR_OFF[]; |
| 978 | static const char AE_BRACKET_HDR[]; |
| 979 | static const char AE_BRACKET[]; |
| 980 | |
| Emerson Pinter | 8fc4d9e | 2012-11-27 19:52:52 -0200 | [diff] [blame] | 981 | //POWER MODE |
| 982 | static const char LOW_POWER[]; |
| 983 | static const char NORMAL_POWER[]; |
| 984 | |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 985 | // Values for HFR settings. |
| 986 | static const char VIDEO_HFR_OFF[]; |
| 987 | static const char VIDEO_HFR_2X[]; |
| 988 | static const char VIDEO_HFR_3X[]; |
| 989 | static const char VIDEO_HFR_4X[]; |
| 990 | |
| 991 | // Values for Redeye Reduction settings. |
| 992 | static const char REDEYE_REDUCTION_ENABLE[]; |
| 993 | static const char REDEYE_REDUCTION_DISABLE[]; |
| 994 | // Values for HDR settings. |
| 995 | static const char HDR_ENABLE[]; |
| 996 | static const char HDR_DISABLE[]; |
| 997 | |
| Dorian Snyder | a507ddf | 2013-05-27 02:50:48 -0700 | [diff] [blame] | 998 | #if defined(QCOM_HARDWARE) && defined(SAMSUNG_CAMERA_LEGACY) |
| 999 | static const char FOCUS_MODE_FACEDETECT[]; |
| 1000 | static const char FOCUS_MODE_TOUCHAF[]; |
| 1001 | static const char ISO_50[]; |
| 1002 | static const char KEY_ANTI_SHAKE_MODE[]; |
| 1003 | static const char KEY_AUTO_CONTRAST[]; |
| 1004 | static const char KEY_BEAUTY_MODE[]; |
| 1005 | static const char KEY_BLUR_MODE[]; |
| 1006 | static const char KEY_VINTAGE_MODE[]; |
| 1007 | static const char KEY_WDR_MODE[]; |
| 1008 | static const char VINTAGE_MODE_BNW[]; |
| 1009 | static const char VINTAGE_MODE_COOL[]; |
| 1010 | static const char VINTAGE_MODE_NORMAL[]; |
| 1011 | static const char VINTAGE_MODE_OFF[]; |
| 1012 | static const char VINTAGE_MODE_WARM[]; |
| 1013 | static const char SCENE_MODE_DAWN[]; |
| 1014 | static const char SCENE_MODE_DUSKDAWN[]; |
| 1015 | static const char SCENE_MODE_FALL[]; |
| 1016 | static const char SCENE_MODE_FALL_COLOR[]; |
| 1017 | static const char SCENE_MODE_TEXT[]; |
| 1018 | #endif |
| 1019 | |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 1020 | // Values for Redeye Reduction settings. |
| 1021 | // static const char REDEYE_REDUCTION_ENABLE[]; |
| 1022 | // static const char REDEYE_REDUCTION_DISABLE[]; |
| 1023 | // Values for HDR settings. |
| 1024 | // static const char HDR_ENABLE[]; |
| 1025 | // static const char HDR_DISABLE[]; |
| 1026 | |
| 1027 | enum { |
| 1028 | CAMERA_ORIENTATION_UNKNOWN = 0, |
| 1029 | CAMERA_ORIENTATION_PORTRAIT = 1, |
| 1030 | CAMERA_ORIENTATION_LANDSCAPE = 2, |
| 1031 | }; |
| 1032 | int getOrientation() const; |
| 1033 | void setOrientation(int orientation); |
| 1034 | void setPreviewFpsRange(int minFPS,int maxFPS); |
| Dorian Snyder | b57c300 | 2013-05-31 22:35:41 -0700 | [diff] [blame] | 1035 | #ifdef QCOM_LEGACY_CAM_PARAMS |
| Ed Carrigan | daa94b6 | 2012-09-04 22:13:43 -0700 | [diff] [blame] | 1036 | void setPostviewSize(int x, int y); |
| Dorian Snyder | b57c300 | 2013-05-31 22:35:41 -0700 | [diff] [blame] | 1037 | #endif |
| Ankit Premrajka | 140a9ac | 2011-11-21 19:25:02 -0800 | [diff] [blame] | 1038 | void getSupportedHfrSizes(Vector<Size> &sizes) const; |
| 1039 | #endif |
| 1040 | |
| Eino-Ville Talvala | c2d6427 | 2012-05-15 15:38:27 -0700 | [diff] [blame] | 1041 | private: |
| 1042 | DefaultKeyedVector<String8,String8> mMap; |
| 1043 | }; |
| 1044 | |
| 1045 | }; // namespace android |
| 1046 | |
| 1047 | #endif |