1c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala/* 2c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala * Copyright (C) 2008 The Android Open Source Project 3c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala * 4c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala * Licensed under the Apache License, Version 2.0 (the "License"); 5c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala * you may not use this file except in compliance with the License. 6c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala * You may obtain a copy of the License at 7c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala * 8c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala * http://www.apache.org/licenses/LICENSE-2.0 9c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala * 10c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala * Unless required by applicable law or agreed to in writing, software 11c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala * distributed under the License is distributed on an "AS IS" BASIS, 12c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala * See the License for the specific language governing permissions and 14c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala * limitations under the License. 15c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala */ 16c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 17c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala#ifndef ANDROID_HARDWARE_CAMERA_PARAMETERS_H 18c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala#define ANDROID_HARDWARE_CAMERA_PARAMETERS_H 19c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 20c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala#include <utils/KeyedVector.h> 21c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala#include <utils/String8.h> 22c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 23c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvalanamespace android { 24c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 25c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvalastruct Size { 26c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala int width; 27c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala int height; 28c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 29c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala Size() { 30c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala width = 0; 31c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala height = 0; 32c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala } 33c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 34c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala Size(int w, int h) { 35c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala width = w; 36c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala height = h; 37c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala } 38c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala}; 39c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 40c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvalaclass CameraParameters 41c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala{ 42c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvalapublic: 43c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala CameraParameters(); 44c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala CameraParameters(const String8 ¶ms) { unflatten(params); } 45c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala ~CameraParameters(); 46c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 47c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala String8 flatten() const; 48c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala void unflatten(const String8 ¶ms); 49c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 50c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala void set(const char *key, const char *value); 51c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala void set(const char *key, int value); 52c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala void setFloat(const char *key, float value); 53c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala const char *get(const char *key) const; 54c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala int getInt(const char *key) const; 55c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala float getFloat(const char *key) const; 56c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 57c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala void remove(const char *key); 58c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 59c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala void setPreviewSize(int width, int height); 60c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala void getPreviewSize(int *width, int *height) const; 61c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala void getSupportedPreviewSizes(Vector<Size> &sizes) const; 62c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 63c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Set the dimensions in pixels to the given width and height 64c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // for video frames. The given width and height must be one 65c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // of the supported dimensions returned from 66c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // getSupportedVideoSizes(). Must not be called if 67c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // getSupportedVideoSizes() returns an empty Vector of Size. 68c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala void setVideoSize(int width, int height); 69c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Retrieve the current dimensions (width and height) 70c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // in pixels for video frames, which must be one of the 71c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // supported dimensions returned from getSupportedVideoSizes(). 72c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Must not be called if getSupportedVideoSizes() returns an 73c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // empty Vector of Size. 74c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala void getVideoSize(int *width, int *height) const; 75c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Retrieve a Vector of supported dimensions (width and height) 76c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // in pixels for video frames. If sizes returned from the method 77c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // is empty, the camera does not support calls to setVideoSize() 78c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // or getVideoSize(). In adddition, it also indicates that 79c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // the camera only has a single output, and does not have 80c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // separate output for video frames and preview frame. 81c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala void getSupportedVideoSizes(Vector<Size> &sizes) const; 82c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Retrieve the preferred preview size (width and height) in pixels 83c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // for video recording. The given width and height must be one of 84c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // supported preview sizes returned from getSupportedPreviewSizes(). 85c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Must not be called if getSupportedVideoSizes() returns an empty 86c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Vector of Size. If getSupportedVideoSizes() returns an empty 87c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Vector of Size, the width and height returned from this method 88c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // is invalid, and is "-1x-1". 89c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala void getPreferredPreviewSizeForVideo(int *width, int *height) const; 90c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 91c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala void setPreviewFrameRate(int fps); 92c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala int getPreviewFrameRate() const; 93c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala void getPreviewFpsRange(int *min_fps, int *max_fps) const; 94c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala void setPreviewFormat(const char *format); 95c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala const char *getPreviewFormat() const; 96c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala void setPictureSize(int width, int height); 97c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala void getPictureSize(int *width, int *height) const; 98c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala void getSupportedPictureSizes(Vector<Size> &sizes) const; 99c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala void setPictureFormat(const char *format); 100c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala const char *getPictureFormat() const; 101c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 102c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala void dump() const; 103c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala status_t dump(int fd, const Vector<String16>& args) const; 104c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 105b2119af7f4ced0ecfefd4c7388f86b4e3a3ea7d8Ruben Brunk /** 106b2119af7f4ced0ecfefd4c7388f86b4e3a3ea7d8Ruben Brunk * Returns a Vector containing the supported preview formats 107b2119af7f4ced0ecfefd4c7388f86b4e3a3ea7d8Ruben Brunk * as enums given in graphics.h. 108b2119af7f4ced0ecfefd4c7388f86b4e3a3ea7d8Ruben Brunk */ 109b2119af7f4ced0ecfefd4c7388f86b4e3a3ea7d8Ruben Brunk void getSupportedPreviewFormats(Vector<int>& formats) const; 110b2119af7f4ced0ecfefd4c7388f86b4e3a3ea7d8Ruben Brunk 111c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Parameter keys to communicate between camera application and driver. 112c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The access (read/write, read only, or write only) is viewed from the 113c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // perspective of applications, not driver. 114c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 115c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Preview frame size in pixels (width x height). 116c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "480x320". Read/Write. 117c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_PREVIEW_SIZE[]; 118c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Supported preview frame sizes in pixels. 119c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "800x600,480x320". Read only. 120c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_SUPPORTED_PREVIEW_SIZES[]; 121c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The current minimum and maximum preview fps. This controls the rate of 122c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // preview frames received (CAMERA_MSG_PREVIEW_FRAME). The minimum and 123c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // maximum fps must be one of the elements from 124c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // KEY_SUPPORTED_PREVIEW_FPS_RANGE parameter. 125c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "10500,26623" 126c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_PREVIEW_FPS_RANGE[]; 127c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The supported preview fps (frame-per-second) ranges. Each range contains 128c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // a minimum fps and maximum fps. If minimum fps equals to maximum fps, the 129c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // camera outputs frames in fixed frame rate. If not, the camera outputs 130c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // frames in auto frame rate. The actual frame rate fluctuates between the 131c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // minimum and the maximum. The list has at least one element. The list is 132c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // sorted from small to large (first by maximum fps and then minimum fps). 133c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "(10500,26623),(15000,26623),(30000,30000)" 134c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_SUPPORTED_PREVIEW_FPS_RANGE[]; 135c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The image format for preview frames. See CAMERA_MSG_PREVIEW_FRAME in 136c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // frameworks/av/include/camera/Camera.h. The default is 137c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // PIXEL_FORMAT_YUV420SP. Example value: "yuv420sp" or PIXEL_FORMAT_XXX 138c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // constants. Read/write. 139c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_PREVIEW_FORMAT[]; 140c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Supported image formats for preview frames. 141c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "yuv420sp,yuv422i-yuyv". Read only. 142c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_SUPPORTED_PREVIEW_FORMATS[]; 143c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Number of preview frames per second. This is the target frame rate. The 144c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // actual frame rate depends on the driver. 145c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "15". Read/write. 146c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_PREVIEW_FRAME_RATE[]; 147c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Supported number of preview frames per second. 148c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "24,15,10". Read. 149c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_SUPPORTED_PREVIEW_FRAME_RATES[]; 150c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The dimensions for captured pictures in pixels (width x height). 151c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "1024x768". Read/write. 152c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_PICTURE_SIZE[]; 153c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Supported dimensions for captured pictures in pixels. 154c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "2048x1536,1024x768". Read only. 155c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_SUPPORTED_PICTURE_SIZES[]; 156c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The image format for captured pictures. See CAMERA_MSG_COMPRESSED_IMAGE 157c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // in frameworks/base/include/camera/Camera.h. 158c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "jpeg" or PIXEL_FORMAT_XXX constants. Read/write. 159c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_PICTURE_FORMAT[]; 160c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Supported image formats for captured pictures. 161c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "jpeg,rgb565". Read only. 162c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_SUPPORTED_PICTURE_FORMATS[]; 163c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The width (in pixels) of EXIF thumbnail in Jpeg picture. 164c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "512". Read/write. 165c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_JPEG_THUMBNAIL_WIDTH[]; 166c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The height (in pixels) of EXIF thumbnail in Jpeg picture. 167c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "384". Read/write. 168c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_JPEG_THUMBNAIL_HEIGHT[]; 169c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Supported EXIF thumbnail sizes (width x height). 0x0 means not thumbnail 170c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // in EXIF. 171c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "512x384,320x240,0x0". Read only. 172c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_SUPPORTED_JPEG_THUMBNAIL_SIZES[]; 173c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The quality of the EXIF thumbnail in Jpeg picture. The range is 1 to 100, 174c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // with 100 being the best. 175c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "90". Read/write. 176c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_JPEG_THUMBNAIL_QUALITY[]; 177c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Jpeg quality of captured picture. The range is 1 to 100, with 100 being 178c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // the best. 179c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "90". Read/write. 180c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_JPEG_QUALITY[]; 181c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The rotation angle in degrees relative to the orientation of the camera. 182c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // This affects the pictures returned from CAMERA_MSG_COMPRESSED_IMAGE. The 183c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // camera driver may set orientation in the EXIF header without rotating the 184c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // picture. Or the driver may rotate the picture and the EXIF thumbnail. If 185c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // the Jpeg picture is rotated, the orientation in the EXIF header will be 186c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // missing or 1 (row #0 is top and column #0 is left side). 187c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 188c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Note that the JPEG pictures of front-facing cameras are not mirrored 189c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // as in preview display. 190c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 191c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // For example, suppose the natural orientation of the device is portrait. 192c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The device is rotated 270 degrees clockwise, so the device orientation is 193c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 270. Suppose a back-facing camera sensor is mounted in landscape and the 194c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // top side of the camera sensor is aligned with the right edge of the 195c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // display in natural orientation. So the camera orientation is 90. The 196c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // rotation should be set to 0 (270 + 90). 197c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 198c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "0" or "90" or "180" or "270". Write only. 199c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_ROTATION[]; 200c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // GPS latitude coordinate. GPSLatitude and GPSLatitudeRef will be stored in 201c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // JPEG EXIF header. 202c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "25.032146" or "-33.462809". Write only. 203c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_GPS_LATITUDE[]; 204c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // GPS longitude coordinate. GPSLongitude and GPSLongitudeRef will be stored 205c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // in JPEG EXIF header. 206c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "121.564448" or "-70.660286". Write only. 207c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_GPS_LONGITUDE[]; 208c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // GPS altitude. GPSAltitude and GPSAltitudeRef will be stored in JPEG EXIF 209c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // header. 210c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "21.0" or "-5". Write only. 211c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_GPS_ALTITUDE[]; 212c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // GPS timestamp (UTC in seconds since January 1, 1970). This should be 213c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // stored in JPEG EXIF header. 214c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "1251192757". Write only. 215c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_GPS_TIMESTAMP[]; 216c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // GPS Processing Method 217c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "GPS" or "NETWORK". Write only. 218c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_GPS_PROCESSING_METHOD[]; 219c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Current white balance setting. 220c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "auto" or WHITE_BALANCE_XXX constants. Read/write. 221c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_WHITE_BALANCE[]; 222c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Supported white balance settings. 223c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "auto,incandescent,daylight". Read only. 224c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_SUPPORTED_WHITE_BALANCE[]; 225c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Current color effect setting. 226c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "none" or EFFECT_XXX constants. Read/write. 227c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_EFFECT[]; 228c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Supported color effect settings. 229c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "none,mono,sepia". Read only. 230c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_SUPPORTED_EFFECTS[]; 231c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Current antibanding setting. 232c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "auto" or ANTIBANDING_XXX constants. Read/write. 233c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_ANTIBANDING[]; 234c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Supported antibanding settings. 235c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "auto,50hz,60hz,off". Read only. 236c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_SUPPORTED_ANTIBANDING[]; 237c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Current scene mode. 238c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "auto" or SCENE_MODE_XXX constants. Read/write. 239c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_SCENE_MODE[]; 240c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Supported scene mode settings. 241c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "auto,night,fireworks". Read only. 242c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_SUPPORTED_SCENE_MODES[]; 243c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Current flash mode. 244c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "auto" or FLASH_MODE_XXX constants. Read/write. 245c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_FLASH_MODE[]; 246c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Supported flash modes. 247c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "auto,on,off". Read only. 248c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_SUPPORTED_FLASH_MODES[]; 249c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Current focus mode. This will not be empty. Applications should call 250c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // CameraHardwareInterface.autoFocus to start the focus if focus mode is 251c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // FOCUS_MODE_AUTO or FOCUS_MODE_MACRO. 252c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "auto" or FOCUS_MODE_XXX constants. Read/write. 253c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_FOCUS_MODE[]; 254c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Supported focus modes. 255c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "auto,macro,fixed". Read only. 256c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_SUPPORTED_FOCUS_MODES[]; 257c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The maximum number of focus areas supported. This is the maximum length 258c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // of KEY_FOCUS_AREAS. 259c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "0" or "2". Read only. 260c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_MAX_NUM_FOCUS_AREAS[]; 261c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Current focus areas. 262c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 263c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Before accessing this parameter, apps should check 264c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // KEY_MAX_NUM_FOCUS_AREAS first to know the maximum number of focus areas 265c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // first. If the value is 0, focus area is not supported. 266c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 267c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Each focus area is a five-element int array. The first four elements are 268c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // the rectangle of the area (left, top, right, bottom). The direction is 269c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // relative to the sensor orientation, that is, what the sensor sees. The 270c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // direction is not affected by the rotation or mirroring of 271c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // CAMERA_CMD_SET_DISPLAY_ORIENTATION. Coordinates range from -1000 to 1000. 272c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // (-1000,-1000) is the upper left point. (1000, 1000) is the lower right 273c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // point. The width and height of focus areas cannot be 0 or negative. 274c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 275c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The fifth element is the weight. Values for weight must range from 1 to 276c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 1000. The weight should be interpreted as a per-pixel weight - all 277c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // pixels in the area have the specified weight. This means a small area 278c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // with the same weight as a larger area will have less influence on the 279c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // focusing than the larger area. Focus areas can partially overlap and the 280c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // driver will add the weights in the overlap region. 281c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 282c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // A special case of single focus area (0,0,0,0,0) means driver to decide 283c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // the focus area. For example, the driver may use more signals to decide 284c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // focus areas and change them dynamically. Apps can set (0,0,0,0,0) if they 285c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // want the driver to decide focus areas. 286c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 287c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Focus areas are relative to the current field of view (KEY_ZOOM). No 288c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // matter what the zoom level is, (-1000,-1000) represents the top of the 289c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // currently visible camera frame. The focus area cannot be set to be 290c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // outside the current field of view, even when using zoom. 291c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 292c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Focus area only has effect if the current focus mode is FOCUS_MODE_AUTO, 293c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // FOCUS_MODE_MACRO, FOCUS_MODE_CONTINUOUS_VIDEO, or 294c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // FOCUS_MODE_CONTINUOUS_PICTURE. 295c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "(-10,-10,0,0,300),(0,0,10,10,700)". Read/write. 296c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_FOCUS_AREAS[]; 297c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Focal length in millimeter. 298c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "4.31". Read only. 299c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_FOCAL_LENGTH[]; 300c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Horizontal angle of view in degrees. 301c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "54.8". Read only. 302c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_HORIZONTAL_VIEW_ANGLE[]; 303c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Vertical angle of view in degrees. 304c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "42.5". Read only. 305c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_VERTICAL_VIEW_ANGLE[]; 306c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Exposure compensation index. 0 means exposure is not adjusted. 307e538206d15282afbc5b168d60b1026a5dfcd13c0James Painter // Example value: "-5" or "5". Read/write. 308c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_EXPOSURE_COMPENSATION[]; 309c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The maximum exposure compensation index (>=0). 310c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "6". Read only. 311c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_MAX_EXPOSURE_COMPENSATION[]; 312c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The minimum exposure compensation index (<=0). 313c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "-6". Read only. 314c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_MIN_EXPOSURE_COMPENSATION[]; 315c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The exposure compensation step. Exposure compensation index multiply by 316e538206d15282afbc5b168d60b1026a5dfcd13c0James Painter // step eqals to EV. Ex: if exposure compensation index is -6 and step is 317c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 0.3333, EV is -2. 318c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "0.333333333" or "0.5". Read only. 319c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_EXPOSURE_COMPENSATION_STEP[]; 320c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The state of the auto-exposure lock. "true" means that 321c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // auto-exposure is locked to its current value and will not 322c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // change. "false" means the auto-exposure routine is free to 323c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // change exposure values. If auto-exposure is already locked, 324c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // setting this to true again has no effect (the driver will not 325c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // recalculate exposure values). Changing exposure compensation 326c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // settings will still affect the exposure settings while 327c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // auto-exposure is locked. Stopping preview or taking a still 328c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // image will not change the lock. In conjunction with 329c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // exposure compensation, this allows for capturing multi-exposure 330c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // brackets with known relative exposure values. Locking 331c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // auto-exposure after open but before the first call to 332c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // startPreview may result in severely over- or under-exposed 333c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // images. The driver will not change the AE lock after 334c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // auto-focus completes. 335c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_AUTO_EXPOSURE_LOCK[]; 336c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Whether locking the auto-exposure is supported. "true" means it is, and 337c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // "false" or this key not existing means it is not supported. 338c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_AUTO_EXPOSURE_LOCK_SUPPORTED[]; 339c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The state of the auto-white balance lock. "true" means that 340c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // auto-white balance is locked to its current value and will not 341c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // change. "false" means the auto-white balance routine is free to 342c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // change white balance values. If auto-white balance is already 343c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // locked, setting this to true again has no effect (the driver 344c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // will not recalculate white balance values). Stopping preview or 345c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // taking a still image will not change the lock. In conjunction 346c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // with exposure compensation, this allows for capturing 347c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // multi-exposure brackets with fixed white balance. Locking 348c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // auto-white balance after open but before the first call to 349c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // startPreview may result in severely incorrect color. The 350c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // driver will not change the AWB lock after auto-focus 351c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // completes. 352c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_AUTO_WHITEBALANCE_LOCK[]; 353c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Whether locking the auto-white balance is supported. "true" 354c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // means it is, and "false" or this key not existing means it is 355c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // not supported. 356c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_AUTO_WHITEBALANCE_LOCK_SUPPORTED[]; 357c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 358c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The maximum number of metering areas supported. This is the maximum 359c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // length of KEY_METERING_AREAS. 360c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "0" or "2". Read only. 361c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_MAX_NUM_METERING_AREAS[]; 362c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Current metering areas. Camera driver uses these areas to decide 363c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // exposure. 364c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 365c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Before accessing this parameter, apps should check 366c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // KEY_MAX_NUM_METERING_AREAS first to know the maximum number of metering 367c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // areas first. If the value is 0, metering area is not supported. 368c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 369c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Each metering area is a rectangle with specified weight. The direction is 370c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // relative to the sensor orientation, that is, what the sensor sees. The 371c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // direction is not affected by the rotation or mirroring of 372c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // CAMERA_CMD_SET_DISPLAY_ORIENTATION. Coordinates of the rectangle range 373c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // from -1000 to 1000. (-1000, -1000) is the upper left point. (1000, 1000) 374c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // is the lower right point. The width and height of metering areas cannot 375c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // be 0 or negative. 376c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 377c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The fifth element is the weight. Values for weight must range from 1 to 378c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 1000. The weight should be interpreted as a per-pixel weight - all 379c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // pixels in the area have the specified weight. This means a small area 380c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // with the same weight as a larger area will have less influence on the 381c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // metering than the larger area. Metering areas can partially overlap and 382c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // the driver will add the weights in the overlap region. 383c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 384c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // A special case of all-zero single metering area means driver to decide 385c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // the metering area. For example, the driver may use more signals to decide 386c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // metering areas and change them dynamically. Apps can set all-zero if they 387c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // want the driver to decide metering areas. 388c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 389c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Metering areas are relative to the current field of view (KEY_ZOOM). 390c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // No matter what the zoom level is, (-1000,-1000) represents the top of the 391c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // currently visible camera frame. The metering area cannot be set to be 392c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // outside the current field of view, even when using zoom. 393c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 394c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // No matter what metering areas are, the final exposure are compensated 395c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // by KEY_EXPOSURE_COMPENSATION. 396c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "(-10,-10,0,0,300),(0,0,10,10,700)". Read/write. 397c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_METERING_AREAS[]; 398c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Current zoom value. 399c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "0" or "6". Read/write. 400c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_ZOOM[]; 401c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Maximum zoom value. 402c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "6". Read only. 403c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_MAX_ZOOM[]; 404c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The zoom ratios of all zoom values. The zoom ratio is in 1/100 405c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // increments. Ex: a zoom of 3.2x is returned as 320. The number of list 406c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // elements is KEY_MAX_ZOOM + 1. The first element is always 100. The last 407c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // element is the zoom ratio of zoom value KEY_MAX_ZOOM. 408c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "100,150,200,250,300,350,400". Read only. 409c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_ZOOM_RATIOS[]; 410c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Whether zoom is supported. Zoom is supported if the value is "true". Zoom 411c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // is not supported if the value is not "true" or the key does not exist. 412c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "true". Read only. 413c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_ZOOM_SUPPORTED[]; 414c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Whether if smooth zoom is supported. Smooth zoom is supported if the 415c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // value is "true". It is not supported if the value is not "true" or the 416c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // key does not exist. 417c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // See CAMERA_CMD_START_SMOOTH_ZOOM, CAMERA_CMD_STOP_SMOOTH_ZOOM, and 418c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // CAMERA_MSG_ZOOM in frameworks/base/include/camera/Camera.h. 419c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "true". Read only. 420c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_SMOOTH_ZOOM_SUPPORTED[]; 421c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 422c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The distances (in meters) from the camera to where an object appears to 423c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // be in focus. The object is sharpest at the optimal focus distance. The 424c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // depth of field is the far focus distance minus near focus distance. 425c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 426c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Focus distances may change after starting auto focus, canceling auto 427c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // focus, or starting the preview. Applications can read this anytime to get 428c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // the latest focus distances. If the focus mode is FOCUS_MODE_CONTINUOUS, 429c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // focus distances may change from time to time. 430c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 431c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // This is intended to estimate the distance between the camera and the 432c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // subject. After autofocus, the subject distance may be within near and far 433c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // focus distance. However, the precision depends on the camera hardware, 434c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // autofocus algorithm, the focus area, and the scene. The error can be 435c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // large and it should be only used as a reference. 436c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 437c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Far focus distance > optimal focus distance > near focus distance. If 438c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // the far focus distance is infinity, the value should be "Infinity" (case 439c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // sensitive). The format is three float values separated by commas. The 440c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // first is near focus distance. The second is optimal focus distance. The 441c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // third is far focus distance. 442c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "0.95,1.9,Infinity" or "0.049,0.05,0.051". Read only. 443c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_FOCUS_DISTANCES[]; 444c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 445c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The current dimensions in pixels (width x height) for video frames. 446c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The width and height must be one of the supported sizes retrieved 447c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // via KEY_SUPPORTED_VIDEO_SIZES. 448c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "1280x720". Read/write. 449c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_VIDEO_SIZE[]; 450c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // A list of the supported dimensions in pixels (width x height) 451c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // for video frames. See CAMERA_MSG_VIDEO_FRAME for details in 452c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // frameworks/base/include/camera/Camera.h. 453c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example: "176x144,1280x720". Read only. 454c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_SUPPORTED_VIDEO_SIZES[]; 455c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 456c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The maximum number of detected faces supported by hardware face 457c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // detection. If the value is 0, hardware face detection is not supported. 458c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example: "5". Read only 459c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_MAX_NUM_DETECTED_FACES_HW[]; 460c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 461c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The maximum number of detected faces supported by software face 462c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // detection. If the value is 0, software face detection is not supported. 463c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example: "5". Read only 464c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_MAX_NUM_DETECTED_FACES_SW[]; 465c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 466c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Preferred preview frame size in pixels for video recording. 467c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The width and height must be one of the supported sizes retrieved 468c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // via KEY_SUPPORTED_PREVIEW_SIZES. This key can be used only when 469c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // getSupportedVideoSizes() does not return an empty Vector of Size. 470c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Camcorder applications are recommended to set the preview size 471c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // to a value that is not larger than the preferred preview size. 472c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // In other words, the product of the width and height of the 473c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // preview size should not be larger than that of the preferred 474c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // preview size. In addition, we recommend to choos a preview size 475c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // that has the same aspect ratio as the resolution of video to be 476c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // recorded. 477c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "800x600". Read only. 478c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_PREFERRED_PREVIEW_SIZE_FOR_VIDEO[]; 479c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 480c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The image format for video frames. See CAMERA_MSG_VIDEO_FRAME in 481c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // frameworks/base/include/camera/Camera.h. 482c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "yuv420sp" or PIXEL_FORMAT_XXX constants. Read only. 483c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_VIDEO_FRAME_FORMAT[]; 484c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 485c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Sets the hint of the recording mode. If this is true, MediaRecorder.start 486c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // may be faster or has less glitches. This should be called before starting 487c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // the preview for the best result. But it is allowed to change the hint 488c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // while the preview is active. The default value is false. 489c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 490c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The apps can still call Camera.takePicture when the hint is true. The 491c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // apps can call MediaRecorder.start when the hint is false. But the 492c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // performance may be worse. 493c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "true" or "false". Read/write. 494c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_RECORDING_HINT[]; 495c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 496c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Returns true if video snapshot is supported. That is, applications 497c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // can call Camera.takePicture during recording. Applications do not need to 498c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // call Camera.startPreview after taking a picture. The preview will be 499c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // still active. Other than that, taking a picture during recording is 500c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // identical to taking a picture normally. All settings and methods related 501c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // to takePicture work identically. Ex: KEY_PICTURE_SIZE, 502c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // KEY_SUPPORTED_PICTURE_SIZES, KEY_JPEG_QUALITY, KEY_ROTATION, and etc. 503c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The picture will have an EXIF header. FLASH_MODE_AUTO and FLASH_MODE_ON 504c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // also still work, but the video will record the flash. 505c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 506c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Applications can set shutter callback as null to avoid the shutter 507c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // sound. It is also recommended to set raw picture and post view callbacks 508c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // to null to avoid the interrupt of preview display. 509c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 510c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Field-of-view of the recorded video may be different from that of the 511c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // captured pictures. 512c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Example value: "true" or "false". Read only. 513c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_VIDEO_SNAPSHOT_SUPPORTED[]; 514c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 515c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The state of the video stabilization. If set to true, both the 516c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // preview stream and the recorded video stream are stabilized by 517c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // the camera. Only valid to set if KEY_VIDEO_STABILIZATION_SUPPORTED is 518c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // set to true. 519c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 520c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // The value of this key can be changed any time the camera is 521c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // open. If preview or recording is active, it is acceptable for 522c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // there to be a slight video glitch when video stabilization is 523c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // toggled on and off. 524c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 525c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // This only stabilizes video streams (between-frames stabilization), and 526c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // has no effect on still image capture. 527c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_VIDEO_STABILIZATION[]; 528c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 529c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Returns true if video stabilization is supported. That is, applications 530c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // can set KEY_VIDEO_STABILIZATION to true and have a stabilized preview 531c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // stream and record stabilized videos. 532c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char KEY_VIDEO_STABILIZATION_SUPPORTED[]; 533c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 534e538206d15282afbc5b168d60b1026a5dfcd13c0James Painter // Supported modes for special effects with light. 535e538206d15282afbc5b168d60b1026a5dfcd13c0James Painter // Example values: "lowlight,hdr". 536e538206d15282afbc5b168d60b1026a5dfcd13c0James Painter static const char KEY_LIGHTFX[]; 537e538206d15282afbc5b168d60b1026a5dfcd13c0James Painter 538c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Value for KEY_ZOOM_SUPPORTED or KEY_SMOOTH_ZOOM_SUPPORTED. 539c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char TRUE[]; 540c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char FALSE[]; 541c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 542c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Value for KEY_FOCUS_DISTANCES. 543c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char FOCUS_DISTANCE_INFINITY[]; 544c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 545c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Values for white balance settings. 546c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char WHITE_BALANCE_AUTO[]; 547c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char WHITE_BALANCE_INCANDESCENT[]; 548c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char WHITE_BALANCE_FLUORESCENT[]; 549c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char WHITE_BALANCE_WARM_FLUORESCENT[]; 550c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char WHITE_BALANCE_DAYLIGHT[]; 551c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char WHITE_BALANCE_CLOUDY_DAYLIGHT[]; 552c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char WHITE_BALANCE_TWILIGHT[]; 553c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char WHITE_BALANCE_SHADE[]; 554c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 555c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Values for effect settings. 556c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char EFFECT_NONE[]; 557c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char EFFECT_MONO[]; 558c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char EFFECT_NEGATIVE[]; 559c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char EFFECT_SOLARIZE[]; 560c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char EFFECT_SEPIA[]; 561c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char EFFECT_POSTERIZE[]; 562c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char EFFECT_WHITEBOARD[]; 563c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char EFFECT_BLACKBOARD[]; 564c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char EFFECT_AQUA[]; 565c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 566c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Values for antibanding settings. 567c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char ANTIBANDING_AUTO[]; 568c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char ANTIBANDING_50HZ[]; 569c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char ANTIBANDING_60HZ[]; 570c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char ANTIBANDING_OFF[]; 571c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 572c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Values for flash mode settings. 573c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Flash will not be fired. 574c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char FLASH_MODE_OFF[]; 575c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Flash will be fired automatically when required. The flash may be fired 576c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // during preview, auto-focus, or snapshot depending on the driver. 577c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char FLASH_MODE_AUTO[]; 578c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Flash will always be fired during snapshot. The flash may also be 579c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // fired during preview or auto-focus depending on the driver. 580c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char FLASH_MODE_ON[]; 581c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Flash will be fired in red-eye reduction mode. 582c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char FLASH_MODE_RED_EYE[]; 583c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Constant emission of light during preview, auto-focus and snapshot. 584c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // This can also be used for video recording. 585c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char FLASH_MODE_TORCH[]; 586c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 587c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Values for scene mode settings. 588c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char SCENE_MODE_AUTO[]; 589c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char SCENE_MODE_ACTION[]; 590c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char SCENE_MODE_PORTRAIT[]; 591c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char SCENE_MODE_LANDSCAPE[]; 592c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char SCENE_MODE_NIGHT[]; 593c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char SCENE_MODE_NIGHT_PORTRAIT[]; 594c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char SCENE_MODE_THEATRE[]; 595c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char SCENE_MODE_BEACH[]; 596c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char SCENE_MODE_SNOW[]; 597c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char SCENE_MODE_SUNSET[]; 598c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char SCENE_MODE_STEADYPHOTO[]; 599c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char SCENE_MODE_FIREWORKS[]; 600c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char SCENE_MODE_SPORTS[]; 601c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char SCENE_MODE_PARTY[]; 602c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char SCENE_MODE_CANDLELIGHT[]; 603c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Applications are looking for a barcode. Camera driver will be optimized 604c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // for barcode reading. 605c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char SCENE_MODE_BARCODE[]; 606c61b2aaab1846dea4b53555696739a3ba704f0ecEino-Ville Talvala // A high-dynamic range mode. In this mode, the HAL module will use a 607c61b2aaab1846dea4b53555696739a3ba704f0ecEino-Ville Talvala // capture strategy that extends the dynamic range of the captured 608c61b2aaab1846dea4b53555696739a3ba704f0ecEino-Ville Talvala // image in some fashion. Only the final image is returned. 609c61b2aaab1846dea4b53555696739a3ba704f0ecEino-Ville Talvala static const char SCENE_MODE_HDR[]; 610c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 611c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Pixel color formats for KEY_PREVIEW_FORMAT, KEY_PICTURE_FORMAT, 612c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // and KEY_VIDEO_FRAME_FORMAT 613c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char PIXEL_FORMAT_YUV422SP[]; 614c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char PIXEL_FORMAT_YUV420SP[]; // NV21 615c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char PIXEL_FORMAT_YUV422I[]; // YUY2 616c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char PIXEL_FORMAT_YUV420P[]; // YV12 617c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char PIXEL_FORMAT_RGB565[]; 618c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char PIXEL_FORMAT_RGBA8888[]; 619c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char PIXEL_FORMAT_JPEG[]; 620c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Raw bayer format used for images, which is 10 bit precision samples 621c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // stored in 16 bit words. The filter pattern is RGGB. 622c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char PIXEL_FORMAT_BAYER_RGGB[]; 623f6d9696bf1db133d16dd8981380e1bfbd2e0bc70Eino-Ville Talvala // Pixel format is not known to the framework 624f6d9696bf1db133d16dd8981380e1bfbd2e0bc70Eino-Ville Talvala static const char PIXEL_FORMAT_ANDROID_OPAQUE[]; 625c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 626c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Values for focus mode settings. 627c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Auto-focus mode. Applications should call 628c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // CameraHardwareInterface.autoFocus to start the focus in this mode. 629c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char FOCUS_MODE_AUTO[]; 630c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Focus is set at infinity. Applications should not call 631c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // CameraHardwareInterface.autoFocus in this mode. 632c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char FOCUS_MODE_INFINITY[]; 633c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Macro (close-up) focus mode. Applications should call 634c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // CameraHardwareInterface.autoFocus to start the focus in this mode. 635c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char FOCUS_MODE_MACRO[]; 636c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Focus is fixed. The camera is always in this mode if the focus is not 637c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // adjustable. If the camera has auto-focus, this mode can fix the 638c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // focus, which is usually at hyperfocal distance. Applications should 639c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // not call CameraHardwareInterface.autoFocus in this mode. 640c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char FOCUS_MODE_FIXED[]; 641c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Extended depth of field (EDOF). Focusing is done digitally and 642c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // continuously. Applications should not call 643c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // CameraHardwareInterface.autoFocus in this mode. 644c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char FOCUS_MODE_EDOF[]; 645c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Continuous auto focus mode intended for video recording. The camera 646c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // continuously tries to focus. This is the best choice for video 647c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // recording because the focus changes smoothly . Applications still can 648c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // call CameraHardwareInterface.takePicture in this mode but the subject may 649c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // not be in focus. Auto focus starts when the parameter is set. 650c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 651c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Applications can call CameraHardwareInterface.autoFocus in this mode. The 652c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // focus callback will immediately return with a boolean that indicates 653c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // whether the focus is sharp or not. The focus position is locked after 654c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // autoFocus call. If applications want to resume the continuous focus, 655c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // cancelAutoFocus must be called. Restarting the preview will not resume 656c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // the continuous autofocus. To stop continuous focus, applications should 657c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // change the focus mode to other modes. 658c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char FOCUS_MODE_CONTINUOUS_VIDEO[]; 659c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Continuous auto focus mode intended for taking pictures. The camera 660c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // continuously tries to focus. The speed of focus change is more aggressive 661c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // than FOCUS_MODE_CONTINUOUS_VIDEO. Auto focus starts when the parameter is 662c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // set. 663c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // 664c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // Applications can call CameraHardwareInterface.autoFocus in this mode. If 665c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // the autofocus is in the middle of scanning, the focus callback will 666c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // return when it completes. If the autofocus is not scanning, focus 667c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // callback will immediately return with a boolean that indicates whether 668c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // the focus is sharp or not. The apps can then decide if they want to take 669c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // a picture immediately or to change the focus mode to auto, and run a full 670c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // autofocus cycle. The focus position is locked after autoFocus call. If 671c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // applications want to resume the continuous focus, cancelAutoFocus must be 672c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // called. Restarting the preview will not resume the continuous autofocus. 673c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // To stop continuous focus, applications should change the focus mode to 674c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala // other modes. 675c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala static const char FOCUS_MODE_CONTINUOUS_PICTURE[]; 676c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 677e538206d15282afbc5b168d60b1026a5dfcd13c0James Painter // Values for light special effects 678e538206d15282afbc5b168d60b1026a5dfcd13c0James Painter // Low-light enhancement mode 679e538206d15282afbc5b168d60b1026a5dfcd13c0James Painter static const char LIGHTFX_LOWLIGHT[]; 680e538206d15282afbc5b168d60b1026a5dfcd13c0James Painter // High-dynamic range mode 681e538206d15282afbc5b168d60b1026a5dfcd13c0James Painter static const char LIGHTFX_HDR[]; 682e538206d15282afbc5b168d60b1026a5dfcd13c0James Painter 683b2119af7f4ced0ecfefd4c7388f86b4e3a3ea7d8Ruben Brunk /** 684b2119af7f4ced0ecfefd4c7388f86b4e3a3ea7d8Ruben Brunk * Returns the the supported preview formats as an enum given in graphics.h 685b2119af7f4ced0ecfefd4c7388f86b4e3a3ea7d8Ruben Brunk * corrsponding to the format given in the input string or -1 if no such 686b2119af7f4ced0ecfefd4c7388f86b4e3a3ea7d8Ruben Brunk * conversion exists. 687b2119af7f4ced0ecfefd4c7388f86b4e3a3ea7d8Ruben Brunk */ 688b2119af7f4ced0ecfefd4c7388f86b4e3a3ea7d8Ruben Brunk static int previewFormatToEnum(const char* format); 689b2119af7f4ced0ecfefd4c7388f86b4e3a3ea7d8Ruben Brunk 690c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvalaprivate: 6911cebdb77323e4554a316b9c34bf36957b7dad5aeEino-Ville Talvala DefaultKeyedVector<String8,String8> mMap; 692c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala}; 693c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 694c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala}; // namespace android 695c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala 696c2d6427f693f1847100c8f4b9a4aff6c1a12bb29Eino-Ville Talvala#endif 697