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