summaryrefslogtreecommitdiffstats
path: root/core/java/android/hardware/photography/CameraPropertiesKeys.java
blob: db8ab441ba174150e032b6d161d8a8d1d3ffd588 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
/*
 * Copyright (C) 2013 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.hardware.photography;

import static android.hardware.photography.CameraMetadata.Key;

/**
 * ! Do not edit this file directly !
 *
 * Generated automatically from CameraPropertiesKeys.mako
 *
 * TODO: Include a hash of the input files here that the build can check.
 */

/**
 * The base class for camera controls and information.
 *
 * This class defines the basic key/value map used for querying for camera
 * characteristics or capture results, and for setting camera request
 * parameters.
 *
 * @see CameraProperties
 * @see CameraMetadata
 * @hide
 **/
public final class CameraPropertiesKeys {
    public static final class Control {
        public static final Key<byte[]> AE_AVAILABLE_ANTIBANDING_MODES =
                new Key<byte[]>("android.control.aeAvailableAntibandingModes", byte[].class);
        public static final Key<int[]> AE_AVAILABLE_TARGET_FPS_RANGES =
                new Key<int[]>("android.control.aeAvailableTargetFpsRanges", int[].class);
        public static final Key<int[]> AE_COMPENSATION_RANGE =
                new Key<int[]>("android.control.aeCompensationRange", int[].class);
        public static final Key<Rational> AE_COMPENSATION_STEP =
                new Key<Rational>("android.control.aeCompensationStep", Rational.class);
        public static final Key<byte[]> AF_AVAILABLE_MODES =
                new Key<byte[]>("android.control.afAvailableModes", byte[].class);
        public static final Key<byte[]> AVAILABLE_EFFECTS =
                new Key<byte[]>("android.control.availableEffects", byte[].class);
        public static final Key<byte[]> AVAILABLE_SCENE_MODES =
                new Key<byte[]>("android.control.availableSceneModes", byte[].class);
        public static final Key<byte[]> AVAILABLE_VIDEO_STABILIZATION_MODES =
                new Key<byte[]>("android.control.availableVideoStabilizationModes", byte[].class);
        public static final Key<byte[]> AWB_AVAILABLE_MODES =
                new Key<byte[]>("android.control.awbAvailableModes", byte[].class);
        public static final Key<Integer> MAX_REGIONS =
                new Key<Integer>("android.control.maxRegions", int.class);

    }

    public static final class Flash {
        public static final class Info {
            public static final Key<Byte> AVAILABLE =
                    new Key<Byte>("android.flash.info.available", byte.class);
        }

    }

    public static final class Jpeg {
        public static final Key<android.hardware.photography.Size[]> AVAILABLE_THUMBNAIL_SIZES =
                new Key<android.hardware.photography.Size[]>("android.jpeg.availableThumbnailSizes", android.hardware.photography.Size[].class);

    }

    public static final class Lens {
        public static final class Info {
            public static final Key<float[]> AVAILABLE_APERTURES =
                    new Key<float[]>("android.lens.info.availableApertures", float[].class);
            public static final Key<float[]> AVAILABLE_FILTER_DENSITIES =
                    new Key<float[]>("android.lens.info.availableFilterDensities", float[].class);
            public static final Key<float[]> AVAILABLE_FOCAL_LENGTHS =
                    new Key<float[]>("android.lens.info.availableFocalLengths", float[].class);
            public static final Key<byte[]> AVAILABLE_OPTICAL_STABILIZATION =
                    new Key<byte[]>("android.lens.info.availableOpticalStabilization", byte[].class);
            public static final Key<Float> HYPERFOCAL_DISTANCE =
                    new Key<Float>("android.lens.info.hyperfocalDistance", float.class);
            public static final Key<Float> MINIMUM_FOCUS_DISTANCE =
                    new Key<Float>("android.lens.info.minimumFocusDistance", float.class);
            public static final Key<android.hardware.photography.Size> SHADING_MAP_SIZE =
                    new Key<android.hardware.photography.Size>("android.lens.info.shadingMapSize", android.hardware.photography.Size.class);
        }

            public static final class FacingKey extends Key<Lens.FacingKey.Enum> {
                public enum Enum {
                    FRONT,
                    BACK;
                }

                public static final Enum FRONT = Enum.FRONT;
                public static final Enum BACK = Enum.BACK;

                // TODO: remove requirement for constructor by making Key an interface
                private FacingKey(String name) {
                    super(name, Lens.FacingKey.Enum.class);
                }

            }

        public static final Key<Lens.FacingKey.Enum> FACING =
                new FacingKey("android.lens.facing");

    }

    public static final class Request {
        public static final Key<int[]> MAX_NUM_OUTPUT_STREAMS =
                new Key<int[]>("android.request.maxNumOutputStreams", int[].class);

    }

    public static final class Scaler {

            public static final class AvailableFormatsKey extends Key<Scaler.AvailableFormatsKey.Enum[]> {
                public enum Enum {
                    RAW_SENSOR,
                    YV12,
                    YCrCb_420_SP,
                    IMPLEMENTATION_DEFINED,
                    YCbCr_420_888,
                    BLOB;
                }

                public static final Enum RAW_SENSOR = Enum.RAW_SENSOR;
                public static final Enum YV12 = Enum.YV12;
                public static final Enum YCrCb_420_SP = Enum.YCrCb_420_SP;
                public static final Enum IMPLEMENTATION_DEFINED = Enum.IMPLEMENTATION_DEFINED;
                public static final Enum YCbCr_420_888 = Enum.YCbCr_420_888;
                public static final Enum BLOB = Enum.BLOB;

                // TODO: remove requirement for constructor by making Key an interface
                private AvailableFormatsKey(String name) {
                    super(name, Scaler.AvailableFormatsKey.Enum[].class);
                }

                static {
                    CameraMetadata.registerEnumValues(Scaler.AvailableFormatsKey.Enum.class, new int[] {
                        0x20,  // RAW_SENSOR
                        0x32315659,  // YV12
                        0x11,  // YCrCb_420_SP
                        0x22,  // IMPLEMENTATION_DEFINED
                        0x23,  // YCbCr_420_888
                        0x21  // BLOB
                    });
                }
            }

        public static final Key<Scaler.AvailableFormatsKey.Enum[]> AVAILABLE_FORMATS =
                new AvailableFormatsKey("android.scaler.availableFormats");
        public static final Key<long[]> AVAILABLE_JPEG_MIN_DURATIONS =
                new Key<long[]>("android.scaler.availableJpegMinDurations", long[].class);
        public static final Key<android.hardware.photography.Size[]> AVAILABLE_JPEG_SIZES =
                new Key<android.hardware.photography.Size[]>("android.scaler.availableJpegSizes", android.hardware.photography.Size[].class);
        public static final Key<Float> AVAILABLE_MAX_DIGITAL_ZOOM =
                new Key<Float>("android.scaler.availableMaxDigitalZoom", float.class);
        public static final Key<long[]> AVAILABLE_PROCESSED_MIN_DURATIONS =
                new Key<long[]>("android.scaler.availableProcessedMinDurations", long[].class);
        public static final Key<android.hardware.photography.Size[]> AVAILABLE_PROCESSED_SIZES =
                new Key<android.hardware.photography.Size[]>("android.scaler.availableProcessedSizes", android.hardware.photography.Size[].class);

    }

    public static final class Sensor {
        public static final class Info {
            public static final Key<android.graphics.Rect> ACTIVE_ARRAY_SIZE =
                    new Key<android.graphics.Rect>("android.sensor.info.activeArraySize", android.graphics.Rect.class);
            public static final Key<int[]> SENSITIVITY_RANGE =
                    new Key<int[]>("android.sensor.info.sensitivityRange", int[].class);
            public static final Key<long[]> EXPOSURE_TIME_RANGE =
                    new Key<long[]>("android.sensor.info.exposureTimeRange", long[].class);
            public static final Key<Long> MAX_FRAME_DURATION =
                    new Key<Long>("android.sensor.info.maxFrameDuration", long.class);
            public static final Key<android.hardware.photography.Size> PHYSICAL_SIZE =
                    new Key<android.hardware.photography.Size>("android.sensor.info.physicalSize", android.hardware.photography.Size.class);
        }
        public static final Key<Rational> BASE_GAIN_FACTOR =
                new Key<Rational>("android.sensor.baseGainFactor", Rational.class);
        public static final Key<Integer> MAX_ANALOG_SENSITIVITY =
                new Key<Integer>("android.sensor.maxAnalogSensitivity", int.class);
        public static final Key<Integer> ORIENTATION =
                new Key<Integer>("android.sensor.orientation", int.class);

    }

    public static final class Statistics {
        public static final class Info {
            public static final Key<byte[]> AVAILABLE_FACE_DETECT_MODES =
                    new Key<byte[]>("android.statistics.info.availableFaceDetectModes", byte[].class);
            public static final Key<Integer> MAX_FACE_COUNT =
                    new Key<Integer>("android.statistics.info.maxFaceCount", int.class);
        }

    }

    public static final class Tonemap {
        public static final Key<Integer> MAX_CURVE_POINTS =
                new Key<Integer>("android.tonemap.maxCurvePoints", int.class);

    }

    /**
     * @hide
     */
    public static final class Led {

            /**
             * @hide
             */
            public static final class AvailableLedsKey extends Key<Led.AvailableLedsKey.Enum[]> {
                public enum Enum {
                    TRANSMIT;
                }

                public static final Enum TRANSMIT = Enum.TRANSMIT;

                // TODO: remove requirement for constructor by making Key an interface
                private AvailableLedsKey(String name) {
                    super(name, Led.AvailableLedsKey.Enum[].class);
                }

            }

        /**
         * @hide
         */
        public static final Key<Led.AvailableLedsKey.Enum[]> AVAILABLE_LEDS =
                new AvailableLedsKey("android.led.availableLeds");

    }

    public static final class Info {

            public static final class SupportedHardwareLevelKey extends Key<Info.SupportedHardwareLevelKey.Enum> {
                public enum Enum {
                    LIMITED,
                    FULL;
                }

                public static final Enum LIMITED = Enum.LIMITED;
                public static final Enum FULL = Enum.FULL;

                // TODO: remove requirement for constructor by making Key an interface
                private SupportedHardwareLevelKey(String name) {
                    super(name, Info.SupportedHardwareLevelKey.Enum.class);
                }

            }

        public static final Key<Info.SupportedHardwareLevelKey.Enum> SUPPORTED_HARDWARE_LEVEL =
                new SupportedHardwareLevelKey("android.info.supportedHardwareLevel");

    }

}