/* * 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.camera2; import android.annotation.FlaggedApi; import android.annotation.NonNull; import android.annotation.Nullable; import android.compat.annotation.UnsupportedAppUsage; import android.hardware.camera2.impl.CameraMetadataNative; import android.hardware.camera2.impl.ExtensionKey; import android.hardware.camera2.impl.PublicKey; import android.hardware.camera2.impl.SyntheticKey; import android.hardware.camera2.params.DeviceStateSensorOrientationMap; import android.hardware.camera2.params.RecommendedStreamConfigurationMap; import android.hardware.camera2.params.SessionConfiguration; import android.hardware.camera2.utils.TypeReference; import android.os.Build; import android.util.Log; import android.util.Rational; import com.android.internal.annotations.GuardedBy; import com.android.internal.camera.flags.Flags; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Set; import java.util.stream.Collectors; /** *

The properties describing a * {@link CameraDevice CameraDevice}.

* *

These properties are primarily fixed for a given CameraDevice, and can be queried * through the {@link CameraManager CameraManager} * interface with {@link CameraManager#getCameraCharacteristics}. Beginning with API level 32, some * properties such as {@link #SENSOR_ORIENTATION} may change dynamically based on the state of the * device. For information on whether a specific value is fixed, see the documentation for its key. *

* *

When obtained by a client that does not hold the CAMERA permission, some metadata values are * not included. The list of keys that require the permission is given by * {@link #getKeysNeedingPermission}.

* *

{@link CameraCharacteristics} objects are immutable.

* * @see CameraDevice * @see CameraManager */ public final class CameraCharacteristics extends CameraMetadata> { /** * A {@code Key} is used to do camera characteristics field lookups with * {@link CameraCharacteristics#get}. * *

For example, to get the stream configuration map: *

     * StreamConfigurationMap map = cameraCharacteristics.get(
     *      CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);
     * 
*

* *

To enumerate over all possible keys for {@link CameraCharacteristics}, see * {@link CameraCharacteristics#getKeys()}.

* * @see CameraCharacteristics#get * @see CameraCharacteristics#getKeys() */ public static final class Key { private final CameraMetadataNative.Key mKey; /** * Visible for testing and vendor extensions only. * * @hide */ @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) public Key(String name, Class type, long vendorId) { mKey = new CameraMetadataNative.Key(name, type, vendorId); } /** * Visible for testing and vendor extensions only. * * @hide */ public Key(String name, String fallbackName, Class type) { mKey = new CameraMetadataNative.Key(name, fallbackName, type); } /** * Construct a new Key with a given name and type. * *

Normally, applications should use the existing Key definitions in * {@link CameraCharacteristics}, and not need to construct their own Key objects. However, * they may be useful for testing purposes and for defining custom camera * characteristics.

*/ public Key(@NonNull String name, @NonNull Class type) { mKey = new CameraMetadataNative.Key(name, type); } /** * Visible for testing and vendor extensions only. * * @hide */ @UnsupportedAppUsage public Key(String name, TypeReference typeReference) { mKey = new CameraMetadataNative.Key(name, typeReference); } /** * Return a camelCase, period separated name formatted like: * {@code "root.section[.subsections].name"}. * *

Built-in keys exposed by the Android SDK are always prefixed with {@code "android."}; * keys that are device/platform-specific are prefixed with {@code "com."}.

* *

For example, {@code CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP} would * have a name of {@code "android.scaler.streamConfigurationMap"}; whereas a device * specific key might look like {@code "com.google.nexus.data.private"}.

* * @return String representation of the key name */ @NonNull public String getName() { return mKey.getName(); } /** * Return vendor tag id. * * @hide */ public long getVendorId() { return mKey.getVendorId(); } /** * {@inheritDoc} */ @Override public final int hashCode() { return mKey.hashCode(); } /** * {@inheritDoc} */ @SuppressWarnings("unchecked") @Override public final boolean equals(Object o) { return o instanceof Key && ((Key)o).mKey.equals(mKey); } /** * Return this {@link Key} as a string representation. * *

{@code "CameraCharacteristics.Key(%s)"}, where {@code %s} represents * the name of this key as returned by {@link #getName}.

* * @return string representation of {@link Key} */ @NonNull @Override public String toString() { return String.format("CameraCharacteristics.Key(%s)", mKey.getName()); } /** * Visible for CameraMetadataNative implementation only; do not use. * * TODO: Make this private or remove it altogether. * * @hide */ @UnsupportedAppUsage public CameraMetadataNative.Key getNativeKey() { return mKey; } @SuppressWarnings({ "unused", "unchecked" }) private Key(CameraMetadataNative.Key nativeKey) { mKey = (CameraMetadataNative.Key) nativeKey; } } @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553) private final CameraMetadataNative mProperties; private List> mKeys; private List> mKeysNeedingPermission; private List> mAvailableRequestKeys; private List> mAvailableSessionKeys; private List> mAvailableSessionCharacteristicsKeys; private List> mAvailablePhysicalRequestKeys; private List> mAvailableResultKeys; private ArrayList mRecommendedConfigurations; private final Object mLock = new Object(); @GuardedBy("mLock") private boolean mFoldedDeviceState; private CameraManager.DeviceStateListener mFoldStateListener; private static final String TAG = "CameraCharacteristics"; /** * Takes ownership of the passed-in properties object * * @param properties Camera properties. * @hide */ public CameraCharacteristics(CameraMetadataNative properties) { mProperties = CameraMetadataNative.move(properties); setNativeInstance(mProperties); } /** * Returns a copy of the underlying {@link CameraMetadataNative}. * @hide */ public CameraMetadataNative getNativeCopy() { return new CameraMetadataNative(mProperties); } /** * Return the device state listener for this Camera characteristics instance */ CameraManager.DeviceStateListener getDeviceStateListener() { if (mFoldStateListener == null) { mFoldStateListener = new CameraManager.DeviceStateListener() { @Override public final void onDeviceStateChanged(boolean folded) { synchronized (mLock) { mFoldedDeviceState = folded; } }}; } return mFoldStateListener; } /** * Overrides the property value * *

Check whether a given property value needs to be overridden in some specific * case.

* * @param key The characteristics field to override. * @return The value of overridden property, or {@code null} if the property doesn't need an * override. */ @Nullable private T overrideProperty(Key key) { if (CameraCharacteristics.SENSOR_ORIENTATION.equals(key) && (mFoldStateListener != null) && (mProperties.get(CameraCharacteristics.INFO_DEVICE_STATE_ORIENTATIONS) != null)) { DeviceStateSensorOrientationMap deviceStateSensorOrientationMap = mProperties.get(CameraCharacteristics.INFO_DEVICE_STATE_SENSOR_ORIENTATION_MAP); synchronized (mLock) { Integer ret = deviceStateSensorOrientationMap.getSensorOrientation( mFoldedDeviceState ? DeviceStateSensorOrientationMap.FOLDED : DeviceStateSensorOrientationMap.NORMAL); if (ret >= 0) { return (T) ret; } else { Log.w(TAG, "No valid device state to orientation mapping! Using default!"); } } } return null; } /** * Get a camera characteristics field value. * *

The field definitions can be * found in {@link CameraCharacteristics}.

* * @throws IllegalArgumentException if the key was not valid * * @param key The characteristics field to read. * @return The value of that key, or {@code null} if the field is not set. */ @Nullable public T get(Key key) { T propertyOverride = overrideProperty(key); return (propertyOverride != null) ? propertyOverride : mProperties.get(key); } /** * {@inheritDoc} * @hide */ @SuppressWarnings("unchecked") @Override protected T getProtected(Key key) { return (T) mProperties.get(key); } /** * {@inheritDoc} * @hide */ @SuppressWarnings("unchecked") @Override protected Class> getKeyClass() { Object thisClass = Key.class; return (Class>)thisClass; } /** * {@inheritDoc} */ @NonNull @Override public List> getKeys() { // List of keys is immutable; cache the results after we calculate them if (mKeys != null) { return mKeys; } int[] filterTags = get(REQUEST_AVAILABLE_CHARACTERISTICS_KEYS); if (filterTags == null) { throw new AssertionError("android.request.availableCharacteristicsKeys must be non-null" + " in the characteristics"); } mKeys = Collections.unmodifiableList( getKeys(getClass(), getKeyClass(), this, filterTags, true)); return mKeys; } /** *

Returns a subset of the list returned by {@link #getKeys} with all keys that * require camera clients to obtain the {@link android.Manifest.permission#CAMERA} permission. *

* *

If an application calls {@link CameraManager#getCameraCharacteristics} without holding the * {@link android.Manifest.permission#CAMERA} permission, * all keys in this list will not be available, and calling {@link #get} will * return null for those keys. If the application obtains the * {@link android.Manifest.permission#CAMERA} permission, then the * CameraCharacteristics from a call to a subsequent * {@link CameraManager#getCameraCharacteristics} will have the keys available.

* *

The list returned is not modifiable, so any attempts to modify it will throw * a {@code UnsupportedOperationException}.

* *

Each key is only listed once in the list. The order of the keys is undefined.

* * @return List of camera characteristic keys that require the * {@link android.Manifest.permission#CAMERA} permission. The list can be empty in case * there are no currently present keys that need additional permission. */ public @NonNull List> getKeysNeedingPermission() { if (mKeysNeedingPermission == null) { Object crKey = CameraCharacteristics.Key.class; Class> crKeyTyped = (Class>)crKey; int[] filterTags = get(REQUEST_CHARACTERISTIC_KEYS_NEEDING_PERMISSION); if (filterTags == null) { mKeysNeedingPermission = Collections.unmodifiableList( new ArrayList> ()); return mKeysNeedingPermission; } mKeysNeedingPermission = getAvailableKeyList(CameraCharacteristics.class, crKeyTyped, filterTags, /*includeSynthetic*/ false); } return mKeysNeedingPermission; } /** *

Retrieve camera device recommended stream configuration map * {@link RecommendedStreamConfigurationMap} for a given use case.

* *

The stream configurations advertised here are efficient in terms of power and performance * for common use cases like preview, video, snapshot, etc. The recommended maps are usually * only small subsets of the exhaustive list provided in * {@link #SCALER_STREAM_CONFIGURATION_MAP} and suggested for a particular use case by the * camera device implementation. For further information about the expected configurations in * various scenarios please refer to: *

    *
  • {@link RecommendedStreamConfigurationMap#USECASE_PREVIEW}
  • *
  • {@link RecommendedStreamConfigurationMap#USECASE_RECORD}
  • *
  • {@link RecommendedStreamConfigurationMap#USECASE_VIDEO_SNAPSHOT}
  • *
  • {@link RecommendedStreamConfigurationMap#USECASE_SNAPSHOT}
  • *
  • {@link RecommendedStreamConfigurationMap#USECASE_RAW}
  • *
  • {@link RecommendedStreamConfigurationMap#USECASE_ZSL}
  • *
  • {@link RecommendedStreamConfigurationMap#USECASE_LOW_LATENCY_SNAPSHOT}
  • *
*

* *

For example on how this can be used by camera clients to find out the maximum recommended * preview and snapshot resolution, consider the following pseudo-code: *

*

     * public static Size getMaxSize(Size... sizes) {
     *     if (sizes == null || sizes.length == 0) {
     *         throw new IllegalArgumentException("sizes was empty");
     *     }
     *
     *     Size sz = sizes[0];
     *     for (Size size : sizes) {
     *         if (size.getWidth() * size.getHeight() > sz.getWidth() * sz.getHeight()) {
     *             sz = size;
     *         }
     *     }
     *
     *     return sz;
     * }
     *
     * CameraCharacteristics characteristics =
     *         cameraManager.getCameraCharacteristics(cameraId);
     * RecommendedStreamConfigurationMap previewConfig =
     *         characteristics.getRecommendedStreamConfigurationMap(
     *                  RecommendedStreamConfigurationMap.USECASE_PREVIEW);
     * RecommendedStreamConfigurationMap snapshotConfig =
     *         characteristics.getRecommendedStreamConfigurationMap(
     *                  RecommendedStreamConfigurationMap.USECASE_SNAPSHOT);
     *
     * if ((previewConfig != null) && (snapshotConfig != null)) {
     *
     *      Set snapshotSizeSet = snapshotConfig.getOutputSizes(
     *              ImageFormat.JPEG);
     *      Size[] snapshotSizes = new Size[snapshotSizeSet.size()];
     *      snapshotSizes = snapshotSizeSet.toArray(snapshotSizes);
     *      Size suggestedMaxJpegSize = getMaxSize(snapshotSizes);
     *
     *      Set previewSizeSet = snapshotConfig.getOutputSizes(
     *              ImageFormat.PRIVATE);
     *      Size[] previewSizes = new Size[previewSizeSet.size()];
     *      previewSizes = previewSizeSet.toArray(previewSizes);
     *      Size suggestedMaxPreviewSize = getMaxSize(previewSizes);
     * }
     *
     * 
* *

Similar logic can be used for other use cases as well.

* *

Support for recommended stream configurations is optional. In case there a no * suggested configurations for the particular use case, please refer to * {@link #SCALER_STREAM_CONFIGURATION_MAP} for the exhaustive available list.

* * @param usecase Use case id. * * @throws IllegalArgumentException In case the use case argument is invalid. * @return Valid {@link RecommendedStreamConfigurationMap} or null in case the camera device * doesn't have any recommendation for this use case or the recommended configurations * are invalid. */ public @Nullable RecommendedStreamConfigurationMap getRecommendedStreamConfigurationMap( @RecommendedStreamConfigurationMap.RecommendedUsecase int usecase) { if (((usecase >= RecommendedStreamConfigurationMap.USECASE_PREVIEW) && (usecase <= RecommendedStreamConfigurationMap.USECASE_10BIT_OUTPUT)) || ((usecase >= RecommendedStreamConfigurationMap.USECASE_VENDOR_START) && (usecase < RecommendedStreamConfigurationMap.MAX_USECASE_COUNT))) { if (mRecommendedConfigurations == null) { mRecommendedConfigurations = mProperties.getRecommendedStreamConfigurations(); if (mRecommendedConfigurations == null) { return null; } } return mRecommendedConfigurations.get(usecase); } throw new IllegalArgumentException(String.format("Invalid use case: %d", usecase)); } /** *

Returns a subset of {@link #getAvailableCaptureRequestKeys} keys that the * camera device can pass as part of the capture session initialization.

* *

This list includes keys that are difficult to apply per-frame and * can result in unexpected delays when modified during the capture session * lifetime. Typical examples include parameters that require a * time-consuming hardware re-configuration or internal camera pipeline * change. For performance reasons we suggest clients to pass their initial * values as part of {@link SessionConfiguration#setSessionParameters}. Once * the camera capture session is enabled it is also recommended to avoid * changing them from their initial values set in * {@link SessionConfiguration#setSessionParameters }. * Control over session parameters can still be exerted in capture requests * but clients should be aware and expect delays during their application. * An example usage scenario could look like this:

*
    *
  • The camera client starts by querying the session parameter key list via * {@link android.hardware.camera2.CameraCharacteristics#getAvailableSessionKeys }.
  • *
  • Before triggering the capture session create sequence, a capture request * must be built via {@link CameraDevice#createCaptureRequest } using an * appropriate template matching the particular use case.
  • *
  • The client should go over the list of session parameters and check * whether some of the keys listed matches with the parameters that * they intend to modify as part of the first capture request.
  • *
  • If there is no such match, the capture request can be passed * unmodified to {@link SessionConfiguration#setSessionParameters }.
  • *
  • If matches do exist, the client should update the respective values * and pass the request to {@link SessionConfiguration#setSessionParameters }.
  • *
  • After the capture session initialization completes the session parameter * key list can continue to serve as reference when posting or updating * further requests. As mentioned above further changes to session * parameters should ideally be avoided, if updates are necessary * however clients could expect a delay/glitch during the * parameter switch.
  • *
* *

The list returned is not modifiable, so any attempts to modify it will throw * a {@code UnsupportedOperationException}.

* *

Each key is only listed once in the list. The order of the keys is undefined.

* * @return List of keys that can be passed during capture session initialization. In case the * camera device doesn't support such keys the list can be null. */ @SuppressWarnings({"unchecked"}) public List> getAvailableSessionKeys() { if (mAvailableSessionKeys == null) { Object crKey = CaptureRequest.Key.class; Class> crKeyTyped = (Class>)crKey; int[] filterTags = get(REQUEST_AVAILABLE_SESSION_KEYS); if (filterTags == null) { return null; } mAvailableSessionKeys = getAvailableKeyList(CaptureRequest.class, crKeyTyped, filterTags, /*includeSynthetic*/ false); } return mAvailableSessionKeys; } /** *

Get the keys in Camera Characteristics whose values are capture session specific. * The session specific characteristics can be acquired by calling * CameraDevice.getSessionCharacteristics().

* *

Note that getAvailableSessionKeys returns the CaptureRequest keys that are difficult to * apply per-frame, whereas this function returns CameraCharacteristics keys that are dependent * on a particular SessionConfiguration.

* * @return List of CameraCharacteristic keys containing characterisitics specific to a session * configuration. If {@link #INFO_SESSION_CONFIGURATION_QUERY_VERSION} is * {@link Build.VERSION_CODES#VANILLA_ICE_CREAM}, then this list will only contain * CONTROL_ZOOM_RATIO_RANGE and SCALER_AVAILABLE_MAX_DIGITAL_ZOOM * * @see INFO_SESSION_CONFIGURATION_QUERY_VERSION */ @NonNull @FlaggedApi(Flags.FLAG_FEATURE_COMBINATION_QUERY) public List> getAvailableSessionCharacteristicsKeys() { if (mAvailableSessionCharacteristicsKeys != null) { return mAvailableSessionCharacteristicsKeys; } Integer queryVersion = get(INFO_SESSION_CONFIGURATION_QUERY_VERSION); if (queryVersion == null) { mAvailableSessionCharacteristicsKeys = List.of(); return mAvailableSessionCharacteristicsKeys; } mAvailableSessionCharacteristicsKeys = AVAILABLE_SESSION_CHARACTERISTICS_KEYS_MAP.entrySet().stream() .filter(e -> e.getKey() <= queryVersion) .map(Map.Entry::getValue) .flatMap(Arrays::stream) .collect(Collectors.toUnmodifiableList()); return mAvailableSessionCharacteristicsKeys; } /** *

Returns a subset of {@link #getAvailableCaptureRequestKeys} keys that can * be overridden for physical devices backing a logical multi-camera.

* *

This is a subset of android.request.availableRequestKeys which contains a list * of keys that can be overridden using {@link CaptureRequest.Builder#setPhysicalCameraKey }. * The respective value of such request key can be obtained by calling * {@link CaptureRequest.Builder#getPhysicalCameraKey }. Capture requests that contain * individual physical device requests must be built via * {@link android.hardware.camera2.CameraDevice#createCaptureRequest(int, Set)}.

* *

The list returned is not modifiable, so any attempts to modify it will throw * a {@code UnsupportedOperationException}.

* *

Each key is only listed once in the list. The order of the keys is undefined.

* * @return List of keys that can be overridden in individual physical device requests. * In case the camera device doesn't support such keys the list can be null. */ @SuppressWarnings({"unchecked"}) public List> getAvailablePhysicalCameraRequestKeys() { if (mAvailablePhysicalRequestKeys == null) { Object crKey = CaptureRequest.Key.class; Class> crKeyTyped = (Class>)crKey; int[] filterTags = get(REQUEST_AVAILABLE_PHYSICAL_CAMERA_REQUEST_KEYS); if (filterTags == null) { return null; } mAvailablePhysicalRequestKeys = getAvailableKeyList(CaptureRequest.class, crKeyTyped, filterTags, /*includeSynthetic*/ false); } return mAvailablePhysicalRequestKeys; } /** * Returns the list of keys supported by this {@link CameraDevice} for querying * with a {@link CaptureRequest}. * *

The list returned is not modifiable, so any attempts to modify it will throw * a {@code UnsupportedOperationException}.

* *

Each key is only listed once in the list. The order of the keys is undefined.

* *

Note that there is no {@code getAvailableCameraCharacteristicsKeys()} -- use * {@link #getKeys()} instead.

* * @return List of keys supported by this CameraDevice for CaptureRequests. */ @SuppressWarnings({"unchecked"}) @NonNull public List> getAvailableCaptureRequestKeys() { if (mAvailableRequestKeys == null) { Object crKey = CaptureRequest.Key.class; Class> crKeyTyped = (Class>)crKey; int[] filterTags = get(REQUEST_AVAILABLE_REQUEST_KEYS); if (filterTags == null) { throw new AssertionError("android.request.availableRequestKeys must be non-null " + "in the characteristics"); } mAvailableRequestKeys = getAvailableKeyList(CaptureRequest.class, crKeyTyped, filterTags, /*includeSynthetic*/ true); } return mAvailableRequestKeys; } /** * Returns the list of keys supported by this {@link CameraDevice} for querying * with a {@link CaptureResult}. * *

The list returned is not modifiable, so any attempts to modify it will throw * a {@code UnsupportedOperationException}.

* *

Each key is only listed once in the list. The order of the keys is undefined.

* *

Note that there is no {@code getAvailableCameraCharacteristicsKeys()} -- use * {@link #getKeys()} instead.

* * @return List of keys supported by this CameraDevice for CaptureResults. */ @SuppressWarnings({"unchecked"}) @NonNull public List> getAvailableCaptureResultKeys() { if (mAvailableResultKeys == null) { Object crKey = CaptureResult.Key.class; Class> crKeyTyped = (Class>)crKey; int[] filterTags = get(REQUEST_AVAILABLE_RESULT_KEYS); if (filterTags == null) { throw new AssertionError("android.request.availableResultKeys must be non-null " + "in the characteristics"); } mAvailableResultKeys = getAvailableKeyList(CaptureResult.class, crKeyTyped, filterTags, /*includeSynthetic*/ true); } return mAvailableResultKeys; } /** * Returns the list of keys supported by this {@link CameraDevice} by metadataClass. * *

The list returned is not modifiable, so any attempts to modify it will throw * a {@code UnsupportedOperationException}.

* *

Each key is only listed once in the list. The order of the keys is undefined.

* * @param metadataClass The subclass of CameraMetadata that you want to get the keys for. * @param keyClass The class of the metadata key, e.g. CaptureRequest.Key.class * @param filterTags An array of tags to be used for filtering * @param includeSynthetic Include public synthetic tag by default. * * @return List of keys supported by this CameraDevice for metadataClass. * * @throws IllegalArgumentException if metadataClass is not a subclass of CameraMetadata */ List getAvailableKeyList(Class metadataClass, Class keyClass, int[] filterTags, boolean includeSynthetic) { if (metadataClass.equals(CameraMetadata.class)) { throw new AssertionError( "metadataClass must be a strict subclass of CameraMetadata"); } else if (!CameraMetadata.class.isAssignableFrom(metadataClass)) { throw new AssertionError( "metadataClass must be a subclass of CameraMetadata"); } List staticKeyList = getKeys( metadataClass, keyClass, /*instance*/null, filterTags, includeSynthetic); return Collections.unmodifiableList(staticKeyList); } /** * Returns the set of physical camera ids that this logical {@link CameraDevice} is * made up of. * *

A camera device is a logical camera if it has * REQUEST_AVAILABLE_CAPABILITIES_LOGICAL_MULTI_CAMERA capability. If the camera device * doesn't have the capability, the return value will be an empty set.

* *

Prior to API level 29, all returned IDs are guaranteed to be returned by {@link * CameraManager#getCameraIdList}, and can be opened directly by * {@link CameraManager#openCamera}. Starting from API level 29, for each of the returned ID, * if it's also returned by {@link CameraManager#getCameraIdList}, it can be used as a * standalone camera by {@link CameraManager#openCamera}. Otherwise, the camera ID can only be * used as part of the current logical camera.

* *

The set returned is not modifiable, so any attempts to modify it will throw * a {@code UnsupportedOperationException}.

* * @return Set of physical camera ids for this logical camera device. */ @NonNull public Set getPhysicalCameraIds() { return mProperties.getPhysicalCameraIds(); } /*@O~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~ * The key entries below this point are generated from metadata * definitions in /system/media/camera/docs. Do not modify by hand or * modify the comment blocks at the start or end. *~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~*/ /** *

List of aberration correction modes for {@link CaptureRequest#COLOR_CORRECTION_ABERRATION_MODE android.colorCorrection.aberrationMode} that are * supported by this camera device.

*

This key lists the valid modes for {@link CaptureRequest#COLOR_CORRECTION_ABERRATION_MODE android.colorCorrection.aberrationMode}. If no * aberration correction modes are available for a device, this list will solely include * OFF mode. All camera devices will support either OFF or FAST mode.

*

Camera devices that support the MANUAL_POST_PROCESSING capability will always list * OFF mode. This includes all FULL level devices.

*

LEGACY devices will always only support FAST mode.

*

Range of valid values:
* Any value listed in {@link CaptureRequest#COLOR_CORRECTION_ABERRATION_MODE android.colorCorrection.aberrationMode}

*

This key is available on all devices.

* * @see CaptureRequest#COLOR_CORRECTION_ABERRATION_MODE */ @PublicKey @NonNull public static final Key COLOR_CORRECTION_AVAILABLE_ABERRATION_MODES = new Key("android.colorCorrection.availableAberrationModes", int[].class); /** *

List of auto-exposure antibanding modes for {@link CaptureRequest#CONTROL_AE_ANTIBANDING_MODE android.control.aeAntibandingMode} that are * supported by this camera device.

*

Not all of the auto-exposure anti-banding modes may be * supported by a given camera device. This field lists the * valid anti-banding modes that the application may request * for this camera device with the * {@link CaptureRequest#CONTROL_AE_ANTIBANDING_MODE android.control.aeAntibandingMode} control.

*

Range of valid values:
* Any value listed in {@link CaptureRequest#CONTROL_AE_ANTIBANDING_MODE android.control.aeAntibandingMode}

*

This key is available on all devices.

* * @see CaptureRequest#CONTROL_AE_ANTIBANDING_MODE */ @PublicKey @NonNull public static final Key CONTROL_AE_AVAILABLE_ANTIBANDING_MODES = new Key("android.control.aeAvailableAntibandingModes", int[].class); /** *

List of auto-exposure modes for {@link CaptureRequest#CONTROL_AE_MODE android.control.aeMode} that are supported by this camera * device.

*

Not all the auto-exposure modes may be supported by a * given camera device, especially if no flash unit is * available. This entry lists the valid modes for * {@link CaptureRequest#CONTROL_AE_MODE android.control.aeMode} for this camera device.

*

All camera devices support ON, and all camera devices with flash * units support ON_AUTO_FLASH and ON_ALWAYS_FLASH.

*

FULL mode camera devices always support OFF mode, * which enables application control of camera exposure time, * sensitivity, and frame duration.

*

LEGACY mode camera devices never support OFF mode. * LIMITED mode devices support OFF if they support the MANUAL_SENSOR * capability.

*

Range of valid values:
* Any value listed in {@link CaptureRequest#CONTROL_AE_MODE android.control.aeMode}

*

This key is available on all devices.

* * @see CaptureRequest#CONTROL_AE_MODE */ @PublicKey @NonNull public static final Key CONTROL_AE_AVAILABLE_MODES = new Key("android.control.aeAvailableModes", int[].class); /** *

List of frame rate ranges for {@link CaptureRequest#CONTROL_AE_TARGET_FPS_RANGE android.control.aeTargetFpsRange} supported by * this camera device.

*

For devices at the LEGACY level or above:

*
    *
  • *

    For constant-framerate recording, for each normal * {@link android.media.CamcorderProfile CamcorderProfile}, that is, a * {@link android.media.CamcorderProfile CamcorderProfile} that has * {@link android.media.CamcorderProfile#quality quality} in * the range [{@link android.media.CamcorderProfile#QUALITY_LOW QUALITY_LOW}, * {@link android.media.CamcorderProfile#QUALITY_2160P QUALITY_2160P}], if the profile is * supported by the device and has * {@link android.media.CamcorderProfile#videoFrameRate videoFrameRate} x, this list will * always include (x,x).

    *
  • *
  • *

    Also, a camera device must either not support any * {@link android.media.CamcorderProfile CamcorderProfile}, * or support at least one * normal {@link android.media.CamcorderProfile CamcorderProfile} that has * {@link android.media.CamcorderProfile#videoFrameRate videoFrameRate} x >= 24.

    *
  • *
*

For devices at the LIMITED level or above:

*
    *
  • For devices that advertise NIR color filter arrangement in * {@link CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT android.sensor.info.colorFilterArrangement}, this list will always include * (max, max) where max = the maximum output frame rate of the maximum YUV_420_888 * output size.
  • *
  • For devices advertising any color filter arrangement other than NIR, or devices not * advertising color filter arrangement, this list will always include (min, max) and * (max, max) where min <= 15 and max = the maximum output frame rate of the * maximum YUV_420_888 output size.
  • *
*

Units: Frames per second (FPS)

*

This key is available on all devices.

* * @see CaptureRequest#CONTROL_AE_TARGET_FPS_RANGE * @see CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT */ @PublicKey @NonNull public static final Key[]> CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES = new Key[]>("android.control.aeAvailableTargetFpsRanges", new TypeReference[]>() {{ }}); /** *

Maximum and minimum exposure compensation values for * {@link CaptureRequest#CONTROL_AE_EXPOSURE_COMPENSATION android.control.aeExposureCompensation}, in counts of {@link CameraCharacteristics#CONTROL_AE_COMPENSATION_STEP android.control.aeCompensationStep}, * that are supported by this camera device.

*

Range of valid values:

*

Range [0,0] indicates that exposure compensation is not supported.

*

For LIMITED and FULL devices, range must follow below requirements if exposure * compensation is supported (range != [0, 0]):

*

Min.exposure compensation * {@link CameraCharacteristics#CONTROL_AE_COMPENSATION_STEP android.control.aeCompensationStep} <= -2 EV

*

Max.exposure compensation * {@link CameraCharacteristics#CONTROL_AE_COMPENSATION_STEP android.control.aeCompensationStep} >= 2 EV

*

LEGACY devices may support a smaller range than this.

*

This key is available on all devices.

* * @see CameraCharacteristics#CONTROL_AE_COMPENSATION_STEP * @see CaptureRequest#CONTROL_AE_EXPOSURE_COMPENSATION */ @PublicKey @NonNull public static final Key> CONTROL_AE_COMPENSATION_RANGE = new Key>("android.control.aeCompensationRange", new TypeReference>() {{ }}); /** *

Smallest step by which the exposure compensation * can be changed.

*

This is the unit for {@link CaptureRequest#CONTROL_AE_EXPOSURE_COMPENSATION android.control.aeExposureCompensation}. For example, if this key has * a value of 1/2, then a setting of -2 for {@link CaptureRequest#CONTROL_AE_EXPOSURE_COMPENSATION android.control.aeExposureCompensation} means * that the target EV offset for the auto-exposure routine is -1 EV.

*

One unit of EV compensation changes the brightness of the captured image by a factor * of two. +1 EV doubles the image brightness, while -1 EV halves the image brightness.

*

Units: Exposure Value (EV)

*

This key is available on all devices.

* * @see CaptureRequest#CONTROL_AE_EXPOSURE_COMPENSATION */ @PublicKey @NonNull public static final Key CONTROL_AE_COMPENSATION_STEP = new Key("android.control.aeCompensationStep", Rational.class); /** *

List of auto-focus (AF) modes for {@link CaptureRequest#CONTROL_AF_MODE android.control.afMode} that are * supported by this camera device.

*

Not all the auto-focus modes may be supported by a * given camera device. This entry lists the valid modes for * {@link CaptureRequest#CONTROL_AF_MODE android.control.afMode} for this camera device.

*

All LIMITED and FULL mode camera devices will support OFF mode, and all * camera devices with adjustable focuser units * ({@link CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE android.lens.info.minimumFocusDistance} > 0) will support AUTO mode.

*

LEGACY devices will support OFF mode only if they support * focusing to infinity (by also setting {@link CaptureRequest#LENS_FOCUS_DISTANCE android.lens.focusDistance} to * 0.0f).

*

Range of valid values:
* Any value listed in {@link CaptureRequest#CONTROL_AF_MODE android.control.afMode}

*

This key is available on all devices.

* * @see CaptureRequest#CONTROL_AF_MODE * @see CaptureRequest#LENS_FOCUS_DISTANCE * @see CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE */ @PublicKey @NonNull public static final Key CONTROL_AF_AVAILABLE_MODES = new Key("android.control.afAvailableModes", int[].class); /** *

List of color effects for {@link CaptureRequest#CONTROL_EFFECT_MODE android.control.effectMode} that are supported by this camera * device.

*

This list contains the color effect modes that can be applied to * images produced by the camera device. * Implementations are not expected to be consistent across all devices. * If no color effect modes are available for a device, this will only list * OFF.

*

A color effect will only be applied if * {@link CaptureRequest#CONTROL_MODE android.control.mode} != OFF. OFF is always included in this list.

*

This control has no effect on the operation of other control routines such * as auto-exposure, white balance, or focus.

*

Range of valid values:
* Any value listed in {@link CaptureRequest#CONTROL_EFFECT_MODE android.control.effectMode}

*

This key is available on all devices.

* * @see CaptureRequest#CONTROL_EFFECT_MODE * @see CaptureRequest#CONTROL_MODE */ @PublicKey @NonNull public static final Key CONTROL_AVAILABLE_EFFECTS = new Key("android.control.availableEffects", int[].class); /** *

List of scene modes for {@link CaptureRequest#CONTROL_SCENE_MODE android.control.sceneMode} that are supported by this camera * device.

*

This list contains scene modes that can be set for the camera device. * Only scene modes that have been fully implemented for the * camera device may be included here. Implementations are not expected * to be consistent across all devices.

*

If no scene modes are supported by the camera device, this * will be set to DISABLED. Otherwise DISABLED will not be listed.

*

FACE_PRIORITY is always listed if face detection is * supported (i.e.{@link CameraCharacteristics#STATISTICS_INFO_MAX_FACE_COUNT android.statistics.info.maxFaceCount} > * 0).

*

Range of valid values:
* Any value listed in {@link CaptureRequest#CONTROL_SCENE_MODE android.control.sceneMode}

*

This key is available on all devices.

* * @see CaptureRequest#CONTROL_SCENE_MODE * @see CameraCharacteristics#STATISTICS_INFO_MAX_FACE_COUNT */ @PublicKey @NonNull public static final Key CONTROL_AVAILABLE_SCENE_MODES = new Key("android.control.availableSceneModes", int[].class); /** *

List of video stabilization modes for {@link CaptureRequest#CONTROL_VIDEO_STABILIZATION_MODE android.control.videoStabilizationMode} * that are supported by this camera device.

*

OFF will always be listed.

*

Range of valid values:
* Any value listed in {@link CaptureRequest#CONTROL_VIDEO_STABILIZATION_MODE android.control.videoStabilizationMode}

*

This key is available on all devices.

* * @see CaptureRequest#CONTROL_VIDEO_STABILIZATION_MODE */ @PublicKey @NonNull public static final Key CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES = new Key("android.control.availableVideoStabilizationModes", int[].class); /** *

List of auto-white-balance modes for {@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode} that are supported by this * camera device.

*

Not all the auto-white-balance modes may be supported by a * given camera device. This entry lists the valid modes for * {@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode} for this camera device.

*

All camera devices will support ON mode.

*

Camera devices that support the MANUAL_POST_PROCESSING capability will always support OFF * mode, which enables application control of white balance, by using * {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform} and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains}({@link CaptureRequest#COLOR_CORRECTION_MODE android.colorCorrection.mode} must be set to TRANSFORM_MATRIX). This includes all FULL * mode camera devices.

*

Range of valid values:
* Any value listed in {@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode}

*

This key is available on all devices.

* * @see CaptureRequest#COLOR_CORRECTION_GAINS * @see CaptureRequest#COLOR_CORRECTION_MODE * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM * @see CaptureRequest#CONTROL_AWB_MODE */ @PublicKey @NonNull public static final Key CONTROL_AWB_AVAILABLE_MODES = new Key("android.control.awbAvailableModes", int[].class); /** *

List of the maximum number of regions that can be used for metering in * auto-exposure (AE), auto-white balance (AWB), and auto-focus (AF); * this corresponds to the maximum number of elements in * {@link CaptureRequest#CONTROL_AE_REGIONS android.control.aeRegions}, {@link CaptureRequest#CONTROL_AWB_REGIONS android.control.awbRegions}, * and {@link CaptureRequest#CONTROL_AF_REGIONS android.control.afRegions}.

*

Range of valid values:

*

Value must be >= 0 for each element. For full-capability devices * this value must be >= 1 for AE and AF. The order of the elements is: * (AE, AWB, AF).

*

This key is available on all devices.

* * @see CaptureRequest#CONTROL_AE_REGIONS * @see CaptureRequest#CONTROL_AF_REGIONS * @see CaptureRequest#CONTROL_AWB_REGIONS * @hide */ public static final Key CONTROL_MAX_REGIONS = new Key("android.control.maxRegions", int[].class); /** *

The maximum number of metering regions that can be used by the auto-exposure (AE) * routine.

*

This corresponds to the maximum allowed number of elements in * {@link CaptureRequest#CONTROL_AE_REGIONS android.control.aeRegions}.

*

Range of valid values:
* Value will be >= 0. For FULL-capability devices, this * value will be >= 1.

*

This key is available on all devices.

* * @see CaptureRequest#CONTROL_AE_REGIONS */ @PublicKey @NonNull @SyntheticKey public static final Key CONTROL_MAX_REGIONS_AE = new Key("android.control.maxRegionsAe", int.class); /** *

The maximum number of metering regions that can be used by the auto-white balance (AWB) * routine.

*

This corresponds to the maximum allowed number of elements in * {@link CaptureRequest#CONTROL_AWB_REGIONS android.control.awbRegions}.

*

Range of valid values:
* Value will be >= 0.

*

This key is available on all devices.

* * @see CaptureRequest#CONTROL_AWB_REGIONS */ @PublicKey @NonNull @SyntheticKey public static final Key CONTROL_MAX_REGIONS_AWB = new Key("android.control.maxRegionsAwb", int.class); /** *

The maximum number of metering regions that can be used by the auto-focus (AF) routine.

*

This corresponds to the maximum allowed number of elements in * {@link CaptureRequest#CONTROL_AF_REGIONS android.control.afRegions}.

*

Range of valid values:
* Value will be >= 0. For FULL-capability devices, this * value will be >= 1.

*

This key is available on all devices.

* * @see CaptureRequest#CONTROL_AF_REGIONS */ @PublicKey @NonNull @SyntheticKey public static final Key CONTROL_MAX_REGIONS_AF = new Key("android.control.maxRegionsAf", int.class); /** *

List of available high speed video size, fps range and max batch size configurations * supported by the camera device, in the format of (width, height, fps_min, fps_max, batch_size_max).

*

When CONSTRAINED_HIGH_SPEED_VIDEO is supported in {@link CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES android.request.availableCapabilities}, * this metadata will list the supported high speed video size, fps range and max batch size * configurations. All the sizes listed in this configuration will be a subset of the sizes * reported by {@link android.hardware.camera2.params.StreamConfigurationMap#getOutputSizes } * for processed non-stalling formats.

*

For the high speed video use case, the application must * select the video size and fps range from this metadata to configure the recording and * preview streams and setup the recording requests. For example, if the application intends * to do high speed recording, it can select the maximum size reported by this metadata to * configure output streams. Once the size is selected, application can filter this metadata * by selected size and get the supported fps ranges, and use these fps ranges to setup the * recording requests. Note that for the use case of multiple output streams, application * must select one unique size from this metadata to use (e.g., preview and recording streams * must have the same size). Otherwise, the high speed capture session creation will fail.

*

The min and max fps will be multiple times of 30fps.

*

High speed video streaming extends significant performance pressure to camera hardware, * to achieve efficient high speed streaming, the camera device may have to aggregate * multiple frames together and send to camera device for processing where the request * controls are same for all the frames in this batch. Max batch size indicates * the max possible number of frames the camera device will group together for this high * speed stream configuration. This max batch size will be used to generate a high speed * recording request list by * {@link android.hardware.camera2.CameraConstrainedHighSpeedCaptureSession#createHighSpeedRequestList }. * The max batch size for each configuration will satisfy below conditions:

*
    *
  • Each max batch size will be a divisor of its corresponding fps_max / 30. For example, * if max_fps is 300, max batch size will only be 1, 2, 5, or 10.
  • *
  • The camera device may choose smaller internal batch size for each configuration, but * the actual batch size will be a divisor of max batch size. For example, if the max batch * size is 8, the actual batch size used by camera device will only be 1, 2, 4, or 8.
  • *
  • The max batch size in each configuration entry must be no larger than 32.
  • *
*

The camera device doesn't have to support batch mode to achieve high speed video recording, * in such case, batch_size_max will be reported as 1 in each configuration entry.

*

This fps ranges in this configuration list can only be used to create requests * that are submitted to a high speed camera capture session created by * {@link android.hardware.camera2.CameraDevice#createConstrainedHighSpeedCaptureSession }. * The fps ranges reported in this metadata must not be used to setup capture requests for * normal capture session, or it will cause request error.

*

Range of valid values:

*

For each configuration, the fps_max >= 120fps.

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES * @hide */ public static final Key CONTROL_AVAILABLE_HIGH_SPEED_VIDEO_CONFIGURATIONS = new Key("android.control.availableHighSpeedVideoConfigurations", android.hardware.camera2.params.HighSpeedVideoConfiguration[].class); /** *

Whether the camera device supports {@link CaptureRequest#CONTROL_AE_LOCK android.control.aeLock}

*

Devices with MANUAL_SENSOR capability or BURST_CAPTURE capability will always * list true. This includes FULL devices.

*

This key is available on all devices.

* * @see CaptureRequest#CONTROL_AE_LOCK */ @PublicKey @NonNull public static final Key CONTROL_AE_LOCK_AVAILABLE = new Key("android.control.aeLockAvailable", boolean.class); /** *

Whether the camera device supports {@link CaptureRequest#CONTROL_AWB_LOCK android.control.awbLock}

*

Devices with MANUAL_POST_PROCESSING capability or BURST_CAPTURE capability will * always list true. This includes FULL devices.

*

This key is available on all devices.

* * @see CaptureRequest#CONTROL_AWB_LOCK */ @PublicKey @NonNull public static final Key CONTROL_AWB_LOCK_AVAILABLE = new Key("android.control.awbLockAvailable", boolean.class); /** *

List of control modes for {@link CaptureRequest#CONTROL_MODE android.control.mode} that are supported by this camera * device.

*

This list contains control modes that can be set for the camera device. * LEGACY mode devices will always support AUTO mode. LIMITED and FULL * devices will always support OFF, AUTO modes.

*

Range of valid values:
* Any value listed in {@link CaptureRequest#CONTROL_MODE android.control.mode}

*

This key is available on all devices.

* * @see CaptureRequest#CONTROL_MODE */ @PublicKey @NonNull public static final Key CONTROL_AVAILABLE_MODES = new Key("android.control.availableModes", int[].class); /** *

Range of boosts for {@link CaptureRequest#CONTROL_POST_RAW_SENSITIVITY_BOOST android.control.postRawSensitivityBoost} supported * by this camera device.

*

Devices support post RAW sensitivity boost will advertise * {@link CaptureRequest#CONTROL_POST_RAW_SENSITIVITY_BOOST android.control.postRawSensitivityBoost} key for controlling * post RAW sensitivity boost.

*

This key will be null for devices that do not support any RAW format * outputs. For devices that do support RAW format outputs, this key will always * present, and if a device does not support post RAW sensitivity boost, it will * list (100, 100) in this key.

*

Units: ISO arithmetic units, the same as {@link CaptureRequest#SENSOR_SENSITIVITY android.sensor.sensitivity}

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#CONTROL_POST_RAW_SENSITIVITY_BOOST * @see CaptureRequest#SENSOR_SENSITIVITY */ @PublicKey @NonNull public static final Key> CONTROL_POST_RAW_SENSITIVITY_BOOST_RANGE = new Key>("android.control.postRawSensitivityBoostRange", new TypeReference>() {{ }}); /** *

The list of extended scene modes for {@link CaptureRequest#CONTROL_EXTENDED_SCENE_MODE android.control.extendedSceneMode} that are supported * by this camera device, and each extended scene mode's maximum streaming (non-stall) size * with effect.

*

For DISABLED mode, the camera behaves normally with no extended scene mode enabled.

*

For BOKEH_STILL_CAPTURE mode, the maximum streaming dimension specifies the limit * under which bokeh is effective when capture intent is PREVIEW. Note that when capture * intent is PREVIEW, the bokeh effect may not be as high in quality compared to * STILL_CAPTURE intent in order to maintain reasonable frame rate. The maximum streaming * dimension must be one of the YUV_420_888 or PRIVATE resolutions in * availableStreamConfigurations, or (0, 0) if preview bokeh is not supported. If the * application configures a stream larger than the maximum streaming dimension, bokeh * effect may not be applied for this stream for PREVIEW intent.

*

For BOKEH_CONTINUOUS mode, the maximum streaming dimension specifies the limit under * which bokeh is effective. This dimension must be one of the YUV_420_888 or PRIVATE * resolutions in availableStreamConfigurations, and if the sensor maximum resolution is * larger than or equal to 1080p, the maximum streaming dimension must be at least 1080p. * If the application configures a stream with larger dimension, the stream may not have * bokeh effect applied.

*

Units: (mode, width, height)

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CaptureRequest#CONTROL_EXTENDED_SCENE_MODE * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @hide */ public static final Key CONTROL_AVAILABLE_EXTENDED_SCENE_MODE_MAX_SIZES = new Key("android.control.availableExtendedSceneModeMaxSizes", int[].class); /** *

The ranges of supported zoom ratio for non-DISABLED {@link CaptureRequest#CONTROL_EXTENDED_SCENE_MODE android.control.extendedSceneMode}.

*

When extended scene mode is set, the camera device may have limited range of zoom ratios * compared to when extended scene mode is DISABLED. This tag lists the zoom ratio ranges * for all supported non-DISABLED extended scene modes, in the same order as in * android.control.availableExtended.

*

Range [1.0, 1.0] means that no zoom (optical or digital) is supported.

*

Units: (minZoom, maxZoom)

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CaptureRequest#CONTROL_EXTENDED_SCENE_MODE * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @hide */ public static final Key CONTROL_AVAILABLE_EXTENDED_SCENE_MODE_ZOOM_RATIO_RANGES = new Key("android.control.availableExtendedSceneModeZoomRatioRanges", float[].class); /** *

The list of extended scene modes for {@link CaptureRequest#CONTROL_EXTENDED_SCENE_MODE android.control.extendedSceneMode} that * are supported by this camera device, and each extended scene mode's capabilities such * as maximum streaming size, and supported zoom ratio ranges.

*

For DISABLED mode, the camera behaves normally with no extended scene mode enabled.

*

For BOKEH_STILL_CAPTURE mode, the maximum streaming dimension specifies the limit * under which bokeh is effective when capture intent is PREVIEW. Note that when capture * intent is PREVIEW, the bokeh effect may not be as high quality compared to STILL_CAPTURE * intent in order to maintain reasonable frame rate. The maximum streaming dimension must * be one of the YUV_420_888 or PRIVATE resolutions in availableStreamConfigurations, or * (0, 0) if preview bokeh is not supported. If the application configures a stream * larger than the maximum streaming dimension, bokeh effect may not be applied for this * stream for PREVIEW intent.

*

For BOKEH_CONTINUOUS mode, the maximum streaming dimension specifies the limit under * which bokeh is effective. This dimension must be one of the YUV_420_888 or PRIVATE * resolutions in availableStreamConfigurations, and if the sensor maximum resolution is * larger than or equal to 1080p, the maximum streaming dimension must be at least 1080p. * If the application configures a stream with larger dimension, the stream may not have * bokeh effect applied.

*

When extended scene mode is set, the camera device may have limited range of zoom ratios * compared to when the mode is DISABLED. availableExtendedSceneModeCapabilities lists the * zoom ranges for all supported extended modes. A range of (1.0, 1.0) means that no zoom * (optical or digital) is supported.

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#CONTROL_EXTENDED_SCENE_MODE */ @PublicKey @NonNull @SyntheticKey public static final Key CONTROL_AVAILABLE_EXTENDED_SCENE_MODE_CAPABILITIES = new Key("android.control.availableExtendedSceneModeCapabilities", android.hardware.camera2.params.Capability[].class); /** *

Minimum and maximum zoom ratios supported by this camera device.

*

If the camera device supports zoom-out from 1x zoom, minZoom will be less than 1.0, and * setting {@link CaptureRequest#CONTROL_ZOOM_RATIO android.control.zoomRatio} to values less than 1.0 increases the camera's field * of view.

*

Units: A pair of zoom ratio in floating-points: (minZoom, maxZoom)

*

Range of valid values:

*

maxZoom >= 1.0 >= minZoom

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CaptureRequest#CONTROL_ZOOM_RATIO * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL */ @PublicKey @NonNull public static final Key> CONTROL_ZOOM_RATIO_RANGE = new Key>("android.control.zoomRatioRange", new TypeReference>() {{ }}); /** *

List of available high speed video size, fps range and max batch size configurations * supported by the camera device, in the format of * (width, height, fps_min, fps_max, batch_size_max), * when {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Analogous to android.control.availableHighSpeedVideoConfigurations, for configurations * which are applicable when {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Range of valid values:

*

For each configuration, the fps_max >= 120fps.

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#SENSOR_PIXEL_MODE * @hide */ public static final Key CONTROL_AVAILABLE_HIGH_SPEED_VIDEO_CONFIGURATIONS_MAXIMUM_RESOLUTION = new Key("android.control.availableHighSpeedVideoConfigurationsMaximumResolution", android.hardware.camera2.params.HighSpeedVideoConfiguration[].class); /** *

List of available settings overrides supported by the camera device that can * be used to speed up certain controls.

*

When not all controls within a CaptureRequest are required to take effect * at the same time on the outputs, the camera device may apply certain request keys sooner * to improve latency. This list contains such supported settings overrides. Each settings * override corresponds to a set of CaptureRequest keys that can be sped up when applying.

*

A supported settings override can be passed in via * {@link android.hardware.camera2.CaptureRequest#CONTROL_SETTINGS_OVERRIDE }, and the * CaptureRequest keys corresponding to the override are applied as soon as possible, not * bound by per-frame synchronization. See {@link CaptureRequest#CONTROL_SETTINGS_OVERRIDE android.control.settingsOverride} for the * CaptureRequest keys for each override.

*

OFF is always included in this list.

*

Range of valid values:
* Any value listed in {@link CaptureRequest#CONTROL_SETTINGS_OVERRIDE android.control.settingsOverride}

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#CONTROL_SETTINGS_OVERRIDE */ @PublicKey @NonNull public static final Key CONTROL_AVAILABLE_SETTINGS_OVERRIDES = new Key("android.control.availableSettingsOverrides", int[].class); /** *

Whether the camera device supports {@link CaptureRequest#CONTROL_AUTOFRAMING android.control.autoframing}.

*

Will be false if auto-framing is not available.

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CaptureRequest#CONTROL_AUTOFRAMING * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL */ @PublicKey @NonNull public static final Key CONTROL_AUTOFRAMING_AVAILABLE = new Key("android.control.autoframingAvailable", boolean.class); /** *

The operating luminance range of low light boost measured in lux (lx).

*

Range of valid values:

*

The lower bound indicates the lowest scene luminance value the AE mode * 'ON_LOW_LIGHT_BOOST_BRIGHTNESS_PRIORITY' can operate within. Scenes of lower luminance * than this may receive less brightening, increased noise, or artifacts.

*

The upper bound indicates the luminance threshold at the point when the mode is enabled. * For example, 'Range[0.3, 30.0]' defines 0.3 lux being the lowest scene luminance the * mode can reliably support. 30.0 lux represents the threshold when this mode is * activated. Scenes measured at less than or equal to 30 lux will activate low light * boost.

*

If this key is defined, then the AE mode 'ON_LOW_LIGHT_BOOST_BRIGHTNESS_PRIORITY' will * also be present.

*

Optional - The value for this key may be {@code null} on some devices.

*/ @PublicKey @NonNull @FlaggedApi(Flags.FLAG_CAMERA_AE_MODE_LOW_LIGHT_BOOST) public static final Key> CONTROL_LOW_LIGHT_BOOST_INFO_LUMINANCE_RANGE = new Key>("android.control.lowLightBoostInfoLuminanceRange", new TypeReference>() {{ }}); /** *

List of edge enhancement modes for {@link CaptureRequest#EDGE_MODE android.edge.mode} that are supported by this camera * device.

*

Full-capability camera devices must always support OFF; camera devices that support * YUV_REPROCESSING or PRIVATE_REPROCESSING will list ZERO_SHUTTER_LAG; all devices will * list FAST.

*

Range of valid values:
* Any value listed in {@link CaptureRequest#EDGE_MODE android.edge.mode}

*

Optional - The value for this key may be {@code null} on some devices.

*

Full capability - * Present on all camera devices that report being {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL HARDWARE_LEVEL_FULL} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CaptureRequest#EDGE_MODE * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL */ @PublicKey @NonNull public static final Key EDGE_AVAILABLE_EDGE_MODES = new Key("android.edge.availableEdgeModes", int[].class); /** *

Whether this camera device has a * flash unit.

*

Will be false if no flash is available.

*

If there is no flash unit, none of the flash controls do * anything. * This key is available on all devices.

*/ @PublicKey @NonNull public static final Key FLASH_INFO_AVAILABLE = new Key("android.flash.info.available", boolean.class); /** *

Maximum flashlight brightness level.

*

If this value is greater than 1, then the device supports controlling the * flashlight brightness level via * {@link android.hardware.camera2.CameraManager#turnOnTorchWithStrengthLevel }. * If this value is equal to 1, flashlight brightness control is not supported. * The value for this key will be null for devices with no flash unit.

*

The maximum value is guaranteed to be safe to use for an indefinite duration in * terms of device flashlight lifespan, but may be too bright for comfort for many * use cases. Use the default torch brightness value to avoid problems with an * over-bright flashlight.

*

Optional - The value for this key may be {@code null} on some devices.

*/ @PublicKey @NonNull public static final Key FLASH_INFO_STRENGTH_MAXIMUM_LEVEL = new Key("android.flash.info.strengthMaximumLevel", int.class); /** *

Default flashlight brightness level to be set via * {@link android.hardware.camera2.CameraManager#turnOnTorchWithStrengthLevel }.

*

If flash unit is available this will be greater than or equal to 1 and less * or equal to {@link CameraCharacteristics#FLASH_INFO_STRENGTH_MAXIMUM_LEVEL android.flash.info.strengthMaximumLevel}.

*

Setting flashlight brightness above the default level * (i.e.{@link CameraCharacteristics#FLASH_INFO_STRENGTH_DEFAULT_LEVEL android.flash.info.strengthDefaultLevel}) may make the device more * likely to reach thermal throttling conditions and slow down, or drain the * battery quicker than normal. To minimize such issues, it is recommended to * start the flashlight at this default brightness until a user explicitly requests * a brighter level. * Note that the value for this key will be null for devices with no flash unit. * The default level should always be > 0.

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CameraCharacteristics#FLASH_INFO_STRENGTH_DEFAULT_LEVEL * @see CameraCharacteristics#FLASH_INFO_STRENGTH_MAXIMUM_LEVEL */ @PublicKey @NonNull public static final Key FLASH_INFO_STRENGTH_DEFAULT_LEVEL = new Key("android.flash.info.strengthDefaultLevel", int.class); /** *

Maximum flash brightness level for manual flash control in SINGLE mode.

*

Maximum flash brightness level in camera capture mode and * {@link CaptureRequest#FLASH_MODE android.flash.mode} set to SINGLE. * Value will be > 1 if the manual flash strength control feature is supported, * otherwise the value will be equal to 1. * Note that this level is just a number of supported levels (the granularity of control). * There is no actual physical power units tied to this level.

*

This key is available on all devices.

* * @see CaptureRequest#FLASH_MODE */ @PublicKey @NonNull @FlaggedApi(Flags.FLAG_CAMERA_MANUAL_FLASH_STRENGTH_CONTROL) public static final Key FLASH_SINGLE_STRENGTH_MAX_LEVEL = new Key("android.flash.singleStrengthMaxLevel", int.class); /** *

Default flash brightness level for manual flash control in SINGLE mode.

*

If flash unit is available this will be greater than or equal to 1 and less * or equal to android.flash.info.singleStrengthMaxLevel. * Note for devices that do not support the manual flash strength control * feature, this level will always be equal to 1.

*

This key is available on all devices.

*/ @PublicKey @NonNull @FlaggedApi(Flags.FLAG_CAMERA_MANUAL_FLASH_STRENGTH_CONTROL) public static final Key FLASH_SINGLE_STRENGTH_DEFAULT_LEVEL = new Key("android.flash.singleStrengthDefaultLevel", int.class); /** *

Maximum flash brightness level for manual flash control in TORCH mode

*

Maximum flash brightness level in camera capture mode and * {@link CaptureRequest#FLASH_MODE android.flash.mode} set to TORCH. * Value will be > 1 if the manual flash strength control feature is supported, * otherwise the value will be equal to 1.

*

Note that this level is just a number of supported levels(the granularity of control). * There is no actual physical power units tied to this level. * There is no relation between android.flash.info.torchStrengthMaxLevel and * android.flash.info.singleStrengthMaxLevel i.e. the ratio of * android.flash.info.torchStrengthMaxLevel:android.flash.info.singleStrengthMaxLevel * is not guaranteed to be the ratio of actual brightness.

*

This key is available on all devices.

* * @see CaptureRequest#FLASH_MODE */ @PublicKey @NonNull @FlaggedApi(Flags.FLAG_CAMERA_MANUAL_FLASH_STRENGTH_CONTROL) public static final Key FLASH_TORCH_STRENGTH_MAX_LEVEL = new Key("android.flash.torchStrengthMaxLevel", int.class); /** *

Default flash brightness level for manual flash control in TORCH mode

*

If flash unit is available this will be greater than or equal to 1 and less * or equal to android.flash.info.torchStrengthMaxLevel. * Note for the devices that do not support the manual flash strength control feature, * this level will always be equal to 1.

*

This key is available on all devices.

*/ @PublicKey @NonNull @FlaggedApi(Flags.FLAG_CAMERA_MANUAL_FLASH_STRENGTH_CONTROL) public static final Key FLASH_TORCH_STRENGTH_DEFAULT_LEVEL = new Key("android.flash.torchStrengthDefaultLevel", int.class); /** *

List of hot pixel correction modes for {@link CaptureRequest#HOT_PIXEL_MODE android.hotPixel.mode} that are supported by this * camera device.

*

FULL mode camera devices will always support FAST.

*

Range of valid values:
* Any value listed in {@link CaptureRequest#HOT_PIXEL_MODE android.hotPixel.mode}

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#HOT_PIXEL_MODE */ @PublicKey @NonNull public static final Key HOT_PIXEL_AVAILABLE_HOT_PIXEL_MODES = new Key("android.hotPixel.availableHotPixelModes", int[].class); /** *

List of JPEG thumbnail sizes for {@link CaptureRequest#JPEG_THUMBNAIL_SIZE android.jpeg.thumbnailSize} supported by this * camera device.

*

This list will include at least one non-zero resolution, plus (0,0) for indicating no * thumbnail should be generated.

*

Below conditions will be satisfied for this size list:

*
    *
  • The sizes will be sorted by increasing pixel area (width x height). * If several resolutions have the same area, they will be sorted by increasing width.
  • *
  • The aspect ratio of the largest thumbnail size will be same as the * aspect ratio of largest JPEG output size in android.scaler.availableStreamConfigurations. * The largest size is defined as the size that has the largest pixel area * in a given size list.
  • *
  • Each output JPEG size in android.scaler.availableStreamConfigurations will have at least * one corresponding size that has the same aspect ratio in availableThumbnailSizes, * and vice versa.
  • *
  • All non-(0, 0) sizes will have non-zero widths and heights.
  • *
*

This list is also used as supported thumbnail sizes for HEIC image format capture.

*

This key is available on all devices.

* * @see CaptureRequest#JPEG_THUMBNAIL_SIZE */ @PublicKey @NonNull public static final Key JPEG_AVAILABLE_THUMBNAIL_SIZES = new Key("android.jpeg.availableThumbnailSizes", android.util.Size[].class); /** *

List of aperture size values for {@link CaptureRequest#LENS_APERTURE android.lens.aperture} that are * supported by this camera device.

*

If the camera device doesn't support a variable lens aperture, * this list will contain only one value, which is the fixed aperture size.

*

If the camera device supports a variable aperture, the aperture values * in this list will be sorted in ascending order.

*

Units: The aperture f-number

*

Optional - The value for this key may be {@code null} on some devices.

*

Full capability - * Present on all camera devices that report being {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL HARDWARE_LEVEL_FULL} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CaptureRequest#LENS_APERTURE */ @PublicKey @NonNull public static final Key LENS_INFO_AVAILABLE_APERTURES = new Key("android.lens.info.availableApertures", float[].class); /** *

List of neutral density filter values for * {@link CaptureRequest#LENS_FILTER_DENSITY android.lens.filterDensity} that are supported by this camera device.

*

If a neutral density filter is not supported by this camera device, * this list will contain only 0. Otherwise, this list will include every * filter density supported by the camera device, in ascending order.

*

Units: Exposure value (EV)

*

Range of valid values:

*

Values are >= 0

*

Optional - The value for this key may be {@code null} on some devices.

*

Full capability - * Present on all camera devices that report being {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL HARDWARE_LEVEL_FULL} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CaptureRequest#LENS_FILTER_DENSITY */ @PublicKey @NonNull public static final Key LENS_INFO_AVAILABLE_FILTER_DENSITIES = new Key("android.lens.info.availableFilterDensities", float[].class); /** *

List of focal lengths for {@link CaptureRequest#LENS_FOCAL_LENGTH android.lens.focalLength} that are supported by this camera * device.

*

If optical zoom is not supported, this list will only contain * a single value corresponding to the fixed focal length of the * device. Otherwise, this list will include every focal length supported * by the camera device, in ascending order.

*

Units: Millimeters

*

Range of valid values:

*

Values are > 0

*

This key is available on all devices.

* * @see CaptureRequest#LENS_FOCAL_LENGTH */ @PublicKey @NonNull public static final Key LENS_INFO_AVAILABLE_FOCAL_LENGTHS = new Key("android.lens.info.availableFocalLengths", float[].class); /** *

List of optical image stabilization (OIS) modes for * {@link CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE android.lens.opticalStabilizationMode} that are supported by this camera device.

*

If OIS is not supported by a given camera device, this list will * contain only OFF.

*

Range of valid values:
* Any value listed in {@link CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE android.lens.opticalStabilizationMode}

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE */ @PublicKey @NonNull public static final Key LENS_INFO_AVAILABLE_OPTICAL_STABILIZATION = new Key("android.lens.info.availableOpticalStabilization", int[].class); /** *

Hyperfocal distance for this lens.

*

If the lens is not fixed focus, the camera device will report this * field when {@link CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION android.lens.info.focusDistanceCalibration} is APPROXIMATE or CALIBRATED.

*

Units: See {@link CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION android.lens.info.focusDistanceCalibration} for details

*

Range of valid values:
* If lens is fixed focus, >= 0. If lens has focuser unit, the value is * within (0.0f, {@link CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE android.lens.info.minimumFocusDistance}]

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

*

Permission {@link android.Manifest.permission#CAMERA } is needed to access this property

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION * @see CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE */ @PublicKey @NonNull public static final Key LENS_INFO_HYPERFOCAL_DISTANCE = new Key("android.lens.info.hyperfocalDistance", float.class); /** *

Shortest distance from frontmost surface * of the lens that can be brought into sharp focus.

*

If the lens is fixed-focus, this will be * 0.

*

Units: See {@link CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION android.lens.info.focusDistanceCalibration} for details

*

Range of valid values:
* >= 0

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

*

Permission {@link android.Manifest.permission#CAMERA } is needed to access this property

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION */ @PublicKey @NonNull public static final Key LENS_INFO_MINIMUM_FOCUS_DISTANCE = new Key("android.lens.info.minimumFocusDistance", float.class); /** *

Dimensions of lens shading map.

*

The map should be on the order of 30-40 rows and columns, and * must be smaller than 64x64.

*

Range of valid values:
* Both values >= 1

*

Optional - The value for this key may be {@code null} on some devices.

*

Full capability - * Present on all camera devices that report being {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL HARDWARE_LEVEL_FULL} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @hide */ public static final Key LENS_INFO_SHADING_MAP_SIZE = new Key("android.lens.info.shadingMapSize", android.util.Size.class); /** *

The lens focus distance calibration quality.

*

The lens focus distance calibration quality determines the reliability of * focus related metadata entries, i.e. {@link CaptureRequest#LENS_FOCUS_DISTANCE android.lens.focusDistance}, * {@link CaptureResult#LENS_FOCUS_RANGE android.lens.focusRange}, {@link CameraCharacteristics#LENS_INFO_HYPERFOCAL_DISTANCE android.lens.info.hyperfocalDistance}, and * {@link CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE android.lens.info.minimumFocusDistance}.

*

APPROXIMATE and CALIBRATED devices report the focus metadata in * units of diopters (1/meter), so 0.0f represents focusing at infinity, * and increasing positive numbers represent focusing closer and closer * to the camera device. The focus distance control also uses diopters * on these devices.

*

UNCALIBRATED devices do not use units that are directly comparable * to any real physical measurement, but 0.0f still represents farthest * focus, and {@link CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE android.lens.info.minimumFocusDistance} represents the * nearest focus the device can achieve.

*

Possible values:

*
    *
  • {@link #LENS_INFO_FOCUS_DISTANCE_CALIBRATION_UNCALIBRATED UNCALIBRATED}
  • *
  • {@link #LENS_INFO_FOCUS_DISTANCE_CALIBRATION_APPROXIMATE APPROXIMATE}
  • *
  • {@link #LENS_INFO_FOCUS_DISTANCE_CALIBRATION_CALIBRATED CALIBRATED}
  • *
* *

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CaptureRequest#LENS_FOCUS_DISTANCE * @see CaptureResult#LENS_FOCUS_RANGE * @see CameraCharacteristics#LENS_INFO_HYPERFOCAL_DISTANCE * @see CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE * @see #LENS_INFO_FOCUS_DISTANCE_CALIBRATION_UNCALIBRATED * @see #LENS_INFO_FOCUS_DISTANCE_CALIBRATION_APPROXIMATE * @see #LENS_INFO_FOCUS_DISTANCE_CALIBRATION_CALIBRATED */ @PublicKey @NonNull public static final Key LENS_INFO_FOCUS_DISTANCE_CALIBRATION = new Key("android.lens.info.focusDistanceCalibration", int.class); /** *

Direction the camera faces relative to * device screen.

*

Possible values:

*
    *
  • {@link #LENS_FACING_FRONT FRONT}
  • *
  • {@link #LENS_FACING_BACK BACK}
  • *
  • {@link #LENS_FACING_EXTERNAL EXTERNAL}
  • *
* *

This key is available on all devices.

* @see #LENS_FACING_FRONT * @see #LENS_FACING_BACK * @see #LENS_FACING_EXTERNAL */ @PublicKey @NonNull public static final Key LENS_FACING = new Key("android.lens.facing", int.class); /** *

The orientation of the camera relative to the sensor * coordinate system.

*

The four coefficients that describe the quaternion * rotation from the Android sensor coordinate system to a * camera-aligned coordinate system where the X-axis is * aligned with the long side of the image sensor, the Y-axis * is aligned with the short side of the image sensor, and * the Z-axis is aligned with the optical axis of the sensor.

*

To convert from the quaternion coefficients (x,y,z,w) * to the axis of rotation (a_x, a_y, a_z) and rotation * amount theta, the following formulas can be used:

*
 theta = 2 * acos(w)
     * a_x = x / sin(theta/2)
     * a_y = y / sin(theta/2)
     * a_z = z / sin(theta/2)
     * 
*

To create a 3x3 rotation matrix that applies the rotation * defined by this quaternion, the following matrix can be * used:

*
R = [ 1 - 2y^2 - 2z^2,       2xy - 2zw,       2xz + 2yw,
     *            2xy + 2zw, 1 - 2x^2 - 2z^2,       2yz - 2xw,
     *            2xz - 2yw,       2yz + 2xw, 1 - 2x^2 - 2y^2 ]
     * 
*

This matrix can then be used to apply the rotation to a * column vector point with

*

p' = Rp

*

where p is in the device sensor coordinate system, and * p' is in the camera-oriented coordinate system.

*

If {@link CameraCharacteristics#LENS_POSE_REFERENCE android.lens.poseReference} is UNDEFINED, the quaternion rotation cannot * be accurately represented by the camera device, and will be represented by * default values matching its default facing.

*

Units: * Quaternion coefficients

*

Optional - The value for this key may be {@code null} on some devices.

*

Permission {@link android.Manifest.permission#CAMERA } is needed to access this property

* * @see CameraCharacteristics#LENS_POSE_REFERENCE */ @PublicKey @NonNull public static final Key LENS_POSE_ROTATION = new Key("android.lens.poseRotation", float[].class); /** *

Position of the camera optical center.

*

The position of the camera device's lens optical center, * as a three-dimensional vector (x,y,z).

*

Prior to Android P, or when {@link CameraCharacteristics#LENS_POSE_REFERENCE android.lens.poseReference} is PRIMARY_CAMERA, this position * is relative to the optical center of the largest camera device facing in the same * direction as this camera, in the {@link android.hardware.SensorEvent Android sensor * coordinate axes}. Note that only the axis definitions are shared with the sensor * coordinate system, but not the origin.

*

If this device is the largest or only camera device with a given facing, then this * position will be (0, 0, 0); a camera device with a lens optical center located 3 cm * from the main sensor along the +X axis (to the right from the user's perspective) will * report (0.03, 0, 0). Note that this means that, for many computer vision * applications, the position needs to be negated to convert it to a translation from the * camera to the origin.

*

To transform a pixel coordinates between two cameras facing the same direction, first * the source camera {@link CameraCharacteristics#LENS_DISTORTION android.lens.distortion} must be corrected for. Then the source * camera {@link CameraCharacteristics#LENS_INTRINSIC_CALIBRATION android.lens.intrinsicCalibration} needs to be applied, followed by the * {@link CameraCharacteristics#LENS_POSE_ROTATION android.lens.poseRotation} of the source camera, the translation of the source camera * relative to the destination camera, the {@link CameraCharacteristics#LENS_POSE_ROTATION android.lens.poseRotation} of the destination * camera, and finally the inverse of {@link CameraCharacteristics#LENS_INTRINSIC_CALIBRATION android.lens.intrinsicCalibration} of the destination * camera. This obtains a radial-distortion-free coordinate in the destination camera pixel * coordinates.

*

To compare this against a real image from the destination camera, the destination camera * image then needs to be corrected for radial distortion before comparison or sampling.

*

When {@link CameraCharacteristics#LENS_POSE_REFERENCE android.lens.poseReference} is GYROSCOPE, then this position is relative to * the center of the primary gyroscope on the device. The axis definitions are the same as * with PRIMARY_CAMERA.

*

When {@link CameraCharacteristics#LENS_POSE_REFERENCE android.lens.poseReference} is UNDEFINED, this position cannot be accurately * represented by the camera device, and will be represented as (0, 0, 0).

*

When {@link CameraCharacteristics#LENS_POSE_REFERENCE android.lens.poseReference} is AUTOMOTIVE, then this position is relative to the * origin of the automotive sensor coordinate system, which is at the center of the rear * axle.

*

Units: Meters

*

Optional - The value for this key may be {@code null} on some devices.

*

Permission {@link android.Manifest.permission#CAMERA } is needed to access this property

* * @see CameraCharacteristics#LENS_DISTORTION * @see CameraCharacteristics#LENS_INTRINSIC_CALIBRATION * @see CameraCharacteristics#LENS_POSE_REFERENCE * @see CameraCharacteristics#LENS_POSE_ROTATION */ @PublicKey @NonNull public static final Key LENS_POSE_TRANSLATION = new Key("android.lens.poseTranslation", float[].class); /** *

The parameters for this camera device's intrinsic * calibration.

*

The five calibration parameters that describe the * transform from camera-centric 3D coordinates to sensor * pixel coordinates:

*
[f_x, f_y, c_x, c_y, s]
     * 
*

Where f_x and f_y are the horizontal and vertical * focal lengths, [c_x, c_y] is the position of the optical * axis, and s is a skew parameter for the sensor plane not * being aligned with the lens plane.

*

These are typically used within a transformation matrix K:

*
K = [ f_x,   s, c_x,
     *        0, f_y, c_y,
     *        0    0,   1 ]
     * 
*

which can then be combined with the camera pose rotation * R and translation t ({@link CameraCharacteristics#LENS_POSE_ROTATION android.lens.poseRotation} and * {@link CameraCharacteristics#LENS_POSE_TRANSLATION android.lens.poseTranslation}, respectively) to calculate the * complete transform from world coordinates to pixel * coordinates:

*
P = [ K 0   * [ R -Rt
     *      0 1 ]      0 1 ]
     * 
*

(Note the negation of poseTranslation when mapping from camera * to world coordinates, and multiplication by the rotation).

*

With p_w being a point in the world coordinate system * and p_s being a point in the camera active pixel array * coordinate system, and with the mapping including the * homogeneous division by z:

*
 p_h = (x_h, y_h, z_h) = P p_w
     * p_s = p_h / z_h
     * 
*

so [x_s, y_s] is the pixel coordinates of the world * point, z_s = 1, and w_s is a measurement of disparity * (depth) in pixel coordinates.

*

Note that the coordinate system for this transform is the * {@link CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE android.sensor.info.preCorrectionActiveArraySize} system, * where (0,0) is the top-left of the * preCorrectionActiveArraySize rectangle. Once the pose and * intrinsic calibration transforms have been applied to a * world point, then the {@link CameraCharacteristics#LENS_DISTORTION android.lens.distortion} * transform needs to be applied, and the result adjusted to * be in the {@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize} coordinate * system (where (0, 0) is the top-left of the * activeArraySize rectangle), to determine the final pixel * coordinate of the world point for processed (non-RAW) * output buffers.

*

For camera devices, the center of pixel (x,y) is located at * coordinate (x + 0.5, y + 0.5). So on a device with a * precorrection active array of size (10,10), the valid pixel * indices go from (0,0)-(9,9), and an perfectly-built camera would * have an optical center at the exact center of the pixel grid, at * coordinates (5.0, 5.0), which is the top-left corner of pixel * (5,5).

*

Units: * Pixels in the * {@link CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE android.sensor.info.preCorrectionActiveArraySize} * coordinate system.

*

Optional - The value for this key may be {@code null} on some devices.

*

Permission {@link android.Manifest.permission#CAMERA } is needed to access this property

* * @see CameraCharacteristics#LENS_DISTORTION * @see CameraCharacteristics#LENS_POSE_ROTATION * @see CameraCharacteristics#LENS_POSE_TRANSLATION * @see CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE * @see CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE */ @PublicKey @NonNull public static final Key LENS_INTRINSIC_CALIBRATION = new Key("android.lens.intrinsicCalibration", float[].class); /** *

The correction coefficients to correct for this camera device's * radial and tangential lens distortion.

*

Four radial distortion coefficients [kappa_0, kappa_1, kappa_2, * kappa_3] and two tangential distortion coefficients * [kappa_4, kappa_5] that can be used to correct the * lens's geometric distortion with the mapping equations:

*
 x_c = x_i * ( kappa_0 + kappa_1 * r^2 + kappa_2 * r^4 + kappa_3 * r^6 ) +
     *        kappa_4 * (2 * x_i * y_i) + kappa_5 * ( r^2 + 2 * x_i^2 )
     *  y_c = y_i * ( kappa_0 + kappa_1 * r^2 + kappa_2 * r^4 + kappa_3 * r^6 ) +
     *        kappa_5 * (2 * x_i * y_i) + kappa_4 * ( r^2 + 2 * y_i^2 )
     * 
*

Here, [x_c, y_c] are the coordinates to sample in the * input image that correspond to the pixel values in the * corrected image at the coordinate [x_i, y_i]:

*
 correctedImage(x_i, y_i) = sample_at(x_c, y_c, inputImage)
     * 
*

The pixel coordinates are defined in a normalized * coordinate system related to the * {@link CameraCharacteristics#LENS_INTRINSIC_CALIBRATION android.lens.intrinsicCalibration} calibration fields. * Both [x_i, y_i] and [x_c, y_c] have (0,0) at the * lens optical center [c_x, c_y]. The maximum magnitudes * of both x and y coordinates are normalized to be 1 at the * edge further from the optical center, so the range * for both dimensions is -1 <= x <= 1.

*

Finally, r represents the radial distance from the * optical center, r^2 = x_i^2 + y_i^2, and its magnitude * is therefore no larger than |r| <= sqrt(2).

*

The distortion model used is the Brown-Conrady model.

*

Units: * Unitless coefficients.

*

Optional - The value for this key may be {@code null} on some devices.

*

Permission {@link android.Manifest.permission#CAMERA } is needed to access this property

* * @see CameraCharacteristics#LENS_INTRINSIC_CALIBRATION * @deprecated *

This field was inconsistently defined in terms of its * normalization. Use {@link CameraCharacteristics#LENS_DISTORTION android.lens.distortion} instead.

* * @see CameraCharacteristics#LENS_DISTORTION */ @Deprecated @PublicKey @NonNull public static final Key LENS_RADIAL_DISTORTION = new Key("android.lens.radialDistortion", float[].class); /** *

The origin for {@link CameraCharacteristics#LENS_POSE_TRANSLATION android.lens.poseTranslation}, and the accuracy of * {@link CameraCharacteristics#LENS_POSE_TRANSLATION android.lens.poseTranslation} and {@link CameraCharacteristics#LENS_POSE_ROTATION android.lens.poseRotation}.

*

Different calibration methods and use cases can produce better or worse results * depending on the selected coordinate origin.

*

Possible values:

*
    *
  • {@link #LENS_POSE_REFERENCE_PRIMARY_CAMERA PRIMARY_CAMERA}
  • *
  • {@link #LENS_POSE_REFERENCE_GYROSCOPE GYROSCOPE}
  • *
  • {@link #LENS_POSE_REFERENCE_UNDEFINED UNDEFINED}
  • *
  • {@link #LENS_POSE_REFERENCE_AUTOMOTIVE AUTOMOTIVE}
  • *
* *

Optional - The value for this key may be {@code null} on some devices.

*

Permission {@link android.Manifest.permission#CAMERA } is needed to access this property

* * @see CameraCharacteristics#LENS_POSE_ROTATION * @see CameraCharacteristics#LENS_POSE_TRANSLATION * @see #LENS_POSE_REFERENCE_PRIMARY_CAMERA * @see #LENS_POSE_REFERENCE_GYROSCOPE * @see #LENS_POSE_REFERENCE_UNDEFINED * @see #LENS_POSE_REFERENCE_AUTOMOTIVE */ @PublicKey @NonNull public static final Key LENS_POSE_REFERENCE = new Key("android.lens.poseReference", int.class); /** *

The correction coefficients to correct for this camera device's * radial and tangential lens distortion.

*

Replaces the deprecated {@link CameraCharacteristics#LENS_RADIAL_DISTORTION android.lens.radialDistortion} field, which was * inconsistently defined.

*

Three radial distortion coefficients [kappa_1, kappa_2, * kappa_3] and two tangential distortion coefficients * [kappa_4, kappa_5] that can be used to correct the * lens's geometric distortion with the mapping equations:

*
 x_c = x_i * ( 1 + kappa_1 * r^2 + kappa_2 * r^4 + kappa_3 * r^6 ) +
     *        kappa_4 * (2 * x_i * y_i) + kappa_5 * ( r^2 + 2 * x_i^2 )
     *  y_c = y_i * ( 1 + kappa_1 * r^2 + kappa_2 * r^4 + kappa_3 * r^6 ) +
     *        kappa_5 * (2 * x_i * y_i) + kappa_4 * ( r^2 + 2 * y_i^2 )
     * 
*

Here, [x_c, y_c] are the coordinates to sample in the * input image that correspond to the pixel values in the * corrected image at the coordinate [x_i, y_i]:

*
 correctedImage(x_i, y_i) = sample_at(x_c, y_c, inputImage)
     * 
*

The pixel coordinates are defined in a coordinate system * related to the {@link CameraCharacteristics#LENS_INTRINSIC_CALIBRATION android.lens.intrinsicCalibration} * calibration fields; see that entry for details of the mapping stages. * Both [x_i, y_i] and [x_c, y_c] * have (0,0) at the lens optical center [c_x, c_y], and * the range of the coordinates depends on the focal length * terms of the intrinsic calibration.

*

Finally, r represents the radial distance from the * optical center, r^2 = x_i^2 + y_i^2.

*

The distortion model used is the Brown-Conrady model.

*

Units: * Unitless coefficients.

*

Optional - The value for this key may be {@code null} on some devices.

*

Permission {@link android.Manifest.permission#CAMERA } is needed to access this property

* * @see CameraCharacteristics#LENS_INTRINSIC_CALIBRATION * @see CameraCharacteristics#LENS_RADIAL_DISTORTION */ @PublicKey @NonNull public static final Key LENS_DISTORTION = new Key("android.lens.distortion", float[].class); /** *

The correction coefficients to correct for this camera device's * radial and tangential lens distortion for a * CaptureRequest with {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Analogous to {@link CameraCharacteristics#LENS_DISTORTION android.lens.distortion}, when {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Units: * Unitless coefficients.

*

Optional - The value for this key may be {@code null} on some devices.

*

Permission {@link android.Manifest.permission#CAMERA } is needed to access this property

* * @see CameraCharacteristics#LENS_DISTORTION * @see CaptureRequest#SENSOR_PIXEL_MODE */ @PublicKey @NonNull public static final Key LENS_DISTORTION_MAXIMUM_RESOLUTION = new Key("android.lens.distortionMaximumResolution", float[].class); /** *

The parameters for this camera device's intrinsic * calibration when {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Analogous to {@link CameraCharacteristics#LENS_INTRINSIC_CALIBRATION android.lens.intrinsicCalibration}, when {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Units: * Pixels in the * {@link CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION android.sensor.info.preCorrectionActiveArraySizeMaximumResolution} * coordinate system.

*

Optional - The value for this key may be {@code null} on some devices.

*

Permission {@link android.Manifest.permission#CAMERA } is needed to access this property

* * @see CameraCharacteristics#LENS_INTRINSIC_CALIBRATION * @see CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION * @see CaptureRequest#SENSOR_PIXEL_MODE */ @PublicKey @NonNull public static final Key LENS_INTRINSIC_CALIBRATION_MAXIMUM_RESOLUTION = new Key("android.lens.intrinsicCalibrationMaximumResolution", float[].class); /** *

List of noise reduction modes for {@link CaptureRequest#NOISE_REDUCTION_MODE android.noiseReduction.mode} that are supported * by this camera device.

*

Full-capability camera devices will always support OFF and FAST.

*

Camera devices that support YUV_REPROCESSING or PRIVATE_REPROCESSING will support * ZERO_SHUTTER_LAG.

*

Legacy-capability camera devices will only support FAST mode.

*

Range of valid values:
* Any value listed in {@link CaptureRequest#NOISE_REDUCTION_MODE android.noiseReduction.mode}

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CaptureRequest#NOISE_REDUCTION_MODE */ @PublicKey @NonNull public static final Key NOISE_REDUCTION_AVAILABLE_NOISE_REDUCTION_MODES = new Key("android.noiseReduction.availableNoiseReductionModes", int[].class); /** *

If set to 1, the HAL will always split result * metadata for a single capture into multiple buffers, * returned using multiple process_capture_result calls.

*

Does not need to be listed in static * metadata. Support for partial results will be reworked in * future versions of camera service. This quirk will stop * working at that point; DO NOT USE without careful * consideration of future support.

*

Optional - The value for this key may be {@code null} on some devices.

* @deprecated *

Not used in HALv3 or newer; replaced by better partials mechanism

* @hide */ @Deprecated public static final Key QUIRKS_USE_PARTIAL_RESULT = new Key("android.quirks.usePartialResult", byte.class); /** *

The maximum numbers of different types of output streams * that can be configured and used simultaneously by a camera device.

*

This is a 3 element tuple that contains the max number of output simultaneous * streams for raw sensor, processed (but not stalling), and processed (and stalling) * formats respectively. For example, assuming that JPEG is typically a processed and * stalling stream, if max raw sensor format output stream number is 1, max YUV streams * number is 3, and max JPEG stream number is 2, then this tuple should be (1, 3, 2).

*

This lists the upper bound of the number of output streams supported by * the camera device. Using more streams simultaneously may require more hardware and * CPU resources that will consume more power. The image format for an output stream can * be any supported format provided by android.scaler.availableStreamConfigurations. * The formats defined in android.scaler.availableStreamConfigurations can be categorized * into the 3 stream types as below:

*
    *
  • Processed (but stalling): any non-RAW format with a stallDurations > 0. * Typically {@link android.graphics.ImageFormat#JPEG JPEG format}.
  • *
  • Raw formats: {@link android.graphics.ImageFormat#RAW_SENSOR RAW_SENSOR}, {@link android.graphics.ImageFormat#RAW10 RAW10}, or * {@link android.graphics.ImageFormat#RAW12 RAW12}.
  • *
  • Processed (but not-stalling): any non-RAW format without a stall duration. Typically * {@link android.graphics.ImageFormat#YUV_420_888 YUV_420_888}, * {@link android.graphics.ImageFormat#NV21 NV21}, {@link android.graphics.ImageFormat#YV12 YV12}, or {@link android.graphics.ImageFormat#Y8 Y8} .
  • *
*

Range of valid values:

*

For processed (and stalling) format streams, >= 1.

*

For Raw format (either stalling or non-stalling) streams, >= 0.

*

For processed (but not stalling) format streams, >= 3 * for FULL mode devices ({@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} == FULL); * >= 2 for LIMITED mode devices ({@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} == LIMITED).

*

This key is available on all devices.

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @hide */ public static final Key REQUEST_MAX_NUM_OUTPUT_STREAMS = new Key("android.request.maxNumOutputStreams", int[].class); /** *

The maximum numbers of different types of output streams * that can be configured and used simultaneously by a camera device * for any RAW formats.

*

This value contains the max number of output simultaneous * streams from the raw sensor.

*

This lists the upper bound of the number of output streams supported by * the camera device. Using more streams simultaneously may require more hardware and * CPU resources that will consume more power. The image format for this kind of an output stream can * be any RAW and supported format provided by {@link CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP android.scaler.streamConfigurationMap}.

*

In particular, a RAW format is typically one of:

*
    *
  • {@link android.graphics.ImageFormat#RAW_SENSOR RAW_SENSOR}
  • *
  • {@link android.graphics.ImageFormat#RAW10 RAW10}
  • *
  • {@link android.graphics.ImageFormat#RAW12 RAW12}
  • *
*

LEGACY mode devices ({@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} == LEGACY) * never support raw streams.

*

Range of valid values:

*

>= 0

*

This key is available on all devices.

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP */ @PublicKey @NonNull @SyntheticKey public static final Key REQUEST_MAX_NUM_OUTPUT_RAW = new Key("android.request.maxNumOutputRaw", int.class); /** *

The maximum numbers of different types of output streams * that can be configured and used simultaneously by a camera device * for any processed (but not-stalling) formats.

*

This value contains the max number of output simultaneous * streams for any processed (but not-stalling) formats.

*

This lists the upper bound of the number of output streams supported by * the camera device. Using more streams simultaneously may require more hardware and * CPU resources that will consume more power. The image format for this kind of an output stream can * be any non-RAW and supported format provided by {@link CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP android.scaler.streamConfigurationMap}.

*

Processed (but not-stalling) is defined as any non-RAW format without a stall duration. * Typically:

*
    *
  • {@link android.graphics.ImageFormat#YUV_420_888 YUV_420_888}
  • *
  • {@link android.graphics.ImageFormat#NV21 NV21}
  • *
  • {@link android.graphics.ImageFormat#YV12 YV12}
  • *
  • Implementation-defined formats, i.e. {@link android.hardware.camera2.params.StreamConfigurationMap#isOutputSupportedFor(Class) }
  • *
  • {@link android.graphics.ImageFormat#Y8 Y8}
  • *
*

For full guarantees, query {@link android.hardware.camera2.params.StreamConfigurationMap#getOutputStallDuration } with a * processed format -- it will return 0 for a non-stalling stream.

*

LEGACY devices will support at least 2 processing/non-stalling streams.

*

Range of valid values:

*

>= 3 * for FULL mode devices ({@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} == FULL); * >= 2 for LIMITED mode devices ({@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} == LIMITED).

*

This key is available on all devices.

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP */ @PublicKey @NonNull @SyntheticKey public static final Key REQUEST_MAX_NUM_OUTPUT_PROC = new Key("android.request.maxNumOutputProc", int.class); /** *

The maximum numbers of different types of output streams * that can be configured and used simultaneously by a camera device * for any processed (and stalling) formats.

*

This value contains the max number of output simultaneous * streams for any processed (but not-stalling) formats.

*

This lists the upper bound of the number of output streams supported by * the camera device. Using more streams simultaneously may require more hardware and * CPU resources that will consume more power. The image format for this kind of an output stream can * be any non-RAW and supported format provided by {@link CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP android.scaler.streamConfigurationMap}.

*

A processed and stalling format is defined as any non-RAW format with a stallDurations * > 0. Typically only the {@link android.graphics.ImageFormat#JPEG JPEG format} is a stalling format.

*

For full guarantees, query {@link android.hardware.camera2.params.StreamConfigurationMap#getOutputStallDuration } with a * processed format -- it will return a non-0 value for a stalling stream.

*

LEGACY devices will support up to 1 processing/stalling stream.

*

Range of valid values:

*

>= 1

*

This key is available on all devices.

* * @see CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP */ @PublicKey @NonNull @SyntheticKey public static final Key REQUEST_MAX_NUM_OUTPUT_PROC_STALLING = new Key("android.request.maxNumOutputProcStalling", int.class); /** *

The maximum numbers of any type of input streams * that can be configured and used simultaneously by a camera device.

*

When set to 0, it means no input stream is supported.

*

The image format for a input stream can be any supported format returned by {@link android.hardware.camera2.params.StreamConfigurationMap#getInputFormats }. When using an * input stream, there must be at least one output stream configured to to receive the * reprocessed images.

*

When an input stream and some output streams are used in a reprocessing request, * only the input buffer will be used to produce these output stream buffers, and a * new sensor image will not be captured.

*

For example, for Zero Shutter Lag (ZSL) still capture use case, the input * stream image format will be PRIVATE, the associated output stream image format * should be JPEG.

*

Range of valid values:

*

0 or 1.

*

Optional - The value for this key may be {@code null} on some devices.

*

Full capability - * Present on all camera devices that report being {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL HARDWARE_LEVEL_FULL} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL */ @PublicKey @NonNull public static final Key REQUEST_MAX_NUM_INPUT_STREAMS = new Key("android.request.maxNumInputStreams", int.class); /** *

Specifies the number of maximum pipeline stages a frame * has to go through from when it's exposed to when it's available * to the framework.

*

A typical minimum value for this is 2 (one stage to expose, * one stage to readout) from the sensor. The ISP then usually adds * its own stages to do custom HW processing. Further stages may be * added by SW processing.

*

Depending on what settings are used (e.g. YUV, JPEG) and what * processing is enabled (e.g. face detection), the actual pipeline * depth (specified by {@link CaptureResult#REQUEST_PIPELINE_DEPTH android.request.pipelineDepth}) may be less than * the max pipeline depth.

*

A pipeline depth of X stages is equivalent to a pipeline latency of * X frame intervals.

*

This value will normally be 8 or less, however, for high speed capture session, * the max pipeline depth will be up to 8 x size of high speed capture request list.

*

This key is available on all devices.

* * @see CaptureResult#REQUEST_PIPELINE_DEPTH */ @PublicKey @NonNull public static final Key REQUEST_PIPELINE_MAX_DEPTH = new Key("android.request.pipelineMaxDepth", byte.class); /** *

Defines how many sub-components * a result will be composed of.

*

In order to combat the pipeline latency, partial results * may be delivered to the application layer from the camera device as * soon as they are available.

*

Optional; defaults to 1. A value of 1 means that partial * results are not supported, and only the final TotalCaptureResult will * be produced by the camera device.

*

A typical use case for this might be: after requesting an * auto-focus (AF) lock the new AF state might be available 50% * of the way through the pipeline. The camera device could * then immediately dispatch this state via a partial result to * the application, and the rest of the metadata via later * partial results.

*

Range of valid values:
* >= 1

*

Optional - The value for this key may be {@code null} on some devices.

*/ @PublicKey @NonNull public static final Key REQUEST_PARTIAL_RESULT_COUNT = new Key("android.request.partialResultCount", int.class); /** *

List of capabilities that this camera device * advertises as fully supporting.

*

A capability is a contract that the camera device makes in order * to be able to satisfy one or more use cases.

*

Listing a capability guarantees that the whole set of features * required to support a common use will all be available.

*

Using a subset of the functionality provided by an unsupported * capability may be possible on a specific camera device implementation; * to do this query each of android.request.availableRequestKeys, * android.request.availableResultKeys, * android.request.availableCharacteristicsKeys.

*

The following capabilities are guaranteed to be available on * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} == FULL devices:

*
    *
  • MANUAL_SENSOR
  • *
  • MANUAL_POST_PROCESSING
  • *
*

Other capabilities may be available on either FULL or LIMITED * devices, but the application should query this key to be sure.

*

Possible values:

*
    *
  • {@link #REQUEST_AVAILABLE_CAPABILITIES_BACKWARD_COMPATIBLE BACKWARD_COMPATIBLE}
  • *
  • {@link #REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR MANUAL_SENSOR}
  • *
  • {@link #REQUEST_AVAILABLE_CAPABILITIES_MANUAL_POST_PROCESSING MANUAL_POST_PROCESSING}
  • *
  • {@link #REQUEST_AVAILABLE_CAPABILITIES_RAW RAW}
  • *
  • {@link #REQUEST_AVAILABLE_CAPABILITIES_PRIVATE_REPROCESSING PRIVATE_REPROCESSING}
  • *
  • {@link #REQUEST_AVAILABLE_CAPABILITIES_READ_SENSOR_SETTINGS READ_SENSOR_SETTINGS}
  • *
  • {@link #REQUEST_AVAILABLE_CAPABILITIES_BURST_CAPTURE BURST_CAPTURE}
  • *
  • {@link #REQUEST_AVAILABLE_CAPABILITIES_YUV_REPROCESSING YUV_REPROCESSING}
  • *
  • {@link #REQUEST_AVAILABLE_CAPABILITIES_DEPTH_OUTPUT DEPTH_OUTPUT}
  • *
  • {@link #REQUEST_AVAILABLE_CAPABILITIES_CONSTRAINED_HIGH_SPEED_VIDEO CONSTRAINED_HIGH_SPEED_VIDEO}
  • *
  • {@link #REQUEST_AVAILABLE_CAPABILITIES_MOTION_TRACKING MOTION_TRACKING}
  • *
  • {@link #REQUEST_AVAILABLE_CAPABILITIES_LOGICAL_MULTI_CAMERA LOGICAL_MULTI_CAMERA}
  • *
  • {@link #REQUEST_AVAILABLE_CAPABILITIES_MONOCHROME MONOCHROME}
  • *
  • {@link #REQUEST_AVAILABLE_CAPABILITIES_SECURE_IMAGE_DATA SECURE_IMAGE_DATA}
  • *
  • {@link #REQUEST_AVAILABLE_CAPABILITIES_SYSTEM_CAMERA SYSTEM_CAMERA}
  • *
  • {@link #REQUEST_AVAILABLE_CAPABILITIES_OFFLINE_PROCESSING OFFLINE_PROCESSING}
  • *
  • {@link #REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR ULTRA_HIGH_RESOLUTION_SENSOR}
  • *
  • {@link #REQUEST_AVAILABLE_CAPABILITIES_REMOSAIC_REPROCESSING REMOSAIC_REPROCESSING}
  • *
  • {@link #REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT DYNAMIC_RANGE_TEN_BIT}
  • *
  • {@link #REQUEST_AVAILABLE_CAPABILITIES_STREAM_USE_CASE STREAM_USE_CASE}
  • *
  • {@link #REQUEST_AVAILABLE_CAPABILITIES_COLOR_SPACE_PROFILES COLOR_SPACE_PROFILES}
  • *
* *

This key is available on all devices.

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see #REQUEST_AVAILABLE_CAPABILITIES_BACKWARD_COMPATIBLE * @see #REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR * @see #REQUEST_AVAILABLE_CAPABILITIES_MANUAL_POST_PROCESSING * @see #REQUEST_AVAILABLE_CAPABILITIES_RAW * @see #REQUEST_AVAILABLE_CAPABILITIES_PRIVATE_REPROCESSING * @see #REQUEST_AVAILABLE_CAPABILITIES_READ_SENSOR_SETTINGS * @see #REQUEST_AVAILABLE_CAPABILITIES_BURST_CAPTURE * @see #REQUEST_AVAILABLE_CAPABILITIES_YUV_REPROCESSING * @see #REQUEST_AVAILABLE_CAPABILITIES_DEPTH_OUTPUT * @see #REQUEST_AVAILABLE_CAPABILITIES_CONSTRAINED_HIGH_SPEED_VIDEO * @see #REQUEST_AVAILABLE_CAPABILITIES_MOTION_TRACKING * @see #REQUEST_AVAILABLE_CAPABILITIES_LOGICAL_MULTI_CAMERA * @see #REQUEST_AVAILABLE_CAPABILITIES_MONOCHROME * @see #REQUEST_AVAILABLE_CAPABILITIES_SECURE_IMAGE_DATA * @see #REQUEST_AVAILABLE_CAPABILITIES_SYSTEM_CAMERA * @see #REQUEST_AVAILABLE_CAPABILITIES_OFFLINE_PROCESSING * @see #REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR * @see #REQUEST_AVAILABLE_CAPABILITIES_REMOSAIC_REPROCESSING * @see #REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT * @see #REQUEST_AVAILABLE_CAPABILITIES_STREAM_USE_CASE * @see #REQUEST_AVAILABLE_CAPABILITIES_COLOR_SPACE_PROFILES */ @PublicKey @NonNull public static final Key REQUEST_AVAILABLE_CAPABILITIES = new Key("android.request.availableCapabilities", int[].class); /** *

A list of all keys that the camera device has available * to use with {@link android.hardware.camera2.CaptureRequest }.

*

Attempting to set a key into a CaptureRequest that is not * listed here will result in an invalid request and will be rejected * by the camera device.

*

This field can be used to query the feature set of a camera device * at a more granular level than capabilities. This is especially * important for optional keys that are not listed under any capability * in {@link CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES android.request.availableCapabilities}.

*

This key is available on all devices.

* * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES * @hide */ public static final Key REQUEST_AVAILABLE_REQUEST_KEYS = new Key("android.request.availableRequestKeys", int[].class); /** *

A list of all keys that the camera device has available to use with {@link android.hardware.camera2.CaptureResult }.

*

Attempting to get a key from a CaptureResult that is not * listed here will always return a null value. Getting a key from * a CaptureResult that is listed here will generally never return a null * value.

*

The following keys may return null unless they are enabled:

*
    *
  • android.statistics.lensShadingMap (non-null iff {@link CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE android.statistics.lensShadingMapMode} == ON)
  • *
*

(Those sometimes-null keys will nevertheless be listed here * if they are available.)

*

This field can be used to query the feature set of a camera device * at a more granular level than capabilities. This is especially * important for optional keys that are not listed under any capability * in {@link CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES android.request.availableCapabilities}.

*

This key is available on all devices.

* * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES * @see CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE * @hide */ public static final Key REQUEST_AVAILABLE_RESULT_KEYS = new Key("android.request.availableResultKeys", int[].class); /** *

A list of all keys that the camera device has available to use with {@link android.hardware.camera2.CameraCharacteristics }.

*

This entry follows the same rules as * android.request.availableResultKeys (except that it applies for * CameraCharacteristics instead of CaptureResult). See above for more * details.

*

This key is available on all devices.

* @hide */ public static final Key REQUEST_AVAILABLE_CHARACTERISTICS_KEYS = new Key("android.request.availableCharacteristicsKeys", int[].class); /** *

A subset of the available request keys that the camera device * can pass as part of the capture session initialization.

*

This is a subset of android.request.availableRequestKeys which * contains a list of keys that are difficult to apply per-frame and * can result in unexpected delays when modified during the capture session * lifetime. Typical examples include parameters that require a * time-consuming hardware re-configuration or internal camera pipeline * change. For performance reasons we advise clients to pass their initial * values as part of * {@link SessionConfiguration#setSessionParameters }. * Once the camera capture session is enabled it is also recommended to avoid * changing them from their initial values set in * {@link SessionConfiguration#setSessionParameters }. * Control over session parameters can still be exerted in capture requests * but clients should be aware and expect delays during their application. * An example usage scenario could look like this:

*
    *
  • The camera client starts by querying the session parameter key list via * {@link android.hardware.camera2.CameraCharacteristics#getAvailableSessionKeys }.
  • *
  • Before triggering the capture session create sequence, a capture request * must be built via * {@link CameraDevice#createCaptureRequest } * using an appropriate template matching the particular use case.
  • *
  • The client should go over the list of session parameters and check * whether some of the keys listed matches with the parameters that * they intend to modify as part of the first capture request.
  • *
  • If there is no such match, the capture request can be passed * unmodified to * {@link SessionConfiguration#setSessionParameters }.
  • *
  • If matches do exist, the client should update the respective values * and pass the request to * {@link SessionConfiguration#setSessionParameters }.
  • *
  • After the capture session initialization completes the session parameter * key list can continue to serve as reference when posting or updating * further requests. As mentioned above further changes to session * parameters should ideally be avoided, if updates are necessary * however clients could expect a delay/glitch during the * parameter switch.
  • *
*

This key is available on all devices.

* @hide */ public static final Key REQUEST_AVAILABLE_SESSION_KEYS = new Key("android.request.availableSessionKeys", int[].class); /** *

A subset of the available request keys that can be overridden for * physical devices backing a logical multi-camera.

*

This is a subset of android.request.availableRequestKeys which contains a list * of keys that can be overridden using * {@link android.hardware.camera2.CaptureRequest.Builder#setPhysicalCameraKey }. * The respective value of such request key can be obtained by calling * {@link android.hardware.camera2.CaptureRequest.Builder#getPhysicalCameraKey }. * Capture requests that contain individual physical device requests must be built via * {@link android.hardware.camera2.CameraDevice#createCaptureRequest(int, Set)}.

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @hide */ public static final Key REQUEST_AVAILABLE_PHYSICAL_CAMERA_REQUEST_KEYS = new Key("android.request.availablePhysicalCameraRequestKeys", int[].class); /** *

A list of camera characteristics keys that are only available * in case the camera client has camera permission.

*

The entry contains a subset of * {@link android.hardware.camera2.CameraCharacteristics#getKeys } that require camera clients * to acquire the {@link android.Manifest.permission#CAMERA } permission before calling * {@link android.hardware.camera2.CameraManager#getCameraCharacteristics }. If the * permission is not held by the camera client, then the values of the respective properties * will not be present in {@link android.hardware.camera2.CameraCharacteristics }.

*

This key is available on all devices.

* @hide */ public static final Key REQUEST_CHARACTERISTIC_KEYS_NEEDING_PERMISSION = new Key("android.request.characteristicKeysNeedingPermission", int[].class); /** *

Devices supporting the 10-bit output capability * {@link android.hardware.camera2.CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT } * must list their supported dynamic range profiles along with capture request * constraints for specific profile combinations.

*

Camera clients can retrieve the list of supported 10-bit dynamic range profiles by calling * {@link android.hardware.camera2.params.DynamicRangeProfiles#getSupportedProfiles }. * Any of them can be configured by setting OutputConfiguration dynamic range profile in * {@link android.hardware.camera2.params.OutputConfiguration#setDynamicRangeProfile }. * Clients can also check if there are any constraints that limit the combination * of supported profiles that can be referenced within a single capture request by calling * {@link android.hardware.camera2.params.DynamicRangeProfiles#getProfileCaptureRequestConstraints }.

*

Optional - The value for this key may be {@code null} on some devices.

*/ @PublicKey @NonNull @SyntheticKey public static final Key REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES = new Key("android.request.availableDynamicRangeProfiles", android.hardware.camera2.params.DynamicRangeProfiles.class); /** *

A map of all available 10-bit dynamic range profiles along with their * capture request constraints.

*

Devices supporting the 10-bit output capability * {@link android.hardware.camera2.CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT } * must list their supported dynamic range profiles. In case the camera is not able to * support every possible profile combination within a single capture request, then the * constraints must be listed here as well.

*

Possible values:

*
    *
  • {@link #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_STANDARD STANDARD}
  • *
  • {@link #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_HLG10 HLG10}
  • *
  • {@link #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_HDR10 HDR10}
  • *
  • {@link #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_HDR10_PLUS HDR10_PLUS}
  • *
  • {@link #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_10B_HDR_REF DOLBY_VISION_10B_HDR_REF}
  • *
  • {@link #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_10B_HDR_REF_PO DOLBY_VISION_10B_HDR_REF_PO}
  • *
  • {@link #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_10B_HDR_OEM DOLBY_VISION_10B_HDR_OEM}
  • *
  • {@link #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_10B_HDR_OEM_PO DOLBY_VISION_10B_HDR_OEM_PO}
  • *
  • {@link #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_8B_HDR_REF DOLBY_VISION_8B_HDR_REF}
  • *
  • {@link #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_8B_HDR_REF_PO DOLBY_VISION_8B_HDR_REF_PO}
  • *
  • {@link #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_8B_HDR_OEM DOLBY_VISION_8B_HDR_OEM}
  • *
  • {@link #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_8B_HDR_OEM_PO DOLBY_VISION_8B_HDR_OEM_PO}
  • *
  • {@link #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_MAX MAX}
  • *
* *

Optional - The value for this key may be {@code null} on some devices.

* @see #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_STANDARD * @see #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_HLG10 * @see #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_HDR10 * @see #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_HDR10_PLUS * @see #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_10B_HDR_REF * @see #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_10B_HDR_REF_PO * @see #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_10B_HDR_OEM * @see #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_10B_HDR_OEM_PO * @see #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_8B_HDR_REF * @see #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_8B_HDR_REF_PO * @see #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_8B_HDR_OEM * @see #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_8B_HDR_OEM_PO * @see #REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_MAX * @hide */ public static final Key REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP = new Key("android.request.availableDynamicRangeProfilesMap", long[].class); /** *

Recommended 10-bit dynamic range profile.

*

Devices supporting the 10-bit output capability * {@link android.hardware.camera2.CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT } * must list a 10-bit supported dynamic range profile that is expected to perform * optimally in terms of image quality, power and performance. * The value advertised can be used as a hint by camera clients when configuring the dynamic * range profile when calling * {@link android.hardware.camera2.params.OutputConfiguration#setDynamicRangeProfile }.

*

Optional - The value for this key may be {@code null} on some devices.

*/ @PublicKey @NonNull public static final Key REQUEST_RECOMMENDED_TEN_BIT_DYNAMIC_RANGE_PROFILE = new Key("android.request.recommendedTenBitDynamicRangeProfile", long.class); /** *

An interface for querying the color space profiles supported by a camera device.

*

A color space profile is a combination of a color space, an image format, and a dynamic * range profile. Camera clients can retrieve the list of supported color spaces by calling * {@link android.hardware.camera2.params.ColorSpaceProfiles#getSupportedColorSpaces } or * {@link android.hardware.camera2.params.ColorSpaceProfiles#getSupportedColorSpacesForDynamicRange }. * If a camera does not support the * {@link android.hardware.camera2.CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT } * capability, the dynamic range profile will always be * {@link android.hardware.camera2.params.DynamicRangeProfiles#STANDARD }. Color space * capabilities are queried in combination with an {@link android.graphics.ImageFormat }. * If a camera client wants to know the general color space capabilities of a camera device * regardless of image format, it can specify {@link android.graphics.ImageFormat#UNKNOWN }. * The color space for a session can be configured by setting the SessionConfiguration * color space via {@link android.hardware.camera2.params.SessionConfiguration#setColorSpace }.

*

Optional - The value for this key may be {@code null} on some devices.

*/ @PublicKey @NonNull @SyntheticKey public static final Key REQUEST_AVAILABLE_COLOR_SPACE_PROFILES = new Key("android.request.availableColorSpaceProfiles", android.hardware.camera2.params.ColorSpaceProfiles.class); /** *

A list of all possible color space profiles supported by a camera device.

*

A color space profile is a combination of a color space, an image format, and a dynamic range * profile. If a camera does not support the * {@link android.hardware.camera2.CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT } * capability, the dynamic range profile will always be * {@link android.hardware.camera2.params.DynamicRangeProfiles#STANDARD }. Camera clients can * use {@link android.hardware.camera2.params.SessionConfiguration#setColorSpace } to select * a color space.

*

Possible values:

*
    *
  • {@link #REQUEST_AVAILABLE_COLOR_SPACE_PROFILES_MAP_UNSPECIFIED UNSPECIFIED}
  • *
  • {@link #REQUEST_AVAILABLE_COLOR_SPACE_PROFILES_MAP_SRGB SRGB}
  • *
  • {@link #REQUEST_AVAILABLE_COLOR_SPACE_PROFILES_MAP_DISPLAY_P3 DISPLAY_P3}
  • *
  • {@link #REQUEST_AVAILABLE_COLOR_SPACE_PROFILES_MAP_BT2020_HLG BT2020_HLG}
  • *
* *

Optional - The value for this key may be {@code null} on some devices.

* @see #REQUEST_AVAILABLE_COLOR_SPACE_PROFILES_MAP_UNSPECIFIED * @see #REQUEST_AVAILABLE_COLOR_SPACE_PROFILES_MAP_SRGB * @see #REQUEST_AVAILABLE_COLOR_SPACE_PROFILES_MAP_DISPLAY_P3 * @see #REQUEST_AVAILABLE_COLOR_SPACE_PROFILES_MAP_BT2020_HLG * @hide */ public static final Key REQUEST_AVAILABLE_COLOR_SPACE_PROFILES_MAP = new Key("android.request.availableColorSpaceProfilesMap", long[].class); /** *

The list of image formats that are supported by this * camera device for output streams.

*

All camera devices will support JPEG and YUV_420_888 formats.

*

When set to YUV_420_888, application can access the YUV420 data directly.

*

Optional - The value for this key may be {@code null} on some devices.

* @deprecated *

Not used in HALv3 or newer

* @hide */ @Deprecated public static final Key SCALER_AVAILABLE_FORMATS = new Key("android.scaler.availableFormats", int[].class); /** *

The minimum frame duration that is supported * for each resolution in android.scaler.availableJpegSizes.

*

This corresponds to the minimum steady-state frame duration when only * that JPEG stream is active and captured in a burst, with all * processing (typically in android.*.mode) set to FAST.

*

When multiple streams are configured, the minimum * frame duration will be >= max(individual stream min * durations)

*

Units: Nanoseconds

*

Range of valid values:
* TODO: Remove property.

*

Optional - The value for this key may be {@code null} on some devices.

* @deprecated *

Not used in HALv3 or newer

* @hide */ @Deprecated public static final Key SCALER_AVAILABLE_JPEG_MIN_DURATIONS = new Key("android.scaler.availableJpegMinDurations", long[].class); /** *

The JPEG resolutions that are supported by this camera device.

*

The resolutions are listed as (width, height) pairs. All camera devices will support * sensor maximum resolution (defined by {@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize}).

*

Range of valid values:
* TODO: Remove property.

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE * @deprecated *

Not used in HALv3 or newer

* @hide */ @Deprecated public static final Key SCALER_AVAILABLE_JPEG_SIZES = new Key("android.scaler.availableJpegSizes", android.util.Size[].class); /** *

The maximum ratio between both active area width * and crop region width, and active area height and * crop region height, for {@link CaptureRequest#SCALER_CROP_REGION android.scaler.cropRegion}.

*

This represents the maximum amount of zooming possible by * the camera device, or equivalently, the minimum cropping * window size.

*

Crop regions that have a width or height that is smaller * than this ratio allows will be rounded up to the minimum * allowed size by the camera device.

*

Starting from API level 30, when using {@link CaptureRequest#CONTROL_ZOOM_RATIO android.control.zoomRatio} to zoom in or out, * the application must use {@link CameraCharacteristics#CONTROL_ZOOM_RATIO_RANGE android.control.zoomRatioRange} to query both the minimum and * maximum zoom ratio.

*

Units: Zoom scale factor

*

Range of valid values:
* >=1

*

This key is available on all devices.

* * @see CaptureRequest#CONTROL_ZOOM_RATIO * @see CameraCharacteristics#CONTROL_ZOOM_RATIO_RANGE * @see CaptureRequest#SCALER_CROP_REGION */ @PublicKey @NonNull public static final Key SCALER_AVAILABLE_MAX_DIGITAL_ZOOM = new Key("android.scaler.availableMaxDigitalZoom", float.class); /** *

For each available processed output size (defined in * android.scaler.availableProcessedSizes), this property lists the * minimum supportable frame duration for that size.

*

This should correspond to the frame duration when only that processed * stream is active, with all processing (typically in android.*.mode) * set to FAST.

*

When multiple streams are configured, the minimum frame duration will * be >= max(individual stream min durations).

*

Units: Nanoseconds

*

Optional - The value for this key may be {@code null} on some devices.

* @deprecated *

Not used in HALv3 or newer

* @hide */ @Deprecated public static final Key SCALER_AVAILABLE_PROCESSED_MIN_DURATIONS = new Key("android.scaler.availableProcessedMinDurations", long[].class); /** *

The resolutions available for use with * processed output streams, such as YV12, NV12, and * platform opaque YUV/RGB streams to the GPU or video * encoders.

*

The resolutions are listed as (width, height) pairs.

*

For a given use case, the actual maximum supported resolution * may be lower than what is listed here, depending on the destination * Surface for the image data. For example, for recording video, * the video encoder chosen may have a maximum size limit (e.g. 1080p) * smaller than what the camera (e.g. maximum resolution is 3264x2448) * can provide.

*

Please reference the documentation for the image data destination to * check if it limits the maximum size for image data.

*

Optional - The value for this key may be {@code null} on some devices.

* @deprecated *

Not used in HALv3 or newer

* @hide */ @Deprecated public static final Key SCALER_AVAILABLE_PROCESSED_SIZES = new Key("android.scaler.availableProcessedSizes", android.util.Size[].class); /** *

The mapping of image formats that are supported by this * camera device for input streams, to their corresponding output formats.

*

All camera devices with at least 1 * {@link CameraCharacteristics#REQUEST_MAX_NUM_INPUT_STREAMS android.request.maxNumInputStreams} will have at least one * available input format.

*

The camera device will support the following map of formats, * if its dependent capability ({@link CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES android.request.availableCapabilities}) is supported:

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Input FormatOutput FormatCapability
{@link android.graphics.ImageFormat#PRIVATE }{@link android.graphics.ImageFormat#JPEG }PRIVATE_REPROCESSING
{@link android.graphics.ImageFormat#PRIVATE }{@link android.graphics.ImageFormat#YUV_420_888 }PRIVATE_REPROCESSING
{@link android.graphics.ImageFormat#YUV_420_888 }{@link android.graphics.ImageFormat#JPEG }YUV_REPROCESSING
{@link android.graphics.ImageFormat#YUV_420_888 }{@link android.graphics.ImageFormat#YUV_420_888 }YUV_REPROCESSING
*

PRIVATE refers to a device-internal format that is not directly application-visible. A * PRIVATE input surface can be acquired by {@link android.media.ImageReader#newInstance } * with {@link android.graphics.ImageFormat#PRIVATE } as the format.

*

For a PRIVATE_REPROCESSING-capable camera device, using the PRIVATE format as either input * or output will never hurt maximum frame rate (i.e. {@link android.hardware.camera2.params.StreamConfigurationMap#getOutputStallDuration getOutputStallDuration(ImageFormat.PRIVATE, size)} is always 0),

*

Attempting to configure an input stream with output streams not * listed as available in this map is not valid.

*

Additionally, if the camera device is MONOCHROME with Y8 support, it will also support * the following map of formats if its dependent capability * ({@link CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES android.request.availableCapabilities}) is supported:

* * * * * * * * * * * * * * * * * * * * * * * * * *
Input FormatOutput FormatCapability
{@link android.graphics.ImageFormat#PRIVATE }{@link android.graphics.ImageFormat#Y8 }PRIVATE_REPROCESSING
{@link android.graphics.ImageFormat#Y8 }{@link android.graphics.ImageFormat#JPEG }YUV_REPROCESSING
{@link android.graphics.ImageFormat#Y8 }{@link android.graphics.ImageFormat#Y8 }YUV_REPROCESSING
*

Optional - The value for this key may be {@code null} on some devices.

* * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES * @see CameraCharacteristics#REQUEST_MAX_NUM_INPUT_STREAMS * @hide */ public static final Key SCALER_AVAILABLE_INPUT_OUTPUT_FORMATS_MAP = new Key("android.scaler.availableInputOutputFormatsMap", android.hardware.camera2.params.ReprocessFormatsMap.class); /** *

The available stream configurations that this * camera device supports * (i.e. format, width, height, output/input stream).

*

The configurations are listed as (format, width, height, input?) * tuples.

*

For a given use case, the actual maximum supported resolution * may be lower than what is listed here, depending on the destination * Surface for the image data. For example, for recording video, * the video encoder chosen may have a maximum size limit (e.g. 1080p) * smaller than what the camera (e.g. maximum resolution is 3264x2448) * can provide.

*

Please reference the documentation for the image data destination to * check if it limits the maximum size for image data.

*

Not all output formats may be supported in a configuration with * an input stream of a particular format. For more details, see * android.scaler.availableInputOutputFormatsMap.

*

For applications targeting SDK version older than 31, the following table * describes the minimum required output stream configurations based on the hardware level * ({@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel}):

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
FormatSizeHardware LevelNotes
JPEG{@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize}Any
JPEG1920x1080 (1080p)Anyif 1080p <= activeArraySize
JPEG1280x720 (720)Anyif 720p <= activeArraySize
JPEG640x480 (480p)Anyif 480p <= activeArraySize
JPEG320x240 (240p)Anyif 240p <= activeArraySize
YUV_420_888all output sizes available for JPEGFULL
YUV_420_888all output sizes available for JPEG, up to the maximum video sizeLIMITED
IMPLEMENTATION_DEFINEDsame as YUV_420_888Any
*

For applications targeting SDK version 31 or newer, if the mobile device declares to be * media performance class 12 or higher by setting * {@link android.os.Build.VERSION#MEDIA_PERFORMANCE_CLASS } to be 31 or larger, * the primary camera devices (first rear/front camera in the camera ID list) will not * support JPEG sizes smaller than 1080p. If the application configures a JPEG stream * smaller than 1080p, the camera device will round up the JPEG image size to at least * 1080p. The requirements for IMPLEMENTATION_DEFINED and YUV_420_888 stay the same. * This new minimum required output stream configurations are illustrated by the table below:

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
FormatSizeHardware LevelNotes
JPEG{@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize}Any
JPEG1920x1080 (1080p)Anyif 1080p <= activeArraySize
YUV_420_888{@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize}FULL
YUV_420_8881920x1080 (1080p)FULLif 1080p <= activeArraySize
YUV_420_8881280x720 (720)FULLif 720p <= activeArraySize
YUV_420_888640x480 (480p)FULLif 480p <= activeArraySize
YUV_420_888320x240 (240p)FULLif 240p <= activeArraySize
YUV_420_888all output sizes available for FULL hardware level, up to the maximum video sizeLIMITED
IMPLEMENTATION_DEFINEDsame as YUV_420_888Any
*

For applications targeting SDK version 31 or newer, if the mobile device doesn't declare * to be media performance class 12 or better by setting * {@link android.os.Build.VERSION#MEDIA_PERFORMANCE_CLASS } to be 31 or larger, * or if the camera device isn't a primary rear/front camera, the minimum required output * stream configurations are the same as for applications targeting SDK version older than * 31.

*

Refer to {@link CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES android.request.availableCapabilities} for additional * mandatory stream configurations on a per-capability basis.

*

Exception on 176x144 (QCIF) resolution: camera devices usually have a fixed capability for * downscaling from larger resolution to smaller, and the QCIF resolution sometimes is not * fully supported due to this limitation on devices with high-resolution image sensors. * Therefore, trying to configure a QCIF resolution stream together with any other * stream larger than 1920x1080 resolution (either width or height) might not be supported, * and capture session creation will fail if it is not.

*

This key is available on all devices.

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES * @see CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE * @hide */ public static final Key SCALER_AVAILABLE_STREAM_CONFIGURATIONS = new Key("android.scaler.availableStreamConfigurations", android.hardware.camera2.params.StreamConfiguration[].class); /** *

This lists the minimum frame duration for each * format/size combination.

*

This should correspond to the frame duration when only that * stream is active, with all processing (typically in android.*.mode) * set to either OFF or FAST.

*

When multiple streams are used in a request, the minimum frame * duration will be max(individual stream min durations).

*

See {@link CaptureRequest#SENSOR_FRAME_DURATION android.sensor.frameDuration} and * android.scaler.availableStallDurations for more details about * calculating the max frame rate.

*

Units: (format, width, height, ns) x n

*

This key is available on all devices.

* * @see CaptureRequest#SENSOR_FRAME_DURATION * @hide */ public static final Key SCALER_AVAILABLE_MIN_FRAME_DURATIONS = new Key("android.scaler.availableMinFrameDurations", android.hardware.camera2.params.StreamConfigurationDuration[].class); /** *

This lists the maximum stall duration for each * output format/size combination.

*

A stall duration is how much extra time would get added * to the normal minimum frame duration for a repeating request * that has streams with non-zero stall.

*

For example, consider JPEG captures which have the following * characteristics:

*
    *
  • JPEG streams act like processed YUV streams in requests for which * they are not included; in requests in which they are directly * referenced, they act as JPEG streams. This is because supporting a * JPEG stream requires the underlying YUV data to always be ready for * use by a JPEG encoder, but the encoder will only be used (and impact * frame duration) on requests that actually reference a JPEG stream.
  • *
  • The JPEG processor can run concurrently to the rest of the camera * pipeline, but cannot process more than 1 capture at a time.
  • *
*

In other words, using a repeating YUV request would result * in a steady frame rate (let's say it's 30 FPS). If a single * JPEG request is submitted periodically, the frame rate will stay * at 30 FPS (as long as we wait for the previous JPEG to return each * time). If we try to submit a repeating YUV + JPEG request, then * the frame rate will drop from 30 FPS.

*

In general, submitting a new request with a non-0 stall time * stream will not cause a frame rate drop unless there are still * outstanding buffers for that stream from previous requests.

*

Submitting a repeating request with streams (call this S) * is the same as setting the minimum frame duration from * the normal minimum frame duration corresponding to S, added with * the maximum stall duration for S.

*

If interleaving requests with and without a stall duration, * a request will stall by the maximum of the remaining times * for each can-stall stream with outstanding buffers.

*

This means that a stalling request will not have an exposure start * until the stall has completed.

*

This should correspond to the stall duration when only that stream is * active, with all processing (typically in android.*.mode) set to FAST * or OFF. Setting any of the processing modes to HIGH_QUALITY * effectively results in an indeterminate stall duration for all * streams in a request (the regular stall calculation rules are * ignored).

*

The following formats may always have a stall duration:

*
    *
  • {@link android.graphics.ImageFormat#JPEG }
  • *
  • {@link android.graphics.ImageFormat#RAW_SENSOR }
  • *
*

The following formats will never have a stall duration:

*
    *
  • {@link android.graphics.ImageFormat#YUV_420_888 }
  • *
  • {@link android.graphics.ImageFormat#RAW10 }
  • *
  • {@link android.graphics.ImageFormat#RAW12 }
  • *
  • {@link android.graphics.ImageFormat#Y8 }
  • *
*

All other formats may or may not have an allowed stall duration on * a per-capability basis; refer to {@link CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES android.request.availableCapabilities} * for more details.

*

See {@link CaptureRequest#SENSOR_FRAME_DURATION android.sensor.frameDuration} for more information about * calculating the max frame rate (absent stalls).

*

Units: (format, width, height, ns) x n

*

This key is available on all devices.

* * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES * @see CaptureRequest#SENSOR_FRAME_DURATION * @hide */ public static final Key SCALER_AVAILABLE_STALL_DURATIONS = new Key("android.scaler.availableStallDurations", android.hardware.camera2.params.StreamConfigurationDuration[].class); /** *

The available stream configurations that this * camera device supports; also includes the minimum frame durations * and the stall durations for each format/size combination.

*

All camera devices will support sensor maximum resolution (defined by * {@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize}) for the JPEG format.

*

For a given use case, the actual maximum supported resolution * may be lower than what is listed here, depending on the destination * Surface for the image data. For example, for recording video, * the video encoder chosen may have a maximum size limit (e.g. 1080p) * smaller than what the camera (e.g. maximum resolution is 3264x2448) * can provide.

*

Please reference the documentation for the image data destination to * check if it limits the maximum size for image data.

*

For applications targeting SDK version older than 31, the following table * describes the minimum required output stream configurations based on the * hardware level ({@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel}):

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
FormatSizeHardware LevelNotes
{@link android.graphics.ImageFormat#JPEG }{@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize} (*1)Any
{@link android.graphics.ImageFormat#JPEG }1920x1080 (1080p)Anyif 1080p <= activeArraySize
{@link android.graphics.ImageFormat#JPEG }1280x720 (720p)Anyif 720p <= activeArraySize
{@link android.graphics.ImageFormat#JPEG }640x480 (480p)Anyif 480p <= activeArraySize
{@link android.graphics.ImageFormat#JPEG }320x240 (240p)Anyif 240p <= activeArraySize
{@link android.graphics.ImageFormat#YUV_420_888 }all output sizes available for JPEGFULL
{@link android.graphics.ImageFormat#YUV_420_888 }all output sizes available for JPEG, up to the maximum video sizeLIMITED
{@link android.graphics.ImageFormat#PRIVATE }same as YUV_420_888Any
*

For applications targeting SDK version 31 or newer, if the mobile device declares to be * media performance class 12 or higher by setting * {@link android.os.Build.VERSION#MEDIA_PERFORMANCE_CLASS } to be 31 or larger, * the primary camera devices (first rear/front camera in the camera ID list) will not * support JPEG sizes smaller than 1080p. If the application configures a JPEG stream * smaller than 1080p, the camera device will round up the JPEG image size to at least * 1080p. The requirements for IMPLEMENTATION_DEFINED and YUV_420_888 stay the same. * This new minimum required output stream configurations are illustrated by the table below:

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
FormatSizeHardware LevelNotes
{@link android.graphics.ImageFormat#JPEG }{@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize} (*1)Any
{@link android.graphics.ImageFormat#JPEG }1920x1080 (1080p)Anyif 1080p <= activeArraySize
{@link android.graphics.ImageFormat#YUV_420_888 }{@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize}FULL
{@link android.graphics.ImageFormat#YUV_420_888 }1920x1080 (1080p)FULLif 1080p <= activeArraySize
{@link android.graphics.ImageFormat#YUV_420_888 }1280x720 (720)FULLif 720p <= activeArraySize
{@link android.graphics.ImageFormat#YUV_420_888 }640x480 (480p)FULLif 480p <= activeArraySize
{@link android.graphics.ImageFormat#YUV_420_888 }320x240 (240p)FULLif 240p <= activeArraySize
{@link android.graphics.ImageFormat#YUV_420_888 }all output sizes available for FULL hardware level, up to the maximum video sizeLIMITED
{@link android.graphics.ImageFormat#PRIVATE }same as YUV_420_888Any
*

For applications targeting SDK version 31 or newer, if the mobile device doesn't declare * to be media performance class 12 or better by setting * {@link android.os.Build.VERSION#MEDIA_PERFORMANCE_CLASS } to be 31 or larger, * or if the camera device isn't a primary rear/front camera, the minimum required output * stream configurations are the same as for applications targeting SDK version older than * 31.

*

Refer to {@link CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES android.request.availableCapabilities} and * the table * for additional mandatory stream configurations on a per-capability basis.

*

*1: For JPEG format, the sizes may be restricted by below conditions:

*
    *
  • The HAL may choose the aspect ratio of each Jpeg size to be one of well known ones * (e.g. 4:3, 16:9, 3:2 etc.). If the sensor maximum resolution * (defined by {@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize}) has an aspect ratio other than these, * it does not have to be included in the supported JPEG sizes.
  • *
  • Some hardware JPEG encoders may have pixel boundary alignment requirements, such as * the dimensions being a multiple of 16. * Therefore, the maximum JPEG size may be smaller than sensor maximum resolution. * However, the largest JPEG size will be as close as possible to the sensor maximum * resolution given above constraints. It is required that after aspect ratio adjustments, * additional size reduction due to other issues must be less than 3% in area. For example, * if the sensor maximum resolution is 3280x2464, if the maximum JPEG size has aspect * ratio 4:3, and the JPEG encoder alignment requirement is 16, the maximum JPEG size will be * 3264x2448.
  • *
*

Exception on 176x144 (QCIF) resolution: camera devices usually have a fixed capability on * downscaling from larger resolution to smaller ones, and the QCIF resolution can sometimes * not be fully supported due to this limitation on devices with high-resolution image * sensors. Therefore, trying to configure a QCIF resolution stream together with any other * stream larger than 1920x1080 resolution (either width or height) might not be supported, * and capture session creation will fail if it is not.

*

This key is available on all devices.

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES * @see CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE */ @PublicKey @NonNull @SyntheticKey public static final Key SCALER_STREAM_CONFIGURATION_MAP = new Key("android.scaler.streamConfigurationMap", android.hardware.camera2.params.StreamConfigurationMap.class); /** *

The crop type that this camera device supports.

*

When passing a non-centered crop region ({@link CaptureRequest#SCALER_CROP_REGION android.scaler.cropRegion}) to a camera * device that only supports CENTER_ONLY cropping, the camera device will move the * crop region to the center of the sensor active array ({@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize}) * and keep the crop region width and height unchanged. The camera device will return the * final used crop region in metadata result {@link CaptureRequest#SCALER_CROP_REGION android.scaler.cropRegion}.

*

Camera devices that support FREEFORM cropping will support any crop region that * is inside of the active array. The camera device will apply the same crop region and * return the final used crop region in capture result metadata {@link CaptureRequest#SCALER_CROP_REGION android.scaler.cropRegion}.

*

Starting from API level 30,

*
    *
  • If the camera device supports FREEFORM cropping, in order to do FREEFORM cropping, the * application must set {@link CaptureRequest#CONTROL_ZOOM_RATIO android.control.zoomRatio} to 1.0, and use {@link CaptureRequest#SCALER_CROP_REGION android.scaler.cropRegion} * for zoom.
  • *
  • To do CENTER_ONLY zoom, the application has below 2 options:
      *
    1. Set {@link CaptureRequest#CONTROL_ZOOM_RATIO android.control.zoomRatio} to 1.0; adjust zoom by {@link CaptureRequest#SCALER_CROP_REGION android.scaler.cropRegion}.
    2. *
    3. Adjust zoom by {@link CaptureRequest#CONTROL_ZOOM_RATIO android.control.zoomRatio}; use {@link CaptureRequest#SCALER_CROP_REGION android.scaler.cropRegion} to crop * the field of view vertically (letterboxing) or horizontally (pillarboxing), but not * windowboxing.
    4. *
    *
  • *
  • Setting {@link CaptureRequest#CONTROL_ZOOM_RATIO android.control.zoomRatio} to values different than 1.0 and * {@link CaptureRequest#SCALER_CROP_REGION android.scaler.cropRegion} to be windowboxing at the same time are not supported. In this * case, the camera framework will override the {@link CaptureRequest#SCALER_CROP_REGION android.scaler.cropRegion} to be the active * array.
  • *
*

LEGACY capability devices will only support CENTER_ONLY cropping.

*

Possible values:

*
    *
  • {@link #SCALER_CROPPING_TYPE_CENTER_ONLY CENTER_ONLY}
  • *
  • {@link #SCALER_CROPPING_TYPE_FREEFORM FREEFORM}
  • *
* *

This key is available on all devices.

* * @see CaptureRequest#CONTROL_ZOOM_RATIO * @see CaptureRequest#SCALER_CROP_REGION * @see CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE * @see #SCALER_CROPPING_TYPE_CENTER_ONLY * @see #SCALER_CROPPING_TYPE_FREEFORM */ @PublicKey @NonNull public static final Key SCALER_CROPPING_TYPE = new Key("android.scaler.croppingType", int.class); /** *

Recommended stream configurations for common client use cases.

*

Optional subset of the android.scaler.availableStreamConfigurations that contains * similar tuples listed as * (i.e. width, height, format, output/input stream, usecase bit field). * Camera devices will be able to suggest particular stream configurations which are * power and performance efficient for specific use cases. For more information about * retrieving the suggestions see * {@link android.hardware.camera2.CameraCharacteristics#getRecommendedStreamConfigurationMap }.

*

Optional - The value for this key may be {@code null} on some devices.

* @hide */ public static final Key SCALER_AVAILABLE_RECOMMENDED_STREAM_CONFIGURATIONS = new Key("android.scaler.availableRecommendedStreamConfigurations", android.hardware.camera2.params.RecommendedStreamConfiguration[].class); /** *

Recommended mappings of image formats that are supported by this * camera device for input streams, to their corresponding output formats.

*

This is a recommended subset of the complete list of mappings found in * android.scaler.availableInputOutputFormatsMap. The same requirements apply here as well. * The list however doesn't need to contain all available and supported mappings. Instead of * this developers must list only recommended and efficient entries. * If set, the information will be available in the ZERO_SHUTTER_LAG recommended stream * configuration see * {@link android.hardware.camera2.CameraCharacteristics#getRecommendedStreamConfigurationMap }.

*

Optional - The value for this key may be {@code null} on some devices.

* @hide */ public static final Key SCALER_AVAILABLE_RECOMMENDED_INPUT_OUTPUT_FORMATS_MAP = new Key("android.scaler.availableRecommendedInputOutputFormatsMap", android.hardware.camera2.params.ReprocessFormatsMap.class); /** *

An array of mandatory stream combinations generated according to the camera device * {@link android.hardware.camera2.CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL } * and {@link android.hardware.camera2.CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES }. * This is an app-readable conversion of the mandatory stream combination * tables.

*

The array of * {@link android.hardware.camera2.params.MandatoryStreamCombination combinations} is * generated according to the documented * guideline. * based on specific device level and capabilities. * Clients can use the array as a quick reference to find an appropriate camera stream * combination. * As per documentation, the stream combinations with given PREVIEW, RECORD and * MAXIMUM resolutions and anything smaller from the list given by * {@link android.hardware.camera2.params.StreamConfigurationMap#getOutputSizes } are * guaranteed to work. * For a physical camera not independently exposed in * {@link android.hardware.camera2.CameraManager#getCameraIdList }, the mandatory stream * combinations for that physical camera Id are also generated, so that the application can * configure them as physical streams via the logical camera. * The mandatory stream combination array will be {@code null} in case the device is not * backward compatible.

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL */ @PublicKey @NonNull @SyntheticKey public static final Key SCALER_MANDATORY_STREAM_COMBINATIONS = new Key("android.scaler.mandatoryStreamCombinations", android.hardware.camera2.params.MandatoryStreamCombination[].class); /** *

An array of mandatory concurrent stream combinations. * This is an app-readable conversion of the concurrent mandatory stream combination * tables.

*

The array of * {@link android.hardware.camera2.params.MandatoryStreamCombination combinations} is * generated according to the documented * guideline * for each device which has its Id present in the set returned by * {@link android.hardware.camera2.CameraManager#getConcurrentCameraIds }. * Clients can use the array as a quick reference to find an appropriate camera stream * combination. * The mandatory stream combination array will be {@code null} in case the device is not a * part of at least one set of combinations returned by * {@link android.hardware.camera2.CameraManager#getConcurrentCameraIds }.

*

Optional - The value for this key may be {@code null} on some devices.

*/ @PublicKey @NonNull @SyntheticKey public static final Key SCALER_MANDATORY_CONCURRENT_STREAM_COMBINATIONS = new Key("android.scaler.mandatoryConcurrentStreamCombinations", android.hardware.camera2.params.MandatoryStreamCombination[].class); /** *

List of rotate-and-crop modes for {@link CaptureRequest#SCALER_ROTATE_AND_CROP android.scaler.rotateAndCrop} that are supported by this camera device.

*

This entry lists the valid modes for {@link CaptureRequest#SCALER_ROTATE_AND_CROP android.scaler.rotateAndCrop} for this camera device.

*

Starting with API level 30, all devices will list at least ROTATE_AND_CROP_NONE. * Devices with support for rotate-and-crop will additionally list at least * ROTATE_AND_CROP_AUTO and ROTATE_AND_CROP_90.

*

Range of valid values:
* Any value listed in {@link CaptureRequest#SCALER_ROTATE_AND_CROP android.scaler.rotateAndCrop}

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#SCALER_ROTATE_AND_CROP */ @PublicKey @NonNull public static final Key SCALER_AVAILABLE_ROTATE_AND_CROP_MODES = new Key("android.scaler.availableRotateAndCropModes", int[].class); /** *

Default YUV/PRIVATE size to use for requesting secure image buffers.

*

This entry lists the default size supported in the secure camera mode. This entry is * optional on devices support the SECURE_IMAGE_DATA capability. This entry will be null * if the camera device does not list SECURE_IMAGE_DATA capability.

*

When the key is present, only a PRIVATE/YUV output of the specified size is guaranteed * to be supported by the camera HAL in the secure camera mode. Any other format or * resolutions might not be supported. Use * {@link CameraDevice#isSessionConfigurationSupported } * API to query if a secure session configuration is supported if the device supports this * API.

*

If this key returns null on a device with SECURE_IMAGE_DATA capability, the application * can assume all output sizes listed in the * {@link android.hardware.camera2.params.StreamConfigurationMap } * are supported.

*

Units: Pixels

*

Optional - The value for this key may be {@code null} on some devices.

*/ @PublicKey @NonNull public static final Key SCALER_DEFAULT_SECURE_IMAGE_SIZE = new Key("android.scaler.defaultSecureImageSize", android.util.Size.class); /** *

The available multi-resolution stream configurations that this * physical camera device supports * (i.e. format, width, height, output/input stream).

*

This list contains a subset of the parent logical camera's multi-resolution stream * configurations which belong to this physical camera, and it will advertise and will only * advertise the maximum supported resolutions for a particular format.

*

If this camera device isn't a physical camera device constituting a logical camera, * but a standalone {@link android.hardware.camera2.CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR } * camera, this field represents the multi-resolution input/output stream configurations of * default mode and max resolution modes. The sizes will be the maximum resolution of a * particular format for default mode and max resolution mode.

*

This field will only be advertised if the device is a physical camera of a * logical multi-camera device or an ultra high resolution sensor camera. For a logical * multi-camera, the camera API will derive the logical camera’s multi-resolution stream * configurations from all physical cameras. For an ultra high resolution sensor camera, this * is used directly as the camera’s multi-resolution stream configurations.

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @hide */ public static final Key SCALER_PHYSICAL_CAMERA_MULTI_RESOLUTION_STREAM_CONFIGURATIONS = new Key("android.scaler.physicalCameraMultiResolutionStreamConfigurations", android.hardware.camera2.params.StreamConfiguration[].class); /** *

The multi-resolution stream configurations supported by this logical camera * or ultra high resolution sensor camera device.

*

Multi-resolution streams can be used by a LOGICAL_MULTI_CAMERA or an * ULTRA_HIGH_RESOLUTION_SENSOR camera where the images sent or received can vary in * resolution per frame. This is useful in cases where the camera device's effective full * resolution changes depending on factors such as the current zoom level, lighting * condition, focus distance, or pixel mode.

*
    *
  • For a logical multi-camera implementing optical zoom, at different zoom level, a * different physical camera may be active, resulting in different full-resolution image * sizes.
  • *
  • For an ultra high resolution camera, depending on whether the camera operates in default * mode, or maximum resolution mode, the output full-size images may be of either binned * resolution or maximum resolution.
  • *
*

To use multi-resolution output streams, the supported formats can be queried by {@link android.hardware.camera2.params.MultiResolutionStreamConfigurationMap#getOutputFormats }. * A {@link android.hardware.camera2.MultiResolutionImageReader } can then be created for a * supported format with the MultiResolutionStreamInfo group queried by {@link android.hardware.camera2.params.MultiResolutionStreamConfigurationMap#getOutputInfo }.

*

If a camera device supports multi-resolution output streams for a particular format, for * each of its mandatory stream combinations, the camera device will support using a * MultiResolutionImageReader for the MAXIMUM stream of supported formats. Refer to * the table * for additional details.

*

To use multi-resolution input streams, the supported formats can be queried by {@link android.hardware.camera2.params.MultiResolutionStreamConfigurationMap#getInputFormats }. * A reprocessable CameraCaptureSession can then be created using an {@link android.hardware.camera2.params.InputConfiguration InputConfiguration} constructed with * the input MultiResolutionStreamInfo group, queried by {@link android.hardware.camera2.params.MultiResolutionStreamConfigurationMap#getInputInfo }.

*

If a camera device supports multi-resolution {@code YUV} input and multi-resolution * {@code YUV} output, or multi-resolution {@code PRIVATE} input and multi-resolution * {@code PRIVATE} output, {@code JPEG} and {@code YUV} are guaranteed to be supported * multi-resolution output stream formats. Refer to * the table * for details about the additional mandatory stream combinations in this case.

*

Optional - The value for this key may be {@code null} on some devices.

*/ @PublicKey @NonNull @SyntheticKey public static final Key SCALER_MULTI_RESOLUTION_STREAM_CONFIGURATION_MAP = new Key("android.scaler.multiResolutionStreamConfigurationMap", android.hardware.camera2.params.MultiResolutionStreamConfigurationMap.class); /** *

The available stream configurations that this * camera device supports (i.e. format, width, height, output/input stream) for a * CaptureRequest with {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Analogous to android.scaler.availableStreamConfigurations, for configurations * which are applicable when {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Not all output formats may be supported in a configuration with * an input stream of a particular format. For more details, see * android.scaler.availableInputOutputFormatsMapMaximumResolution.

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#SENSOR_PIXEL_MODE * @hide */ public static final Key SCALER_AVAILABLE_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION = new Key("android.scaler.availableStreamConfigurationsMaximumResolution", android.hardware.camera2.params.StreamConfiguration[].class); /** *

This lists the minimum frame duration for each * format/size combination when the camera device is sent a CaptureRequest with * {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Analogous to android.scaler.availableMinFrameDurations, for configurations * which are applicable when {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

When multiple streams are used in a request (if supported, when {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} * is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }), the * minimum frame duration will be max(individual stream min durations).

*

See {@link CaptureRequest#SENSOR_FRAME_DURATION android.sensor.frameDuration} and * android.scaler.availableStallDurationsMaximumResolution for more details about * calculating the max frame rate.

*

Units: (format, width, height, ns) x n

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#SENSOR_FRAME_DURATION * @see CaptureRequest#SENSOR_PIXEL_MODE * @hide */ public static final Key SCALER_AVAILABLE_MIN_FRAME_DURATIONS_MAXIMUM_RESOLUTION = new Key("android.scaler.availableMinFrameDurationsMaximumResolution", android.hardware.camera2.params.StreamConfigurationDuration[].class); /** *

This lists the maximum stall duration for each * output format/size combination when CaptureRequests are submitted with * {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }

*

Analogous to android.scaler.availableMinFrameDurations, for configurations * which are applicable when {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Units: (format, width, height, ns) x n

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#SENSOR_PIXEL_MODE * @hide */ public static final Key SCALER_AVAILABLE_STALL_DURATIONS_MAXIMUM_RESOLUTION = new Key("android.scaler.availableStallDurationsMaximumResolution", android.hardware.camera2.params.StreamConfigurationDuration[].class); /** *

The available stream configurations that this * camera device supports when given a CaptureRequest with {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} * set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }; * also includes the minimum frame durations * and the stall durations for each format/size combination.

*

Analogous to {@link CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP android.scaler.streamConfigurationMap} for CaptureRequests where * {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP * @see CaptureRequest#SENSOR_PIXEL_MODE */ @PublicKey @NonNull @SyntheticKey public static final Key SCALER_STREAM_CONFIGURATION_MAP_MAXIMUM_RESOLUTION = new Key("android.scaler.streamConfigurationMapMaximumResolution", android.hardware.camera2.params.StreamConfigurationMap.class); /** *

The mapping of image formats that are supported by this * camera device for input streams, to their corresponding output formats, when * {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Analogous to android.scaler.availableInputOutputFormatsMap for CaptureRequests where * {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#SENSOR_PIXEL_MODE * @hide */ public static final Key SCALER_AVAILABLE_INPUT_OUTPUT_FORMATS_MAP_MAXIMUM_RESOLUTION = new Key("android.scaler.availableInputOutputFormatsMapMaximumResolution", android.hardware.camera2.params.ReprocessFormatsMap.class); /** *

An array of mandatory stream combinations which are applicable when * {@link android.hardware.camera2.CaptureRequest } has {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} set * to {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }. * This is an app-readable conversion of the maximum resolution mandatory stream combination * tables.

*

The array of * {@link android.hardware.camera2.params.MandatoryStreamCombination combinations} is * generated according to the documented * guideline * for each device which has the * {@link android.hardware.camera2.CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR } * capability. * Clients can use the array as a quick reference to find an appropriate camera stream * combination. * The mandatory stream combination array will be {@code null} in case the device is not an * {@link android.hardware.camera2.CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR } * device.

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#SENSOR_PIXEL_MODE */ @PublicKey @NonNull @SyntheticKey public static final Key SCALER_MANDATORY_MAXIMUM_RESOLUTION_STREAM_COMBINATIONS = new Key("android.scaler.mandatoryMaximumResolutionStreamCombinations", android.hardware.camera2.params.MandatoryStreamCombination[].class); /** *

An array of mandatory stream combinations which are applicable when device support the * 10-bit output capability * {@link android.hardware.camera2.CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT } * This is an app-readable conversion of the 10 bit output mandatory stream combination * tables.

*

The array of * {@link android.hardware.camera2.params.MandatoryStreamCombination combinations} is * generated according to the documented * guideline * for each device which has the * {@link android.hardware.camera2.CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT } * capability. * Clients can use the array as a quick reference to find an appropriate camera stream * combination. * The mandatory stream combination array will be {@code null} in case the device is not an * {@link android.hardware.camera2.CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT } * device.

*

Optional - The value for this key may be {@code null} on some devices.

*/ @PublicKey @NonNull @SyntheticKey public static final Key SCALER_MANDATORY_TEN_BIT_OUTPUT_STREAM_COMBINATIONS = new Key("android.scaler.mandatoryTenBitOutputStreamCombinations", android.hardware.camera2.params.MandatoryStreamCombination[].class); /** *

An array of mandatory stream combinations which are applicable when device lists * {@code PREVIEW_STABILIZATION} in {@link CameraCharacteristics#CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES android.control.availableVideoStabilizationModes}. * This is an app-readable conversion of the preview stabilization mandatory stream * combination * tables.

*

The array of * {@link android.hardware.camera2.params.MandatoryStreamCombination combinations} is * generated according to the documented * guideline * for each device which supports {@code PREVIEW_STABILIZATION} * Clients can use the array as a quick reference to find an appropriate camera stream * combination. * The mandatory stream combination array will be {@code null} in case the device does not * list {@code PREVIEW_STABILIZATION} in {@link CameraCharacteristics#CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES android.control.availableVideoStabilizationModes}.

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CameraCharacteristics#CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES */ @PublicKey @NonNull @SyntheticKey public static final Key SCALER_MANDATORY_PREVIEW_STABILIZATION_OUTPUT_STREAM_COMBINATIONS = new Key("android.scaler.mandatoryPreviewStabilizationOutputStreamCombinations", android.hardware.camera2.params.MandatoryStreamCombination[].class); /** *

Whether the camera device supports multi-resolution input or output streams

*

A logical multi-camera or an ultra high resolution camera may support multi-resolution * input or output streams. With multi-resolution output streams, the camera device is able * to output different resolution images depending on the current active physical camera or * pixel mode. With multi-resolution input streams, the camera device can reprocess images * of different resolutions from different physical cameras or sensor pixel modes.

*

When set to TRUE:

*
    *
  • For a logical multi-camera, the camera framework derives * {@link CameraCharacteristics#SCALER_MULTI_RESOLUTION_STREAM_CONFIGURATION_MAP android.scaler.multiResolutionStreamConfigurationMap} by combining the * android.scaler.physicalCameraMultiResolutionStreamConfigurations from its physical * cameras.
  • *
  • For an ultra-high resolution sensor camera, the camera framework directly copies * the value of android.scaler.physicalCameraMultiResolutionStreamConfigurations to * {@link CameraCharacteristics#SCALER_MULTI_RESOLUTION_STREAM_CONFIGURATION_MAP android.scaler.multiResolutionStreamConfigurationMap}.
  • *
*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CameraCharacteristics#SCALER_MULTI_RESOLUTION_STREAM_CONFIGURATION_MAP * @hide */ public static final Key SCALER_MULTI_RESOLUTION_STREAM_SUPPORTED = new Key("android.scaler.multiResolutionStreamSupported", boolean.class); /** *

The stream use cases supported by this camera device.

*

The stream use case indicates the purpose of a particular camera stream from * the end-user perspective. Some examples of camera use cases are: preview stream for * live viewfinder shown to the user, still capture for generating high quality photo * capture, video record for encoding the camera output for the purpose of future playback, * and video call for live realtime video conferencing.

*

With this flag, the camera device can optimize the image processing pipeline * parameters, such as tuning, sensor mode, and ISP settings, independent of * the properties of the immediate camera output surface. For example, if the output * surface is a SurfaceTexture, the stream use case flag can be used to indicate whether * the camera frames eventually go to display, video encoder, * still image capture, or all of them combined.

*

The application sets the use case of a camera stream by calling * {@link android.hardware.camera2.params.OutputConfiguration#setStreamUseCase }.

*

A camera device with * {@link android.hardware.camera2.CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES_STREAM_USE_CASE } * capability must support the following stream use cases:

*
    *
  • DEFAULT
  • *
  • PREVIEW
  • *
  • STILL_CAPTURE
  • *
  • VIDEO_RECORD
  • *
  • PREVIEW_VIDEO_STILL
  • *
  • VIDEO_CALL
  • *
*

The guaranteed stream combinations related to stream use case for a camera device with * {@link android.hardware.camera2.CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES_STREAM_USE_CASE } * capability is documented in the camera device * guideline. * The application is strongly recommended to use one of the guaranteed stream combinations. * If the application creates a session with a stream combination not in the guaranteed * list, or with mixed DEFAULT and non-DEFAULT use cases within the same session, * the camera device may ignore some stream use cases due to hardware constraints * and implementation details.

*

For stream combinations not covered by the stream use case mandatory lists, such as * reprocessable session, constrained high speed session, or RAW stream combinations, the * application should leave stream use cases within the session as DEFAULT.

*

Possible values:

*
    *
  • {@link #SCALER_AVAILABLE_STREAM_USE_CASES_DEFAULT DEFAULT}
  • *
  • {@link #SCALER_AVAILABLE_STREAM_USE_CASES_PREVIEW PREVIEW}
  • *
  • {@link #SCALER_AVAILABLE_STREAM_USE_CASES_STILL_CAPTURE STILL_CAPTURE}
  • *
  • {@link #SCALER_AVAILABLE_STREAM_USE_CASES_VIDEO_RECORD VIDEO_RECORD}
  • *
  • {@link #SCALER_AVAILABLE_STREAM_USE_CASES_PREVIEW_VIDEO_STILL PREVIEW_VIDEO_STILL}
  • *
  • {@link #SCALER_AVAILABLE_STREAM_USE_CASES_VIDEO_CALL VIDEO_CALL}
  • *
  • {@link #SCALER_AVAILABLE_STREAM_USE_CASES_CROPPED_RAW CROPPED_RAW}
  • *
* *

Optional - The value for this key may be {@code null} on some devices.

* @see #SCALER_AVAILABLE_STREAM_USE_CASES_DEFAULT * @see #SCALER_AVAILABLE_STREAM_USE_CASES_PREVIEW * @see #SCALER_AVAILABLE_STREAM_USE_CASES_STILL_CAPTURE * @see #SCALER_AVAILABLE_STREAM_USE_CASES_VIDEO_RECORD * @see #SCALER_AVAILABLE_STREAM_USE_CASES_PREVIEW_VIDEO_STILL * @see #SCALER_AVAILABLE_STREAM_USE_CASES_VIDEO_CALL * @see #SCALER_AVAILABLE_STREAM_USE_CASES_CROPPED_RAW */ @PublicKey @NonNull public static final Key SCALER_AVAILABLE_STREAM_USE_CASES = new Key("android.scaler.availableStreamUseCases", long[].class); /** *

An array of mandatory stream combinations with stream use cases. * This is an app-readable conversion of the mandatory stream combination * tables * with each stream's use case being set.

*

The array of * {@link android.hardware.camera2.params.MandatoryStreamCombination combinations} is * generated according to the documented * guildeline * for a camera device with * {@link android.hardware.camera2.CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES_STREAM_USE_CASE } * capability. * The mandatory stream combination array will be {@code null} in case the device doesn't * have {@link android.hardware.camera2.CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES_STREAM_USE_CASE } * capability.

*

Optional - The value for this key may be {@code null} on some devices.

*/ @PublicKey @NonNull @SyntheticKey public static final Key SCALER_MANDATORY_USE_CASE_STREAM_COMBINATIONS = new Key("android.scaler.mandatoryUseCaseStreamCombinations", android.hardware.camera2.params.MandatoryStreamCombination[].class); /** *

The area of the image sensor which corresponds to active pixels after any geometric * distortion correction has been applied.

*

This is the rectangle representing the size of the active region of the sensor (i.e. * the region that actually receives light from the scene) after any geometric correction * has been applied, and should be treated as the maximum size in pixels of any of the * image output formats aside from the raw formats.

*

This rectangle is defined relative to the full pixel array; (0,0) is the top-left of * the full pixel array, and the size of the full pixel array is given by * {@link CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE android.sensor.info.pixelArraySize}.

*

The coordinate system for most other keys that list pixel coordinates, including * {@link CaptureRequest#SCALER_CROP_REGION android.scaler.cropRegion}, is defined relative to the active array rectangle given in * this field, with (0, 0) being the top-left of this rectangle.

*

The active array may be smaller than the full pixel array, since the full array may * include black calibration pixels or other inactive regions.

*

For devices that do not support {@link CaptureRequest#DISTORTION_CORRECTION_MODE android.distortionCorrection.mode} control, the active * array must be the same as {@link CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE android.sensor.info.preCorrectionActiveArraySize}.

*

For devices that support {@link CaptureRequest#DISTORTION_CORRECTION_MODE android.distortionCorrection.mode} control, the active array must * be enclosed by {@link CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE android.sensor.info.preCorrectionActiveArraySize}. The difference between * pre-correction active array and active array accounts for scaling or cropping caused * by lens geometric distortion correction.

*

In general, application should always refer to active array size for controls like * metering regions or crop region. Two exceptions are when the application is dealing with * RAW image buffers (RAW_SENSOR, RAW10, RAW12 etc), or when application explicitly set * {@link CaptureRequest#DISTORTION_CORRECTION_MODE android.distortionCorrection.mode} to OFF. In these cases, application should refer * to {@link CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE android.sensor.info.preCorrectionActiveArraySize}.

*

Units: Pixel coordinates on the image sensor

*

This key is available on all devices.

* * @see CaptureRequest#DISTORTION_CORRECTION_MODE * @see CaptureRequest#SCALER_CROP_REGION * @see CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE * @see CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE */ @PublicKey @NonNull public static final Key SENSOR_INFO_ACTIVE_ARRAY_SIZE = new Key("android.sensor.info.activeArraySize", android.graphics.Rect.class); /** *

Range of sensitivities for {@link CaptureRequest#SENSOR_SENSITIVITY android.sensor.sensitivity} supported by this * camera device.

*

The values are the standard ISO sensitivity values, * as defined in ISO 12232:2006.

*

Range of valid values:
* Min <= 100, Max >= 800

*

Optional - The value for this key may be {@code null} on some devices.

*

Full capability - * Present on all camera devices that report being {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL HARDWARE_LEVEL_FULL} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CaptureRequest#SENSOR_SENSITIVITY */ @PublicKey @NonNull public static final Key> SENSOR_INFO_SENSITIVITY_RANGE = new Key>("android.sensor.info.sensitivityRange", new TypeReference>() {{ }}); /** *

The arrangement of color filters on sensor; * represents the colors in the top-left 2x2 section of * the sensor, in reading order, for a Bayer camera, or the * light spectrum it captures for MONOCHROME camera.

*

Possible values:

*
    *
  • {@link #SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGGB RGGB}
  • *
  • {@link #SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_GRBG GRBG}
  • *
  • {@link #SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_GBRG GBRG}
  • *
  • {@link #SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_BGGR BGGR}
  • *
  • {@link #SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGB RGB}
  • *
  • {@link #SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_MONO MONO}
  • *
  • {@link #SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_NIR NIR}
  • *
* *

Optional - The value for this key may be {@code null} on some devices.

*

Full capability - * Present on all camera devices that report being {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL HARDWARE_LEVEL_FULL} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see #SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGGB * @see #SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_GRBG * @see #SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_GBRG * @see #SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_BGGR * @see #SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGB * @see #SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_MONO * @see #SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_NIR */ @PublicKey @NonNull public static final Key SENSOR_INFO_COLOR_FILTER_ARRANGEMENT = new Key("android.sensor.info.colorFilterArrangement", int.class); /** *

The range of image exposure times for {@link CaptureRequest#SENSOR_EXPOSURE_TIME android.sensor.exposureTime} supported * by this camera device.

*

Units: Nanoseconds

*

Range of valid values:
* The minimum exposure time will be less than 100 us. For FULL * capability devices ({@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} == FULL), * the maximum exposure time will be greater than 100ms.

*

Optional - The value for this key may be {@code null} on some devices.

*

Full capability - * Present on all camera devices that report being {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL HARDWARE_LEVEL_FULL} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CaptureRequest#SENSOR_EXPOSURE_TIME */ @PublicKey @NonNull public static final Key> SENSOR_INFO_EXPOSURE_TIME_RANGE = new Key>("android.sensor.info.exposureTimeRange", new TypeReference>() {{ }}); /** *

The maximum possible frame duration (minimum frame rate) for * {@link CaptureRequest#SENSOR_FRAME_DURATION android.sensor.frameDuration} that is supported this camera device.

*

Attempting to use frame durations beyond the maximum will result in the frame * duration being clipped to the maximum. See that control for a full definition of frame * durations.

*

Refer to {@link android.hardware.camera2.params.StreamConfigurationMap#getOutputMinFrameDuration } * for the minimum frame duration values.

*

Units: Nanoseconds

*

Range of valid values:
* For FULL capability devices * ({@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} == FULL), at least 100ms.

*

Optional - The value for this key may be {@code null} on some devices.

*

Full capability - * Present on all camera devices that report being {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL HARDWARE_LEVEL_FULL} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CaptureRequest#SENSOR_FRAME_DURATION */ @PublicKey @NonNull public static final Key SENSOR_INFO_MAX_FRAME_DURATION = new Key("android.sensor.info.maxFrameDuration", long.class); /** *

The physical dimensions of the full pixel * array.

*

This is the physical size of the sensor pixel * array defined by {@link CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE android.sensor.info.pixelArraySize}.

*

Units: Millimeters

*

This key is available on all devices.

* * @see CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE */ @PublicKey @NonNull public static final Key SENSOR_INFO_PHYSICAL_SIZE = new Key("android.sensor.info.physicalSize", android.util.SizeF.class); /** *

Dimensions of the full pixel array, possibly * including black calibration pixels.

*

The pixel count of the full pixel array of the image sensor, which covers * {@link CameraCharacteristics#SENSOR_INFO_PHYSICAL_SIZE android.sensor.info.physicalSize} area. This represents the full pixel dimensions of * the raw buffers produced by this sensor.

*

If a camera device supports raw sensor formats, either this or * {@link CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE android.sensor.info.preCorrectionActiveArraySize} is the maximum dimensions for the raw * output formats listed in {@link android.hardware.camera2.params.StreamConfigurationMap } * (this depends on whether or not the image sensor returns buffers containing pixels that * are not part of the active array region for blacklevel calibration or other purposes).

*

Some parts of the full pixel array may not receive light from the scene, * or be otherwise inactive. The {@link CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE android.sensor.info.preCorrectionActiveArraySize} key * defines the rectangle of active pixels that will be included in processed image * formats.

*

Units: Pixels

*

This key is available on all devices.

* * @see CameraCharacteristics#SENSOR_INFO_PHYSICAL_SIZE * @see CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE */ @PublicKey @NonNull public static final Key SENSOR_INFO_PIXEL_ARRAY_SIZE = new Key("android.sensor.info.pixelArraySize", android.util.Size.class); /** *

Maximum raw value output by sensor.

*

This specifies the fully-saturated encoding level for the raw * sample values from the sensor. This is typically caused by the * sensor becoming highly non-linear or clipping. The minimum for * each channel is specified by the offset in the * {@link CameraCharacteristics#SENSOR_BLACK_LEVEL_PATTERN android.sensor.blackLevelPattern} key.

*

The white level is typically determined either by sensor bit depth * (8-14 bits is expected), or by the point where the sensor response * becomes too non-linear to be useful. The default value for this is * maximum representable value for a 16-bit raw sample (2^16 - 1).

*

The white level values of captured images may vary for different * capture settings (e.g., {@link CaptureRequest#SENSOR_SENSITIVITY android.sensor.sensitivity}). This key * represents a coarse approximation for such case. It is recommended * to use {@link CaptureResult#SENSOR_DYNAMIC_WHITE_LEVEL android.sensor.dynamicWhiteLevel} for captures when supported * by the camera device, which provides more accurate white level values.

*

Range of valid values:
* > 255 (8-bit output)

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CameraCharacteristics#SENSOR_BLACK_LEVEL_PATTERN * @see CaptureResult#SENSOR_DYNAMIC_WHITE_LEVEL * @see CaptureRequest#SENSOR_SENSITIVITY */ @PublicKey @NonNull public static final Key SENSOR_INFO_WHITE_LEVEL = new Key("android.sensor.info.whiteLevel", int.class); /** *

The time base source for sensor capture start timestamps.

*

The timestamps provided for captures are always in nanoseconds and monotonic, but * may not based on a time source that can be compared to other system time sources.

*

This characteristic defines the source for the timestamps, and therefore whether they * can be compared against other system time sources/timestamps.

*

Possible values:

*
    *
  • {@link #SENSOR_INFO_TIMESTAMP_SOURCE_UNKNOWN UNKNOWN}
  • *
  • {@link #SENSOR_INFO_TIMESTAMP_SOURCE_REALTIME REALTIME}
  • *
* *

This key is available on all devices.

* @see #SENSOR_INFO_TIMESTAMP_SOURCE_UNKNOWN * @see #SENSOR_INFO_TIMESTAMP_SOURCE_REALTIME */ @PublicKey @NonNull public static final Key SENSOR_INFO_TIMESTAMP_SOURCE = new Key("android.sensor.info.timestampSource", int.class); /** *

Whether the RAW images output from this camera device are subject to * lens shading correction.

*

If TRUE, all images produced by the camera device in the RAW image formats will * have lens shading correction already applied to it. If FALSE, the images will * not be adjusted for lens shading correction. * See {@link CameraCharacteristics#REQUEST_MAX_NUM_OUTPUT_RAW android.request.maxNumOutputRaw} for a list of RAW image formats.

*

This key will be null for all devices do not report this information. * Devices with RAW capability will always report this information in this key.

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CameraCharacteristics#REQUEST_MAX_NUM_OUTPUT_RAW */ @PublicKey @NonNull public static final Key SENSOR_INFO_LENS_SHADING_APPLIED = new Key("android.sensor.info.lensShadingApplied", boolean.class); /** *

The area of the image sensor which corresponds to active pixels prior to the * application of any geometric distortion correction.

*

This is the rectangle representing the size of the active region of the sensor (i.e. * the region that actually receives light from the scene) before any geometric correction * has been applied, and should be treated as the active region rectangle for any of the * raw formats. All metadata associated with raw processing (e.g. the lens shading * correction map, and radial distortion fields) treats the top, left of this rectangle as * the origin, (0,0).

*

The size of this region determines the maximum field of view and the maximum number of * pixels that an image from this sensor can contain, prior to the application of * geometric distortion correction. The effective maximum pixel dimensions of a * post-distortion-corrected image is given by the {@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize} * field, and the effective maximum field of view for a post-distortion-corrected image * can be calculated by applying the geometric distortion correction fields to this * rectangle, and cropping to the rectangle given in {@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize}.

*

E.g. to calculate position of a pixel, (x,y), in a processed YUV output image with the * dimensions in {@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize} given the position of a pixel, * (x', y'), in the raw pixel array with dimensions given in * {@link CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE android.sensor.info.pixelArraySize}:

*
    *
  1. Choose a pixel (x', y') within the active array region of the raw buffer given in * {@link CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE android.sensor.info.preCorrectionActiveArraySize}, otherwise this pixel is considered * to be outside of the FOV, and will not be shown in the processed output image.
  2. *
  3. Apply geometric distortion correction to get the post-distortion pixel coordinate, * (x_i, y_i). When applying geometric correction metadata, note that metadata for raw * buffers is defined relative to the top, left of the * {@link CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE android.sensor.info.preCorrectionActiveArraySize} rectangle.
  4. *
  5. If the resulting corrected pixel coordinate is within the region given in * {@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize}, then the position of this pixel in the * processed output image buffer is (x_i - activeArray.left, y_i - activeArray.top), * when the top, left coordinate of that buffer is treated as (0, 0).
  6. *
*

Thus, for pixel x',y' = (25, 25) on a sensor where {@link CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE android.sensor.info.pixelArraySize} * is (100,100), {@link CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE android.sensor.info.preCorrectionActiveArraySize} is (10, 10, 100, 100), * {@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize} is (20, 20, 80, 80), and the geometric distortion * correction doesn't change the pixel coordinate, the resulting pixel selected in * pixel coordinates would be x,y = (25, 25) relative to the top,left of the raw buffer * with dimensions given in {@link CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE android.sensor.info.pixelArraySize}, and would be (5, 5) * relative to the top,left of post-processed YUV output buffer with dimensions given in * {@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize}.

*

The currently supported fields that correct for geometric distortion are:

*
    *
  1. {@link CameraCharacteristics#LENS_DISTORTION android.lens.distortion}.
  2. *
*

If the camera device doesn't support geometric distortion correction, or all of the * geometric distortion fields are no-ops, this rectangle will be the same as the * post-distortion-corrected rectangle given in {@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize}.

*

This rectangle is defined relative to the full pixel array; (0,0) is the top-left of * the full pixel array, and the size of the full pixel array is given by * {@link CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE android.sensor.info.pixelArraySize}.

*

The pre-correction active array may be smaller than the full pixel array, since the * full array may include black calibration pixels or other inactive regions.

*

Units: Pixel coordinates on the image sensor

*

This key is available on all devices.

* * @see CameraCharacteristics#LENS_DISTORTION * @see CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE * @see CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE * @see CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE */ @PublicKey @NonNull public static final Key SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE = new Key("android.sensor.info.preCorrectionActiveArraySize", android.graphics.Rect.class); /** *

The area of the image sensor which corresponds to active pixels after any geometric * distortion correction has been applied, when the sensor runs in maximum resolution mode.

*

Analogous to {@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize}, when {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} * is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }. * Refer to {@link CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE android.sensor.info.activeArraySize} for details, with sensor array related keys * replaced with their * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION } * counterparts. * This key will only be present for devices which advertise the * {@link android.hardware.camera2.CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR } * capability or devices where {@link CameraCharacteristics#getAvailableCaptureRequestKeys } * lists {@link CaptureRequest#SENSOR_PIXEL_MODE {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode}}

*

Units: Pixel coordinates on the image sensor

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE * @see CaptureRequest#SENSOR_PIXEL_MODE */ @PublicKey @NonNull public static final Key SENSOR_INFO_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION = new Key("android.sensor.info.activeArraySizeMaximumResolution", android.graphics.Rect.class); /** *

Dimensions of the full pixel array, possibly * including black calibration pixels, when the sensor runs in maximum resolution mode. * Analogous to {@link CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE android.sensor.info.pixelArraySize}, when {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is * set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

The pixel count of the full pixel array of the image sensor, which covers * {@link CameraCharacteristics#SENSOR_INFO_PHYSICAL_SIZE android.sensor.info.physicalSize} area. This represents the full pixel dimensions of * the raw buffers produced by this sensor, when it runs in maximum resolution mode. That * is, when {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }. * This key will only be present for devices which advertise the * {@link android.hardware.camera2.CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR } * capability or devices where {@link CameraCharacteristics#getAvailableCaptureRequestKeys } * lists {@link CaptureRequest#SENSOR_PIXEL_MODE {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode}}

*

Units: Pixels

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CameraCharacteristics#SENSOR_INFO_PHYSICAL_SIZE * @see CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE * @see CaptureRequest#SENSOR_PIXEL_MODE */ @PublicKey @NonNull public static final Key SENSOR_INFO_PIXEL_ARRAY_SIZE_MAXIMUM_RESOLUTION = new Key("android.sensor.info.pixelArraySizeMaximumResolution", android.util.Size.class); /** *

The area of the image sensor which corresponds to active pixels prior to the * application of any geometric distortion correction, when the sensor runs in maximum * resolution mode. This key must be used for crop / metering regions, only when * {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Analogous to {@link CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE android.sensor.info.preCorrectionActiveArraySize}, * when {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }. * This key will only be present for devices which advertise the * {@link android.hardware.camera2.CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR } * capability or devices where {@link CameraCharacteristics#getAvailableCaptureRequestKeys } * lists {@link CaptureRequest#SENSOR_PIXEL_MODE {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode}}

*

Units: Pixel coordinates on the image sensor

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE * @see CaptureRequest#SENSOR_PIXEL_MODE */ @PublicKey @NonNull public static final Key SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE_MAXIMUM_RESOLUTION = new Key("android.sensor.info.preCorrectionActiveArraySizeMaximumResolution", android.graphics.Rect.class); /** *

Dimensions of the group of pixels which are under the same color filter. * This specifies the width and height (pair of integers) of the group of pixels which fall * under the same color filter for ULTRA_HIGH_RESOLUTION sensors.

*

Sensors can have pixels grouped together under the same color filter in order * to improve various aspects of imaging such as noise reduction, low light * performance etc. These groups can be of various sizes such as 2X2 (quad bayer), * 3X3 (nona-bayer). This key specifies the length and width of the pixels grouped under * the same color filter. * In case the device has the * {@link CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR } * capability :

*
    *
  • This key will not be present if REMOSAIC_REPROCESSING is not supported, since RAW * images will have a regular bayer pattern.
  • *
*

In case the device does not have the * {@link CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR } * capability :

*
    *
  • This key will be present if * {@link CameraCharacteristics#getAvailableCaptureRequestKeys } * lists {@link CaptureRequest#SENSOR_PIXEL_MODE {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode}}, since RAW * images may not necessarily have a regular bayer pattern when * {@link CaptureRequest#SENSOR_PIXEL_MODE {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode}} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.
  • *
*

Units: Pixels

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#SENSOR_PIXEL_MODE */ @PublicKey @NonNull public static final Key SENSOR_INFO_BINNING_FACTOR = new Key("android.sensor.info.binningFactor", android.util.Size.class); /** *

The standard reference illuminant used as the scene light source when * calculating the {@link CameraCharacteristics#SENSOR_COLOR_TRANSFORM1 android.sensor.colorTransform1}, * {@link CameraCharacteristics#SENSOR_CALIBRATION_TRANSFORM1 android.sensor.calibrationTransform1}, and * {@link CameraCharacteristics#SENSOR_FORWARD_MATRIX1 android.sensor.forwardMatrix1} matrices.

*

The values in this key correspond to the values defined for the * EXIF LightSource tag. These illuminants are standard light sources * that are often used calibrating camera devices.

*

If this key is present, then {@link CameraCharacteristics#SENSOR_COLOR_TRANSFORM1 android.sensor.colorTransform1}, * {@link CameraCharacteristics#SENSOR_CALIBRATION_TRANSFORM1 android.sensor.calibrationTransform1}, and * {@link CameraCharacteristics#SENSOR_FORWARD_MATRIX1 android.sensor.forwardMatrix1} will also be present.

*

Some devices may choose to provide a second set of calibration * information for improved quality, including * {@link CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT2 android.sensor.referenceIlluminant2} and its corresponding matrices.

*

Starting from Android Q, this key will not be present for a MONOCHROME camera, even if * the camera device has RAW capability.

*

Possible values:

*
    *
  • {@link #SENSOR_REFERENCE_ILLUMINANT1_DAYLIGHT DAYLIGHT}
  • *
  • {@link #SENSOR_REFERENCE_ILLUMINANT1_FLUORESCENT FLUORESCENT}
  • *
  • {@link #SENSOR_REFERENCE_ILLUMINANT1_TUNGSTEN TUNGSTEN}
  • *
  • {@link #SENSOR_REFERENCE_ILLUMINANT1_FLASH FLASH}
  • *
  • {@link #SENSOR_REFERENCE_ILLUMINANT1_FINE_WEATHER FINE_WEATHER}
  • *
  • {@link #SENSOR_REFERENCE_ILLUMINANT1_CLOUDY_WEATHER CLOUDY_WEATHER}
  • *
  • {@link #SENSOR_REFERENCE_ILLUMINANT1_SHADE SHADE}
  • *
  • {@link #SENSOR_REFERENCE_ILLUMINANT1_DAYLIGHT_FLUORESCENT DAYLIGHT_FLUORESCENT}
  • *
  • {@link #SENSOR_REFERENCE_ILLUMINANT1_DAY_WHITE_FLUORESCENT DAY_WHITE_FLUORESCENT}
  • *
  • {@link #SENSOR_REFERENCE_ILLUMINANT1_COOL_WHITE_FLUORESCENT COOL_WHITE_FLUORESCENT}
  • *
  • {@link #SENSOR_REFERENCE_ILLUMINANT1_WHITE_FLUORESCENT WHITE_FLUORESCENT}
  • *
  • {@link #SENSOR_REFERENCE_ILLUMINANT1_STANDARD_A STANDARD_A}
  • *
  • {@link #SENSOR_REFERENCE_ILLUMINANT1_STANDARD_B STANDARD_B}
  • *
  • {@link #SENSOR_REFERENCE_ILLUMINANT1_STANDARD_C STANDARD_C}
  • *
  • {@link #SENSOR_REFERENCE_ILLUMINANT1_D55 D55}
  • *
  • {@link #SENSOR_REFERENCE_ILLUMINANT1_D65 D65}
  • *
  • {@link #SENSOR_REFERENCE_ILLUMINANT1_D75 D75}
  • *
  • {@link #SENSOR_REFERENCE_ILLUMINANT1_D50 D50}
  • *
  • {@link #SENSOR_REFERENCE_ILLUMINANT1_ISO_STUDIO_TUNGSTEN ISO_STUDIO_TUNGSTEN}
  • *
* *

Optional - The value for this key may be {@code null} on some devices.

*

Permission {@link android.Manifest.permission#CAMERA } is needed to access this property

* * @see CameraCharacteristics#SENSOR_CALIBRATION_TRANSFORM1 * @see CameraCharacteristics#SENSOR_COLOR_TRANSFORM1 * @see CameraCharacteristics#SENSOR_FORWARD_MATRIX1 * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT2 * @see #SENSOR_REFERENCE_ILLUMINANT1_DAYLIGHT * @see #SENSOR_REFERENCE_ILLUMINANT1_FLUORESCENT * @see #SENSOR_REFERENCE_ILLUMINANT1_TUNGSTEN * @see #SENSOR_REFERENCE_ILLUMINANT1_FLASH * @see #SENSOR_REFERENCE_ILLUMINANT1_FINE_WEATHER * @see #SENSOR_REFERENCE_ILLUMINANT1_CLOUDY_WEATHER * @see #SENSOR_REFERENCE_ILLUMINANT1_SHADE * @see #SENSOR_REFERENCE_ILLUMINANT1_DAYLIGHT_FLUORESCENT * @see #SENSOR_REFERENCE_ILLUMINANT1_DAY_WHITE_FLUORESCENT * @see #SENSOR_REFERENCE_ILLUMINANT1_COOL_WHITE_FLUORESCENT * @see #SENSOR_REFERENCE_ILLUMINANT1_WHITE_FLUORESCENT * @see #SENSOR_REFERENCE_ILLUMINANT1_STANDARD_A * @see #SENSOR_REFERENCE_ILLUMINANT1_STANDARD_B * @see #SENSOR_REFERENCE_ILLUMINANT1_STANDARD_C * @see #SENSOR_REFERENCE_ILLUMINANT1_D55 * @see #SENSOR_REFERENCE_ILLUMINANT1_D65 * @see #SENSOR_REFERENCE_ILLUMINANT1_D75 * @see #SENSOR_REFERENCE_ILLUMINANT1_D50 * @see #SENSOR_REFERENCE_ILLUMINANT1_ISO_STUDIO_TUNGSTEN */ @PublicKey @NonNull public static final Key SENSOR_REFERENCE_ILLUMINANT1 = new Key("android.sensor.referenceIlluminant1", int.class); /** *

The standard reference illuminant used as the scene light source when * calculating the {@link CameraCharacteristics#SENSOR_COLOR_TRANSFORM2 android.sensor.colorTransform2}, * {@link CameraCharacteristics#SENSOR_CALIBRATION_TRANSFORM2 android.sensor.calibrationTransform2}, and * {@link CameraCharacteristics#SENSOR_FORWARD_MATRIX2 android.sensor.forwardMatrix2} matrices.

*

See {@link CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1 android.sensor.referenceIlluminant1} for more details.

*

If this key is present, then {@link CameraCharacteristics#SENSOR_COLOR_TRANSFORM2 android.sensor.colorTransform2}, * {@link CameraCharacteristics#SENSOR_CALIBRATION_TRANSFORM2 android.sensor.calibrationTransform2}, and * {@link CameraCharacteristics#SENSOR_FORWARD_MATRIX2 android.sensor.forwardMatrix2} will also be present.

*

Starting from Android Q, this key will not be present for a MONOCHROME camera, even if * the camera device has RAW capability.

*

Range of valid values:
* Any value listed in {@link CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1 android.sensor.referenceIlluminant1}

*

Optional - The value for this key may be {@code null} on some devices.

*

Permission {@link android.Manifest.permission#CAMERA } is needed to access this property

* * @see CameraCharacteristics#SENSOR_CALIBRATION_TRANSFORM2 * @see CameraCharacteristics#SENSOR_COLOR_TRANSFORM2 * @see CameraCharacteristics#SENSOR_FORWARD_MATRIX2 * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1 */ @PublicKey @NonNull public static final Key SENSOR_REFERENCE_ILLUMINANT2 = new Key("android.sensor.referenceIlluminant2", byte.class); /** *

A per-device calibration transform matrix that maps from the * reference sensor colorspace to the actual device sensor colorspace.

*

This matrix is used to correct for per-device variations in the * sensor colorspace, and is used for processing raw buffer data.

*

The matrix is expressed as a 3x3 matrix in row-major-order, and * contains a per-device calibration transform that maps colors * from reference sensor color space (i.e. the "golden module" * colorspace) into this camera device's native sensor color * space under the first reference illuminant * ({@link CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1 android.sensor.referenceIlluminant1}).

*

Starting from Android Q, this key will not be present for a MONOCHROME camera, even if * the camera device has RAW capability.

*

Optional - The value for this key may be {@code null} on some devices.

*

Permission {@link android.Manifest.permission#CAMERA } is needed to access this property

* * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1 */ @PublicKey @NonNull public static final Key SENSOR_CALIBRATION_TRANSFORM1 = new Key("android.sensor.calibrationTransform1", android.hardware.camera2.params.ColorSpaceTransform.class); /** *

A per-device calibration transform matrix that maps from the * reference sensor colorspace to the actual device sensor colorspace * (this is the colorspace of the raw buffer data).

*

This matrix is used to correct for per-device variations in the * sensor colorspace, and is used for processing raw buffer data.

*

The matrix is expressed as a 3x3 matrix in row-major-order, and * contains a per-device calibration transform that maps colors * from reference sensor color space (i.e. the "golden module" * colorspace) into this camera device's native sensor color * space under the second reference illuminant * ({@link CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT2 android.sensor.referenceIlluminant2}).

*

This matrix will only be present if the second reference * illuminant is present.

*

Starting from Android Q, this key will not be present for a MONOCHROME camera, even if * the camera device has RAW capability.

*

Optional - The value for this key may be {@code null} on some devices.

*

Permission {@link android.Manifest.permission#CAMERA } is needed to access this property

* * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT2 */ @PublicKey @NonNull public static final Key SENSOR_CALIBRATION_TRANSFORM2 = new Key("android.sensor.calibrationTransform2", android.hardware.camera2.params.ColorSpaceTransform.class); /** *

A matrix that transforms color values from CIE XYZ color space to * reference sensor color space.

*

This matrix is used to convert from the standard CIE XYZ color * space to the reference sensor colorspace, and is used when processing * raw buffer data.

*

The matrix is expressed as a 3x3 matrix in row-major-order, and * contains a color transform matrix that maps colors from the CIE * XYZ color space to the reference sensor color space (i.e. the * "golden module" colorspace) under the first reference illuminant * ({@link CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1 android.sensor.referenceIlluminant1}).

*

The white points chosen in both the reference sensor color space * and the CIE XYZ colorspace when calculating this transform will * match the standard white point for the first reference illuminant * (i.e. no chromatic adaptation will be applied by this transform).

*

Starting from Android Q, this key will not be present for a MONOCHROME camera, even if * the camera device has RAW capability.

*

Optional - The value for this key may be {@code null} on some devices.

*

Permission {@link android.Manifest.permission#CAMERA } is needed to access this property

* * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1 */ @PublicKey @NonNull public static final Key SENSOR_COLOR_TRANSFORM1 = new Key("android.sensor.colorTransform1", android.hardware.camera2.params.ColorSpaceTransform.class); /** *

A matrix that transforms color values from CIE XYZ color space to * reference sensor color space.

*

This matrix is used to convert from the standard CIE XYZ color * space to the reference sensor colorspace, and is used when processing * raw buffer data.

*

The matrix is expressed as a 3x3 matrix in row-major-order, and * contains a color transform matrix that maps colors from the CIE * XYZ color space to the reference sensor color space (i.e. the * "golden module" colorspace) under the second reference illuminant * ({@link CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT2 android.sensor.referenceIlluminant2}).

*

The white points chosen in both the reference sensor color space * and the CIE XYZ colorspace when calculating this transform will * match the standard white point for the second reference illuminant * (i.e. no chromatic adaptation will be applied by this transform).

*

This matrix will only be present if the second reference * illuminant is present.

*

Starting from Android Q, this key will not be present for a MONOCHROME camera, even if * the camera device has RAW capability.

*

Optional - The value for this key may be {@code null} on some devices.

*

Permission {@link android.Manifest.permission#CAMERA } is needed to access this property

* * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT2 */ @PublicKey @NonNull public static final Key SENSOR_COLOR_TRANSFORM2 = new Key("android.sensor.colorTransform2", android.hardware.camera2.params.ColorSpaceTransform.class); /** *

A matrix that transforms white balanced camera colors from the reference * sensor colorspace to the CIE XYZ colorspace with a D50 whitepoint.

*

This matrix is used to convert to the standard CIE XYZ colorspace, and * is used when processing raw buffer data.

*

This matrix is expressed as a 3x3 matrix in row-major-order, and contains * a color transform matrix that maps white balanced colors from the * reference sensor color space to the CIE XYZ color space with a D50 white * point.

*

Under the first reference illuminant ({@link CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1 android.sensor.referenceIlluminant1}) * this matrix is chosen so that the standard white point for this reference * illuminant in the reference sensor colorspace is mapped to D50 in the * CIE XYZ colorspace.

*

Starting from Android Q, this key will not be present for a MONOCHROME camera, even if * the camera device has RAW capability.

*

Optional - The value for this key may be {@code null} on some devices.

*

Permission {@link android.Manifest.permission#CAMERA } is needed to access this property

* * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1 */ @PublicKey @NonNull public static final Key SENSOR_FORWARD_MATRIX1 = new Key("android.sensor.forwardMatrix1", android.hardware.camera2.params.ColorSpaceTransform.class); /** *

A matrix that transforms white balanced camera colors from the reference * sensor colorspace to the CIE XYZ colorspace with a D50 whitepoint.

*

This matrix is used to convert to the standard CIE XYZ colorspace, and * is used when processing raw buffer data.

*

This matrix is expressed as a 3x3 matrix in row-major-order, and contains * a color transform matrix that maps white balanced colors from the * reference sensor color space to the CIE XYZ color space with a D50 white * point.

*

Under the second reference illuminant ({@link CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT2 android.sensor.referenceIlluminant2}) * this matrix is chosen so that the standard white point for this reference * illuminant in the reference sensor colorspace is mapped to D50 in the * CIE XYZ colorspace.

*

This matrix will only be present if the second reference * illuminant is present.

*

Starting from Android Q, this key will not be present for a MONOCHROME camera, even if * the camera device has RAW capability.

*

Optional - The value for this key may be {@code null} on some devices.

*

Permission {@link android.Manifest.permission#CAMERA } is needed to access this property

* * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT2 */ @PublicKey @NonNull public static final Key SENSOR_FORWARD_MATRIX2 = new Key("android.sensor.forwardMatrix2", android.hardware.camera2.params.ColorSpaceTransform.class); /** *

A fixed black level offset for each of the color filter arrangement * (CFA) mosaic channels.

*

This key specifies the zero light value for each of the CFA mosaic * channels in the camera sensor. The maximal value output by the * sensor is represented by the value in {@link CameraCharacteristics#SENSOR_INFO_WHITE_LEVEL android.sensor.info.whiteLevel}.

*

The values are given in the same order as channels listed for the CFA * layout key (see {@link CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT android.sensor.info.colorFilterArrangement}), i.e. the * nth value given corresponds to the black level offset for the nth * color channel listed in the CFA.

*

The black level values of captured images may vary for different * capture settings (e.g., {@link CaptureRequest#SENSOR_SENSITIVITY android.sensor.sensitivity}). This key * represents a coarse approximation for such case. It is recommended to * use {@link CaptureResult#SENSOR_DYNAMIC_BLACK_LEVEL android.sensor.dynamicBlackLevel} or use pixels from * {@link CameraCharacteristics#SENSOR_OPTICAL_BLACK_REGIONS android.sensor.opticalBlackRegions} directly for captures when * supported by the camera device, which provides more accurate black * level values. For raw capture in particular, it is recommended to use * pixels from {@link CameraCharacteristics#SENSOR_OPTICAL_BLACK_REGIONS android.sensor.opticalBlackRegions} to calculate black * level values for each frame.

*

For a MONOCHROME camera device, all of the 2x2 channels must have the same values.

*

Range of valid values:
* >= 0 for each.

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureResult#SENSOR_DYNAMIC_BLACK_LEVEL * @see CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT * @see CameraCharacteristics#SENSOR_INFO_WHITE_LEVEL * @see CameraCharacteristics#SENSOR_OPTICAL_BLACK_REGIONS * @see CaptureRequest#SENSOR_SENSITIVITY */ @PublicKey @NonNull public static final Key SENSOR_BLACK_LEVEL_PATTERN = new Key("android.sensor.blackLevelPattern", android.hardware.camera2.params.BlackLevelPattern.class); /** *

Maximum sensitivity that is implemented * purely through analog gain.

*

For {@link CaptureRequest#SENSOR_SENSITIVITY android.sensor.sensitivity} values less than or * equal to this, all applied gain must be analog. For * values above this, the gain applied can be a mix of analog and * digital.

*

Optional - The value for this key may be {@code null} on some devices.

*

Full capability - * Present on all camera devices that report being {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL HARDWARE_LEVEL_FULL} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CaptureRequest#SENSOR_SENSITIVITY */ @PublicKey @NonNull public static final Key SENSOR_MAX_ANALOG_SENSITIVITY = new Key("android.sensor.maxAnalogSensitivity", int.class); /** *

Clockwise angle through which the output image needs to be rotated to be * upright on the device screen in its native orientation.

*

Also defines the direction of rolling shutter readout, which is from top to bottom in * the sensor's coordinate system.

*

Starting with Android API level 32, camera clients that query the orientation via * {@link android.hardware.camera2.CameraCharacteristics#get } on foldable devices which * include logical cameras can receive a value that can dynamically change depending on the * device/fold state. * Clients are advised to not cache or store the orientation value of such logical sensors. * In case repeated queries to CameraCharacteristics are not preferred, then clients can * also access the entire mapping from device state to sensor orientation in * {@link android.hardware.camera2.params.DeviceStateSensorOrientationMap }. * Do note that a dynamically changing sensor orientation value in camera characteristics * will not be the best way to establish the orientation per frame. Clients that want to * know the sensor orientation of a particular captured frame should query the * {@link CaptureResult#LOGICAL_MULTI_CAMERA_ACTIVE_PHYSICAL_ID android.logicalMultiCamera.activePhysicalId} from the corresponding capture result and * check the respective physical camera orientation.

*

Units: Degrees of clockwise rotation; always a multiple of * 90

*

Range of valid values:
* 0, 90, 180, 270

*

This key is available on all devices.

* * @see CaptureResult#LOGICAL_MULTI_CAMERA_ACTIVE_PHYSICAL_ID */ @PublicKey @NonNull public static final Key SENSOR_ORIENTATION = new Key("android.sensor.orientation", int.class); /** *

List of sensor test pattern modes for {@link CaptureRequest#SENSOR_TEST_PATTERN_MODE android.sensor.testPatternMode} * supported by this camera device.

*

Defaults to OFF, and always includes OFF if defined.

*

Range of valid values:
* Any value listed in {@link CaptureRequest#SENSOR_TEST_PATTERN_MODE android.sensor.testPatternMode}

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#SENSOR_TEST_PATTERN_MODE */ @PublicKey @NonNull public static final Key SENSOR_AVAILABLE_TEST_PATTERN_MODES = new Key("android.sensor.availableTestPatternModes", int[].class); /** *

List of disjoint rectangles indicating the sensor * optically shielded black pixel regions.

*

In most camera sensors, the active array is surrounded by some * optically shielded pixel areas. By blocking light, these pixels * provides a reliable black reference for black level compensation * in active array region.

*

This key provides a list of disjoint rectangles specifying the * regions of optically shielded (with metal shield) black pixel * regions if the camera device is capable of reading out these black * pixels in the output raw images. In comparison to the fixed black * level values reported by {@link CameraCharacteristics#SENSOR_BLACK_LEVEL_PATTERN android.sensor.blackLevelPattern}, this key * may provide a more accurate way for the application to calculate * black level of each captured raw images.

*

When this key is reported, the {@link CaptureResult#SENSOR_DYNAMIC_BLACK_LEVEL android.sensor.dynamicBlackLevel} and * {@link CaptureResult#SENSOR_DYNAMIC_WHITE_LEVEL android.sensor.dynamicWhiteLevel} will also be reported.

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CameraCharacteristics#SENSOR_BLACK_LEVEL_PATTERN * @see CaptureResult#SENSOR_DYNAMIC_BLACK_LEVEL * @see CaptureResult#SENSOR_DYNAMIC_WHITE_LEVEL */ @PublicKey @NonNull public static final Key SENSOR_OPTICAL_BLACK_REGIONS = new Key("android.sensor.opticalBlackRegions", android.graphics.Rect[].class); /** *

Whether or not the camera device supports readout timestamp and * {@code onReadoutStarted} callback.

*

If this tag is {@code HARDWARE}, the camera device calls * {@link CameraCaptureSession.CaptureCallback#onReadoutStarted } in addition to the * {@link CameraCaptureSession.CaptureCallback#onCaptureStarted } callback for each capture. * The timestamp passed into the callback is the start of camera image readout rather than * the start of the exposure. The timestamp source of * {@link CameraCaptureSession.CaptureCallback#onReadoutStarted } is the same as that of * {@link CameraCaptureSession.CaptureCallback#onCaptureStarted }.

*

In addition, the application can switch an output surface's timestamp from start of * exposure to start of readout by calling * {@link android.hardware.camera2.params.OutputConfiguration#setReadoutTimestampEnabled }.

*

The readout timestamp is beneficial for video recording, because the encoder favors * uniform timestamps, and the readout timestamps better reflect the cadence camera sensors * output data.

*

Note that the camera device produces the start-of-exposure and start-of-readout callbacks * together. As a result, the {@link CameraCaptureSession.CaptureCallback#onReadoutStarted } * is called right after {@link CameraCaptureSession.CaptureCallback#onCaptureStarted }. The * difference in start-of-readout and start-of-exposure is the sensor exposure time, plus * certain constant offset. The offset is usually due to camera sensor level crop, and it is * generally constant over time for the same set of output resolutions and capture settings.

*

Possible values:

*
    *
  • {@link #SENSOR_READOUT_TIMESTAMP_NOT_SUPPORTED NOT_SUPPORTED}
  • *
  • {@link #SENSOR_READOUT_TIMESTAMP_HARDWARE HARDWARE}
  • *
* *

This key is available on all devices.

* @see #SENSOR_READOUT_TIMESTAMP_NOT_SUPPORTED * @see #SENSOR_READOUT_TIMESTAMP_HARDWARE */ @PublicKey @NonNull public static final Key SENSOR_READOUT_TIMESTAMP = new Key("android.sensor.readoutTimestamp", int.class); /** *

List of lens shading modes for {@link CaptureRequest#SHADING_MODE android.shading.mode} that are supported by this camera device.

*

This list contains lens shading modes that can be set for the camera device. * Camera devices that support the MANUAL_POST_PROCESSING capability will always * list OFF and FAST mode. This includes all FULL level devices. * LEGACY devices will always only support FAST mode.

*

Range of valid values:
* Any value listed in {@link CaptureRequest#SHADING_MODE android.shading.mode}

*

This key is available on all devices.

* * @see CaptureRequest#SHADING_MODE */ @PublicKey @NonNull public static final Key SHADING_AVAILABLE_MODES = new Key("android.shading.availableModes", int[].class); /** *

List of face detection modes for {@link CaptureRequest#STATISTICS_FACE_DETECT_MODE android.statistics.faceDetectMode} that are * supported by this camera device.

*

OFF is always supported.

*

Range of valid values:
* Any value listed in {@link CaptureRequest#STATISTICS_FACE_DETECT_MODE android.statistics.faceDetectMode}

*

This key is available on all devices.

* * @see CaptureRequest#STATISTICS_FACE_DETECT_MODE */ @PublicKey @NonNull public static final Key STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES = new Key("android.statistics.info.availableFaceDetectModes", int[].class); /** *

The maximum number of simultaneously detectable * faces.

*

Range of valid values:
* 0 for cameras without available face detection; otherwise: * >=4 for LIMITED or FULL hwlevel devices or * >0 for LEGACY devices.

*

This key is available on all devices.

*/ @PublicKey @NonNull public static final Key STATISTICS_INFO_MAX_FACE_COUNT = new Key("android.statistics.info.maxFaceCount", int.class); /** *

List of hot pixel map output modes for {@link CaptureRequest#STATISTICS_HOT_PIXEL_MAP_MODE android.statistics.hotPixelMapMode} that are * supported by this camera device.

*

If no hotpixel map output is available for this camera device, this will contain only * false.

*

ON is always supported on devices with the RAW capability.

*

Range of valid values:
* Any value listed in {@link CaptureRequest#STATISTICS_HOT_PIXEL_MAP_MODE android.statistics.hotPixelMapMode}

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#STATISTICS_HOT_PIXEL_MAP_MODE */ @PublicKey @NonNull public static final Key STATISTICS_INFO_AVAILABLE_HOT_PIXEL_MAP_MODES = new Key("android.statistics.info.availableHotPixelMapModes", boolean[].class); /** *

List of lens shading map output modes for {@link CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE android.statistics.lensShadingMapMode} that * are supported by this camera device.

*

If no lens shading map output is available for this camera device, this key will * contain only OFF.

*

ON is always supported on devices with the RAW capability. * LEGACY mode devices will always only support OFF.

*

Range of valid values:
* Any value listed in {@link CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE android.statistics.lensShadingMapMode}

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE */ @PublicKey @NonNull public static final Key STATISTICS_INFO_AVAILABLE_LENS_SHADING_MAP_MODES = new Key("android.statistics.info.availableLensShadingMapModes", int[].class); /** *

List of OIS data output modes for {@link CaptureRequest#STATISTICS_OIS_DATA_MODE android.statistics.oisDataMode} that * are supported by this camera device.

*

If no OIS data output is available for this camera device, this key will * contain only OFF.

*

Range of valid values:
* Any value listed in {@link CaptureRequest#STATISTICS_OIS_DATA_MODE android.statistics.oisDataMode}

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#STATISTICS_OIS_DATA_MODE */ @PublicKey @NonNull public static final Key STATISTICS_INFO_AVAILABLE_OIS_DATA_MODES = new Key("android.statistics.info.availableOisDataModes", int[].class); /** *

Maximum number of supported points in the * tonemap curve that can be used for {@link CaptureRequest#TONEMAP_CURVE android.tonemap.curve}.

*

If the actual number of points provided by the application (in {@link CaptureRequest#TONEMAP_CURVE android.tonemap.curve}*) is * less than this maximum, the camera device will resample the curve to its internal * representation, using linear interpolation.

*

The output curves in the result metadata may have a different number * of points than the input curves, and will represent the actual * hardware curves used as closely as possible when linearly interpolated.

*

Optional - The value for this key may be {@code null} on some devices.

*

Full capability - * Present on all camera devices that report being {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL HARDWARE_LEVEL_FULL} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CaptureRequest#TONEMAP_CURVE */ @PublicKey @NonNull public static final Key TONEMAP_MAX_CURVE_POINTS = new Key("android.tonemap.maxCurvePoints", int.class); /** *

List of tonemapping modes for {@link CaptureRequest#TONEMAP_MODE android.tonemap.mode} that are supported by this camera * device.

*

Camera devices that support the MANUAL_POST_PROCESSING capability will always contain * at least one of below mode combinations:

*
    *
  • CONTRAST_CURVE, FAST and HIGH_QUALITY
  • *
  • GAMMA_VALUE, PRESET_CURVE, FAST and HIGH_QUALITY
  • *
*

This includes all FULL level devices.

*

Range of valid values:
* Any value listed in {@link CaptureRequest#TONEMAP_MODE android.tonemap.mode}

*

Optional - The value for this key may be {@code null} on some devices.

*

Full capability - * Present on all camera devices that report being {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL HARDWARE_LEVEL_FULL} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CaptureRequest#TONEMAP_MODE */ @PublicKey @NonNull public static final Key TONEMAP_AVAILABLE_TONE_MAP_MODES = new Key("android.tonemap.availableToneMapModes", int[].class); /** *

A list of camera LEDs that are available on this system.

*

Possible values:

*
    *
  • {@link #LED_AVAILABLE_LEDS_TRANSMIT TRANSMIT}
  • *
* *

Optional - The value for this key may be {@code null} on some devices.

* @see #LED_AVAILABLE_LEDS_TRANSMIT * @hide */ public static final Key LED_AVAILABLE_LEDS = new Key("android.led.availableLeds", int[].class); /** *

Generally classifies the overall set of the camera device functionality.

*

The supported hardware level is a high-level description of the camera device's * capabilities, summarizing several capabilities into one field. Each level adds additional * features to the previous one, and is always a strict superset of the previous level. * The ordering is LEGACY < LIMITED < FULL < LEVEL_3.

*

Starting from LEVEL_3, the level enumerations are guaranteed to be in increasing * numerical value as well. To check if a given device is at least at a given hardware level, * the following code snippet can be used:

*
// Returns true if the device supports the required hardware level, or better.
     * boolean isHardwareLevelSupported(CameraCharacteristics c, int requiredLevel) {
     *     final int[] sortedHwLevels = {
     *         CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY,
     *         CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_EXTERNAL,
     *         CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED,
     *         CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_FULL,
     *         CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_3
     *     };
     *     int deviceLevel = c.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL);
     *     if (requiredLevel == deviceLevel) {
     *         return true;
     *     }
     *
     *     for (int sortedlevel : sortedHwLevels) {
     *         if (sortedlevel == requiredLevel) {
     *             return true;
     *         } else if (sortedlevel == deviceLevel) {
     *             return false;
     *         }
     *     }
     *     return false; // Should never reach here
     * }
     * 
*

At a high level, the levels are:

*
    *
  • LEGACY devices operate in a backwards-compatibility mode for older * Android devices, and have very limited capabilities.
  • *
  • LIMITED devices represent the * baseline feature set, and may also include additional capabilities that are * subsets of FULL.
  • *
  • FULL devices additionally support per-frame manual control of sensor, flash, lens and * post-processing settings, and image capture at a high rate.
  • *
  • LEVEL_3 devices additionally support YUV reprocessing and RAW image capture, along * with additional output stream configurations.
  • *
  • EXTERNAL devices are similar to LIMITED devices with exceptions like some sensor or * lens information not reported or less stable framerates.
  • *
*

See the individual level enums for full descriptions of the supported capabilities. The * {@link CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES android.request.availableCapabilities} entry describes the device's capabilities at a * finer-grain level, if needed. In addition, many controls have their available settings or * ranges defined in individual entries from {@link android.hardware.camera2.CameraCharacteristics }.

*

Some features are not part of any particular hardware level or capability and must be * queried separately. These include:

*
    *
  • Calibrated timestamps ({@link CameraCharacteristics#SENSOR_INFO_TIMESTAMP_SOURCE android.sensor.info.timestampSource} == REALTIME)
  • *
  • Precision lens control ({@link CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION android.lens.info.focusDistanceCalibration} == CALIBRATED)
  • *
  • Face detection ({@link CameraCharacteristics#STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES android.statistics.info.availableFaceDetectModes})
  • *
  • Optical or electrical image stabilization * ({@link CameraCharacteristics#LENS_INFO_AVAILABLE_OPTICAL_STABILIZATION android.lens.info.availableOpticalStabilization}, * {@link CameraCharacteristics#CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES android.control.availableVideoStabilizationModes})
  • *
*

Possible values:

*
    *
  • {@link #INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED LIMITED}
  • *
  • {@link #INFO_SUPPORTED_HARDWARE_LEVEL_FULL FULL}
  • *
  • {@link #INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY LEGACY}
  • *
  • {@link #INFO_SUPPORTED_HARDWARE_LEVEL_3 3}
  • *
  • {@link #INFO_SUPPORTED_HARDWARE_LEVEL_EXTERNAL EXTERNAL}
  • *
* *

This key is available on all devices.

* * @see CameraCharacteristics#CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES * @see CameraCharacteristics#LENS_INFO_AVAILABLE_OPTICAL_STABILIZATION * @see CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES * @see CameraCharacteristics#SENSOR_INFO_TIMESTAMP_SOURCE * @see CameraCharacteristics#STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES * @see #INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED * @see #INFO_SUPPORTED_HARDWARE_LEVEL_FULL * @see #INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY * @see #INFO_SUPPORTED_HARDWARE_LEVEL_3 * @see #INFO_SUPPORTED_HARDWARE_LEVEL_EXTERNAL */ @PublicKey @NonNull public static final Key INFO_SUPPORTED_HARDWARE_LEVEL = new Key("android.info.supportedHardwareLevel", int.class); /** *

A short string for manufacturer version information about the camera device, such as * ISP hardware, sensors, etc.

*

This can be used in {@link android.media.ExifInterface#TAG_IMAGE_DESCRIPTION TAG_IMAGE_DESCRIPTION} * in jpeg EXIF. This key may be absent if no version information is available on the * device.

*

Optional - The value for this key may be {@code null} on some devices.

*/ @PublicKey @NonNull public static final Key INFO_VERSION = new Key("android.info.version", String.class); /** *

This lists the mapping between a device folding state and * specific camera sensor orientation for logical cameras on a foldable device.

*

Logical cameras on foldable devices can support sensors with different orientation * values. The orientation value may need to change depending on the specific folding * state. Information about the mapping between the device folding state and the * sensor orientation can be obtained in * {@link android.hardware.camera2.params.DeviceStateSensorOrientationMap }. * Device state orientation maps are optional and maybe present on devices that support * {@link CaptureRequest#SCALER_ROTATE_AND_CROP android.scaler.rotateAndCrop}.

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CaptureRequest#SCALER_ROTATE_AND_CROP */ @PublicKey @NonNull @SyntheticKey public static final Key INFO_DEVICE_STATE_SENSOR_ORIENTATION_MAP = new Key("android.info.deviceStateSensorOrientationMap", android.hardware.camera2.params.DeviceStateSensorOrientationMap.class); /** *

HAL must populate the array with * (hardware::camera::provider::V2_5::DeviceState, sensorOrientation) pairs for each * supported device state bitwise combination.

*

Units: (device fold state, sensor orientation) x n

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @hide */ public static final Key INFO_DEVICE_STATE_ORIENTATIONS = new Key("android.info.deviceStateOrientations", long[].class); /** *

The version of the session configuration query * {@link android.hardware.camera2.CameraDevice.CameraDeviceSetup#isSessionConfigurationSupported } * and {@link android.hardware.camera2.CameraDevice.CameraDeviceSetup#getSessionCharacteristics } * APIs.

*

The possible values in this key correspond to the values defined in * android.os.Build.VERSION_CODES. Each version defines a set of feature combinations the * camera device must reliably report whether they are supported via * {@link android.hardware.camera2.CameraDevice.CameraDeviceSetup#isSessionConfigurationSupported }. * It also defines the set of session specific keys in CameraCharacteristics when returned from * {@link android.hardware.camera2.CameraDevice.CameraDeviceSetup#getSessionCharacteristics }. * The version is always less or equal to android.os.Build.VERSION.SDK_INT.

*

If set to UPSIDE_DOWN_CAKE, this camera device doesn't support the * {@link android.hardware.camera2.CameraDevice.CameraDeviceSetup } API. * Trying to create a CameraDeviceSetup instance throws an UnsupportedOperationException.

*

From VANILLA_ICE_CREAM onwards, the camera compliance tests verify a set of * commonly used SessionConfigurations to ensure that the outputs of * {@link android.hardware.camera2.CameraDevice.CameraDeviceSetup#isSessionConfigurationSupported } * and {@link android.hardware.camera2.CameraDevice.CameraDeviceSetup#getSessionCharacteristics } * are accurate. The application is encouraged to use these SessionConfigurations when turning on * multiple features at the same time.

*

When set to VANILLA_ICE_CREAM, the combinations of the following configurations are verified * by the compliance tests:

*
    *
  • *

    A set of commonly used stream combinations:

    * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
    Target 1SizeTarget 2Size
    PRIVS1080P
    PRIVS720P
    PRIVS1080PJPEG/JPEG_RMAXIMUM_16_9
    PRIVS1080PJPEG/JPEG_RUHD
    PRIVS1080PJPEG/JPEG_RS1440P
    PRIVS1080PJPEG/JPEG_RS1080P
    PRIVS1080PPRIVUHD
    PRIVS720PJPEG/JPEG_RMAXIMUM_16_9
    PRIVS720PJPEG/JPEG_RUHD
    PRIVS720PJPEG/JPEG_RS1080P
    PRIVXVGAJPEG/JPEG_RMAXIMUM_4_3
    PRIVS1080P_4_3JPEG/JPEG_RMAXIMUM_4_3
    *
      *
    • {@code MAXIMUM_4_3} refers to the camera device's maximum output resolution with * 4:3 aspect ratio for that format from {@code StreamConfigurationMap#getOutputSizes}.
    • *
    • {@code MAXIMUM_16_9} is the maximum output resolution with 16:9 aspect ratio.
    • *
    • {@code S1440P} refers to {@code 2560x1440 (16:9)}.
    • *
    • {@code S1080P} refers to {@code 1920x1080 (16:9)}.
    • *
    • {@code S720P} refers to {@code 1280x720 (16:9)}.
    • *
    • {@code UHD} refers to {@code 3840x2160 (16:9)}.
    • *
    • {@code XVGA} refers to {@code 1024x768 (4:3)}.
    • *
    • {@code S1080P_43} refers to {@code 1440x1080 (4:3)}.
    • *
    *
  • *
  • *

    VIDEO_STABILIZATION_MODE: {OFF, PREVIEW}

    *
  • *
  • *

    AE_TARGET_FPS_RANGE: { {*, 30}, {*, 60} }

    *
  • *
  • *

    DYNAMIC_RANGE_PROFILE: {STANDARD, HLG10}

    *
  • *
*

All of the above configurations can be set up with a SessionConfiguration. The list of * OutputConfiguration contains the stream configurations and DYNAMIC_RANGE_PROFILE, and * the AE_TARGET_FPS_RANGE and VIDEO_STABILIZATION_MODE are set as session parameters.

*

This key is available on all devices.

*/ @PublicKey @NonNull @FlaggedApi(Flags.FLAG_FEATURE_COMBINATION_QUERY) public static final Key INFO_SESSION_CONFIGURATION_QUERY_VERSION = new Key("android.info.sessionConfigurationQueryVersion", int.class); /** *

Id of the device that owns this camera.

*

In case of a virtual camera, this would be the id of the virtual device * owning the camera. For any other camera, this key would not be present. * Callers should assume {@link android.content.Context#DEVICE_ID_DEFAULT } * in case this key is not present.

*

Optional - The value for this key may be {@code null} on some devices.

* @hide */ public static final Key INFO_DEVICE_ID = new Key("android.info.deviceId", int.class); /** *

The maximum number of frames that can occur after a request * (different than the previous) has been submitted, and before the * result's state becomes synchronized.

*

This defines the maximum distance (in number of metadata results), * between the frame number of the request that has new controls to apply * and the frame number of the result that has all the controls applied.

*

In other words this acts as an upper boundary for how many frames * must occur before the camera device knows for a fact that the new * submitted camera settings have been applied in outgoing frames.

*

Units: Frame counts

*

Possible values:

*
    *
  • {@link #SYNC_MAX_LATENCY_PER_FRAME_CONTROL PER_FRAME_CONTROL}
  • *
  • {@link #SYNC_MAX_LATENCY_UNKNOWN UNKNOWN}
  • *
* *

Available values for this device:
* A positive value, PER_FRAME_CONTROL, or UNKNOWN.

*

This key is available on all devices.

* @see #SYNC_MAX_LATENCY_PER_FRAME_CONTROL * @see #SYNC_MAX_LATENCY_UNKNOWN */ @PublicKey @NonNull public static final Key SYNC_MAX_LATENCY = new Key("android.sync.maxLatency", int.class); /** *

The maximal camera capture pipeline stall (in unit of frame count) introduced by a * reprocess capture request.

*

The key describes the maximal interference that one reprocess (input) request * can introduce to the camera simultaneous streaming of regular (output) capture * requests, including repeating requests.

*

When a reprocessing capture request is submitted while a camera output repeating request * (e.g. preview) is being served by the camera device, it may preempt the camera capture * pipeline for at least one frame duration so that the camera device is unable to process * the following capture request in time for the next sensor start of exposure boundary. * When this happens, the application may observe a capture time gap (longer than one frame * duration) between adjacent capture output frames, which usually exhibits as preview * glitch if the repeating request output targets include a preview surface. This key gives * the worst-case number of frame stall introduced by one reprocess request with any kind of * formats/sizes combination.

*

If this key reports 0, it means a reprocess request doesn't introduce any glitch to the * ongoing camera repeating request outputs, as if this reprocess request is never issued.

*

This key is supported if the camera device supports PRIVATE or YUV reprocessing ( * i.e. {@link CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES android.request.availableCapabilities} contains PRIVATE_REPROCESSING or * YUV_REPROCESSING).

*

Units: Number of frames.

*

Range of valid values:
* <= 4

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES */ @PublicKey @NonNull public static final Key REPROCESS_MAX_CAPTURE_STALL = new Key("android.reprocess.maxCaptureStall", int.class); /** *

The available depth dataspace stream * configurations that this camera device supports * (i.e. format, width, height, output/input stream).

*

These are output stream configurations for use with * dataSpace HAL_DATASPACE_DEPTH. The configurations are * listed as (format, width, height, input?) tuples.

*

Only devices that support depth output for at least * the HAL_PIXEL_FORMAT_Y16 dense depth map may include * this entry.

*

A device that also supports the HAL_PIXEL_FORMAT_BLOB * sparse depth point cloud must report a single entry for * the format in this list as (HAL_PIXEL_FORMAT_BLOB, * android.depth.maxDepthSamples, 1, OUTPUT) in addition to * the entries for HAL_PIXEL_FORMAT_Y16.

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @hide */ public static final Key DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS = new Key("android.depth.availableDepthStreamConfigurations", android.hardware.camera2.params.StreamConfiguration[].class); /** *

This lists the minimum frame duration for each * format/size combination for depth output formats.

*

This should correspond to the frame duration when only that * stream is active, with all processing (typically in android.*.mode) * set to either OFF or FAST.

*

When multiple streams are used in a request, the minimum frame * duration will be max(individual stream min durations).

*

The minimum frame duration of a stream (of a particular format, size) * is the same regardless of whether the stream is input or output.

*

See {@link CaptureRequest#SENSOR_FRAME_DURATION android.sensor.frameDuration} and * android.scaler.availableStallDurations for more details about * calculating the max frame rate.

*

Units: (format, width, height, ns) x n

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CaptureRequest#SENSOR_FRAME_DURATION * @hide */ public static final Key DEPTH_AVAILABLE_DEPTH_MIN_FRAME_DURATIONS = new Key("android.depth.availableDepthMinFrameDurations", android.hardware.camera2.params.StreamConfigurationDuration[].class); /** *

This lists the maximum stall duration for each * output format/size combination for depth streams.

*

A stall duration is how much extra time would get added * to the normal minimum frame duration for a repeating request * that has streams with non-zero stall.

*

This functions similarly to * android.scaler.availableStallDurations for depth * streams.

*

All depth output stream formats may have a nonzero stall * duration.

*

Units: (format, width, height, ns) x n

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @hide */ public static final Key DEPTH_AVAILABLE_DEPTH_STALL_DURATIONS = new Key("android.depth.availableDepthStallDurations", android.hardware.camera2.params.StreamConfigurationDuration[].class); /** *

Indicates whether a capture request may target both a * DEPTH16 / DEPTH_POINT_CLOUD output, and normal color outputs (such as * YUV_420_888, JPEG, or RAW) simultaneously.

*

If TRUE, including both depth and color outputs in a single * capture request is not supported. An application must interleave color * and depth requests. If FALSE, a single request can target both types * of output.

*

Typically, this restriction exists on camera devices that * need to emit a specific pattern or wavelength of light to * measure depth values, which causes the color image to be * corrupted during depth measurement.

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL */ @PublicKey @NonNull public static final Key DEPTH_DEPTH_IS_EXCLUSIVE = new Key("android.depth.depthIsExclusive", boolean.class); /** *

Recommended depth stream configurations for common client use cases.

*

Optional subset of the android.depth.availableDepthStreamConfigurations that * contains similar tuples listed as * (i.e. width, height, format, output/input stream, usecase bit field). * Camera devices will be able to suggest particular depth stream configurations which are * power and performance efficient for specific use cases. For more information about * retrieving the suggestions see * {@link android.hardware.camera2.CameraCharacteristics#getRecommendedStreamConfigurationMap }.

*

Optional - The value for this key may be {@code null} on some devices.

* @hide */ public static final Key DEPTH_AVAILABLE_RECOMMENDED_DEPTH_STREAM_CONFIGURATIONS = new Key("android.depth.availableRecommendedDepthStreamConfigurations", android.hardware.camera2.params.RecommendedStreamConfiguration[].class); /** *

The available dynamic depth dataspace stream * configurations that this camera device supports * (i.e. format, width, height, output/input stream).

*

These are output stream configurations for use with * dataSpace DYNAMIC_DEPTH. The configurations are * listed as (format, width, height, input?) tuples.

*

Only devices that support depth output for at least * the HAL_PIXEL_FORMAT_Y16 dense depth map along with * HAL_PIXEL_FORMAT_BLOB with the same size or size with * the same aspect ratio can have dynamic depth dataspace * stream configuration. {@link CameraCharacteristics#DEPTH_DEPTH_IS_EXCLUSIVE android.depth.depthIsExclusive} also * needs to be set to FALSE.

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CameraCharacteristics#DEPTH_DEPTH_IS_EXCLUSIVE * @hide */ public static final Key DEPTH_AVAILABLE_DYNAMIC_DEPTH_STREAM_CONFIGURATIONS = new Key("android.depth.availableDynamicDepthStreamConfigurations", android.hardware.camera2.params.StreamConfiguration[].class); /** *

This lists the minimum frame duration for each * format/size combination for dynamic depth output streams.

*

This should correspond to the frame duration when only that * stream is active, with all processing (typically in android.*.mode) * set to either OFF or FAST.

*

When multiple streams are used in a request, the minimum frame * duration will be max(individual stream min durations).

*

The minimum frame duration of a stream (of a particular format, size) * is the same regardless of whether the stream is input or output.

*

Units: (format, width, height, ns) x n

*

Optional - The value for this key may be {@code null} on some devices.

* @hide */ public static final Key DEPTH_AVAILABLE_DYNAMIC_DEPTH_MIN_FRAME_DURATIONS = new Key("android.depth.availableDynamicDepthMinFrameDurations", android.hardware.camera2.params.StreamConfigurationDuration[].class); /** *

This lists the maximum stall duration for each * output format/size combination for dynamic depth streams.

*

A stall duration is how much extra time would get added * to the normal minimum frame duration for a repeating request * that has streams with non-zero stall.

*

All dynamic depth output streams may have a nonzero stall * duration.

*

Units: (format, width, height, ns) x n

*

Optional - The value for this key may be {@code null} on some devices.

* @hide */ public static final Key DEPTH_AVAILABLE_DYNAMIC_DEPTH_STALL_DURATIONS = new Key("android.depth.availableDynamicDepthStallDurations", android.hardware.camera2.params.StreamConfigurationDuration[].class); /** *

The available depth dataspace stream * configurations that this camera device supports * (i.e. format, width, height, output/input stream) when a CaptureRequest is submitted with * {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Analogous to android.depth.availableDepthStreamConfigurations, for configurations which * are applicable when {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#SENSOR_PIXEL_MODE * @hide */ public static final Key DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION = new Key("android.depth.availableDepthStreamConfigurationsMaximumResolution", android.hardware.camera2.params.StreamConfiguration[].class); /** *

This lists the minimum frame duration for each * format/size combination for depth output formats when a CaptureRequest is submitted with * {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Analogous to android.depth.availableDepthMinFrameDurations, for configurations which * are applicable when {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

See {@link CaptureRequest#SENSOR_FRAME_DURATION android.sensor.frameDuration} and * android.scaler.availableStallDurationsMaximumResolution for more details about * calculating the max frame rate.

*

Units: (format, width, height, ns) x n

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#SENSOR_FRAME_DURATION * @see CaptureRequest#SENSOR_PIXEL_MODE * @hide */ public static final Key DEPTH_AVAILABLE_DEPTH_MIN_FRAME_DURATIONS_MAXIMUM_RESOLUTION = new Key("android.depth.availableDepthMinFrameDurationsMaximumResolution", android.hardware.camera2.params.StreamConfigurationDuration[].class); /** *

This lists the maximum stall duration for each * output format/size combination for depth streams for CaptureRequests where * {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Analogous to android.depth.availableDepthStallDurations, for configurations which * are applicable when {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Units: (format, width, height, ns) x n

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#SENSOR_PIXEL_MODE * @hide */ public static final Key DEPTH_AVAILABLE_DEPTH_STALL_DURATIONS_MAXIMUM_RESOLUTION = new Key("android.depth.availableDepthStallDurationsMaximumResolution", android.hardware.camera2.params.StreamConfigurationDuration[].class); /** *

The available dynamic depth dataspace stream * configurations that this camera device supports (i.e. format, width, height, * output/input stream) for CaptureRequests where {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Analogous to android.depth.availableDynamicDepthStreamConfigurations, for configurations * which are applicable when {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#SENSOR_PIXEL_MODE * @hide */ public static final Key DEPTH_AVAILABLE_DYNAMIC_DEPTH_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION = new Key("android.depth.availableDynamicDepthStreamConfigurationsMaximumResolution", android.hardware.camera2.params.StreamConfiguration[].class); /** *

This lists the minimum frame duration for each * format/size combination for dynamic depth output streams for CaptureRequests where * {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Analogous to android.depth.availableDynamicDepthMinFrameDurations, for configurations * which are applicable when {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Units: (format, width, height, ns) x n

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#SENSOR_PIXEL_MODE * @hide */ public static final Key DEPTH_AVAILABLE_DYNAMIC_DEPTH_MIN_FRAME_DURATIONS_MAXIMUM_RESOLUTION = new Key("android.depth.availableDynamicDepthMinFrameDurationsMaximumResolution", android.hardware.camera2.params.StreamConfigurationDuration[].class); /** *

This lists the maximum stall duration for each * output format/size combination for dynamic depth streams for CaptureRequests where * {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Analogous to android.depth.availableDynamicDepthStallDurations, for configurations * which are applicable when {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Units: (format, width, height, ns) x n

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#SENSOR_PIXEL_MODE * @hide */ public static final Key DEPTH_AVAILABLE_DYNAMIC_DEPTH_STALL_DURATIONS_MAXIMUM_RESOLUTION = new Key("android.depth.availableDynamicDepthStallDurationsMaximumResolution", android.hardware.camera2.params.StreamConfigurationDuration[].class); /** *

String containing the ids of the underlying physical cameras.

*

For a logical camera, this is concatenation of all underlying physical camera IDs. * The null terminator for physical camera ID must be preserved so that the whole string * can be tokenized using '\0' to generate list of physical camera IDs.

*

For example, if the physical camera IDs of the logical camera are "2" and "3", the * value of this tag will be ['2', '\0', '3', '\0'].

*

The number of physical camera IDs must be no less than 2.

*

Units: UTF-8 null-terminated string

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @hide */ public static final Key LOGICAL_MULTI_CAMERA_PHYSICAL_IDS = new Key("android.logicalMultiCamera.physicalIds", byte[].class); /** *

The accuracy of frame timestamp synchronization between physical cameras

*

The accuracy of the frame timestamp synchronization determines the physical cameras' * ability to start exposure at the same time. If the sensorSyncType is CALIBRATED, the * physical camera sensors usually run in leader/follower mode where one sensor generates a * timing signal for the other, so that their shutter time is synchronized. For APPROXIMATE * sensorSyncType, the camera sensors usually run in leader/leader mode, where both sensors * use their own timing generator, and there could be offset between their start of exposure.

*

In both cases, all images generated for a particular capture request still carry the same * timestamps, so that they can be used to look up the matching frame number and * onCaptureStarted callback.

*

This tag is only applicable if the logical camera device supports concurrent physical * streams from different physical cameras.

*

Possible values:

*
    *
  • {@link #LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE_APPROXIMATE APPROXIMATE}
  • *
  • {@link #LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE_CALIBRATED CALIBRATED}
  • *
* *

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see #LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE_APPROXIMATE * @see #LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE_CALIBRATED */ @PublicKey @NonNull public static final Key LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE = new Key("android.logicalMultiCamera.sensorSyncType", int.class); /** *

List of distortion correction modes for {@link CaptureRequest#DISTORTION_CORRECTION_MODE android.distortionCorrection.mode} that are * supported by this camera device.

*

No device is required to support this API; such devices will always list only 'OFF'. * All devices that support this API will list both FAST and HIGH_QUALITY.

*

Range of valid values:
* Any value listed in {@link CaptureRequest#DISTORTION_CORRECTION_MODE android.distortionCorrection.mode}

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#DISTORTION_CORRECTION_MODE */ @PublicKey @NonNull public static final Key DISTORTION_CORRECTION_AVAILABLE_MODES = new Key("android.distortionCorrection.availableModes", int[].class); /** *

The available HEIC (ISO/IEC 23008-12) stream * configurations that this camera device supports * (i.e. format, width, height, output/input stream).

*

The configurations are listed as (format, width, height, input?) tuples.

*

If the camera device supports HEIC image format, it will support identical set of stream * combinations involving HEIC image format, compared to the combinations involving JPEG * image format as required by the device's hardware level and capabilities.

*

All the static, control, and dynamic metadata tags related to JPEG apply to HEIC formats. * Configuring JPEG and HEIC streams at the same time is not supported.

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @hide */ public static final Key HEIC_AVAILABLE_HEIC_STREAM_CONFIGURATIONS = new Key("android.heic.availableHeicStreamConfigurations", android.hardware.camera2.params.StreamConfiguration[].class); /** *

This lists the minimum frame duration for each * format/size combination for HEIC output formats.

*

This should correspond to the frame duration when only that * stream is active, with all processing (typically in android.*.mode) * set to either OFF or FAST.

*

When multiple streams are used in a request, the minimum frame * duration will be max(individual stream min durations).

*

See {@link CaptureRequest#SENSOR_FRAME_DURATION android.sensor.frameDuration} and * android.scaler.availableStallDurations for more details about * calculating the max frame rate.

*

Units: (format, width, height, ns) x n

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CaptureRequest#SENSOR_FRAME_DURATION * @hide */ public static final Key HEIC_AVAILABLE_HEIC_MIN_FRAME_DURATIONS = new Key("android.heic.availableHeicMinFrameDurations", android.hardware.camera2.params.StreamConfigurationDuration[].class); /** *

This lists the maximum stall duration for each * output format/size combination for HEIC streams.

*

A stall duration is how much extra time would get added * to the normal minimum frame duration for a repeating request * that has streams with non-zero stall.

*

This functions similarly to * android.scaler.availableStallDurations for HEIC * streams.

*

All HEIC output stream formats may have a nonzero stall * duration.

*

Units: (format, width, height, ns) x n

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @hide */ public static final Key HEIC_AVAILABLE_HEIC_STALL_DURATIONS = new Key("android.heic.availableHeicStallDurations", android.hardware.camera2.params.StreamConfigurationDuration[].class); /** *

The available HEIC (ISO/IEC 23008-12) stream * configurations that this camera device supports * (i.e. format, width, height, output/input stream).

*

Refer to android.heic.availableHeicStreamConfigurations for details.

*

Optional - The value for this key may be {@code null} on some devices.

* @hide */ public static final Key HEIC_AVAILABLE_HEIC_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION = new Key("android.heic.availableHeicStreamConfigurationsMaximumResolution", android.hardware.camera2.params.StreamConfiguration[].class); /** *

This lists the minimum frame duration for each * format/size combination for HEIC output formats for CaptureRequests where * {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Refer to android.heic.availableHeicMinFrameDurations for details.

*

Units: (format, width, height, ns) x n

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#SENSOR_PIXEL_MODE * @hide */ public static final Key HEIC_AVAILABLE_HEIC_MIN_FRAME_DURATIONS_MAXIMUM_RESOLUTION = new Key("android.heic.availableHeicMinFrameDurationsMaximumResolution", android.hardware.camera2.params.StreamConfigurationDuration[].class); /** *

This lists the maximum stall duration for each * output format/size combination for HEIC streams for CaptureRequests where * {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Refer to android.heic.availableHeicStallDurations for details.

*

Units: (format, width, height, ns) x n

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#SENSOR_PIXEL_MODE * @hide */ public static final Key HEIC_AVAILABLE_HEIC_STALL_DURATIONS_MAXIMUM_RESOLUTION = new Key("android.heic.availableHeicStallDurationsMaximumResolution", android.hardware.camera2.params.StreamConfigurationDuration[].class); /** *

The direction of the camera faces relative to the vehicle body frame and the * passenger seats.

*

This enum defines the lens facing characteristic of the cameras on the automotive * devices with locations {@link CameraCharacteristics#AUTOMOTIVE_LOCATION android.automotive.location} defines. If the system has * FEATURE_AUTOMOTIVE, the camera will have this entry in its static metadata.

*

When {@link CameraCharacteristics#AUTOMOTIVE_LOCATION android.automotive.location} is INTERIOR, this has one or more INTERIOR_* * values or a single EXTERIOR_* value. When this has more than one INTERIOR_*, * the first value must be the one for the seat closest to the optical axis. If this * contains INTERIOR_OTHER, all other values will be ineffective.

*

When {@link CameraCharacteristics#AUTOMOTIVE_LOCATION android.automotive.location} is EXTERIOR_* or EXTRA, this has a single * EXTERIOR_* value.

*

If a camera has INTERIOR_OTHER or EXTERIOR_OTHER, or more than one camera is at the * same location and facing the same direction, their static metadata will list the * following entries, so that applications can determine their lenses' exact facing * directions:

*
    *
  • {@link CameraCharacteristics#LENS_POSE_REFERENCE android.lens.poseReference}
  • *
  • {@link CameraCharacteristics#LENS_POSE_ROTATION android.lens.poseRotation}
  • *
  • {@link CameraCharacteristics#LENS_POSE_TRANSLATION android.lens.poseTranslation}
  • *
*

Possible values:

*
    *
  • {@link #AUTOMOTIVE_LENS_FACING_EXTERIOR_OTHER EXTERIOR_OTHER}
  • *
  • {@link #AUTOMOTIVE_LENS_FACING_EXTERIOR_FRONT EXTERIOR_FRONT}
  • *
  • {@link #AUTOMOTIVE_LENS_FACING_EXTERIOR_REAR EXTERIOR_REAR}
  • *
  • {@link #AUTOMOTIVE_LENS_FACING_EXTERIOR_LEFT EXTERIOR_LEFT}
  • *
  • {@link #AUTOMOTIVE_LENS_FACING_EXTERIOR_RIGHT EXTERIOR_RIGHT}
  • *
  • {@link #AUTOMOTIVE_LENS_FACING_INTERIOR_OTHER INTERIOR_OTHER}
  • *
  • {@link #AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_1_LEFT INTERIOR_SEAT_ROW_1_LEFT}
  • *
  • {@link #AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_1_CENTER INTERIOR_SEAT_ROW_1_CENTER}
  • *
  • {@link #AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_1_RIGHT INTERIOR_SEAT_ROW_1_RIGHT}
  • *
  • {@link #AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_2_LEFT INTERIOR_SEAT_ROW_2_LEFT}
  • *
  • {@link #AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_2_CENTER INTERIOR_SEAT_ROW_2_CENTER}
  • *
  • {@link #AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_2_RIGHT INTERIOR_SEAT_ROW_2_RIGHT}
  • *
  • {@link #AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_3_LEFT INTERIOR_SEAT_ROW_3_LEFT}
  • *
  • {@link #AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_3_CENTER INTERIOR_SEAT_ROW_3_CENTER}
  • *
  • {@link #AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_3_RIGHT INTERIOR_SEAT_ROW_3_RIGHT}
  • *
* *

Optional - The value for this key may be {@code null} on some devices.

* * @see CameraCharacteristics#AUTOMOTIVE_LOCATION * @see CameraCharacteristics#LENS_POSE_REFERENCE * @see CameraCharacteristics#LENS_POSE_ROTATION * @see CameraCharacteristics#LENS_POSE_TRANSLATION * @see #AUTOMOTIVE_LENS_FACING_EXTERIOR_OTHER * @see #AUTOMOTIVE_LENS_FACING_EXTERIOR_FRONT * @see #AUTOMOTIVE_LENS_FACING_EXTERIOR_REAR * @see #AUTOMOTIVE_LENS_FACING_EXTERIOR_LEFT * @see #AUTOMOTIVE_LENS_FACING_EXTERIOR_RIGHT * @see #AUTOMOTIVE_LENS_FACING_INTERIOR_OTHER * @see #AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_1_LEFT * @see #AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_1_CENTER * @see #AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_1_RIGHT * @see #AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_2_LEFT * @see #AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_2_CENTER * @see #AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_2_RIGHT * @see #AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_3_LEFT * @see #AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_3_CENTER * @see #AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_3_RIGHT */ @PublicKey @NonNull public static final Key AUTOMOTIVE_LENS_FACING = new Key("android.automotive.lens.facing", int[].class); /** *

Location of the cameras on the automotive devices.

*

This enum defines the locations of the cameras relative to the vehicle body frame on * the automotive sensor coordinate system. * If the system has FEATURE_AUTOMOTIVE, the camera will have this entry in its static * metadata.

*
    *
  • INTERIOR is the inside of the vehicle body frame (or the passenger cabin).
  • *
  • EXTERIOR is the outside of the vehicle body frame.
  • *
  • EXTRA is the extra vehicle such as a trailer.
  • *
*

Each side of the vehicle body frame on this coordinate system is defined as below:

*
    *
  • FRONT is where the Y-axis increases toward.
  • *
  • REAR is where the Y-axis decreases toward.
  • *
  • LEFT is where the X-axis decreases toward.
  • *
  • RIGHT is where the X-axis increases toward.
  • *
*

If the camera has either EXTERIOR_OTHER or EXTRA_OTHER, its static metadata will list * the following entries, so that applications can determine the camera's exact location:

*
    *
  • {@link CameraCharacteristics#LENS_POSE_REFERENCE android.lens.poseReference}
  • *
  • {@link CameraCharacteristics#LENS_POSE_ROTATION android.lens.poseRotation}
  • *
  • {@link CameraCharacteristics#LENS_POSE_TRANSLATION android.lens.poseTranslation}
  • *
*

Possible values:

*
    *
  • {@link #AUTOMOTIVE_LOCATION_INTERIOR INTERIOR}
  • *
  • {@link #AUTOMOTIVE_LOCATION_EXTERIOR_OTHER EXTERIOR_OTHER}
  • *
  • {@link #AUTOMOTIVE_LOCATION_EXTERIOR_FRONT EXTERIOR_FRONT}
  • *
  • {@link #AUTOMOTIVE_LOCATION_EXTERIOR_REAR EXTERIOR_REAR}
  • *
  • {@link #AUTOMOTIVE_LOCATION_EXTERIOR_LEFT EXTERIOR_LEFT}
  • *
  • {@link #AUTOMOTIVE_LOCATION_EXTERIOR_RIGHT EXTERIOR_RIGHT}
  • *
  • {@link #AUTOMOTIVE_LOCATION_EXTRA_OTHER EXTRA_OTHER}
  • *
  • {@link #AUTOMOTIVE_LOCATION_EXTRA_FRONT EXTRA_FRONT}
  • *
  • {@link #AUTOMOTIVE_LOCATION_EXTRA_REAR EXTRA_REAR}
  • *
  • {@link #AUTOMOTIVE_LOCATION_EXTRA_LEFT EXTRA_LEFT}
  • *
  • {@link #AUTOMOTIVE_LOCATION_EXTRA_RIGHT EXTRA_RIGHT}
  • *
* *

Optional - The value for this key may be {@code null} on some devices.

* * @see CameraCharacteristics#LENS_POSE_REFERENCE * @see CameraCharacteristics#LENS_POSE_ROTATION * @see CameraCharacteristics#LENS_POSE_TRANSLATION * @see #AUTOMOTIVE_LOCATION_INTERIOR * @see #AUTOMOTIVE_LOCATION_EXTERIOR_OTHER * @see #AUTOMOTIVE_LOCATION_EXTERIOR_FRONT * @see #AUTOMOTIVE_LOCATION_EXTERIOR_REAR * @see #AUTOMOTIVE_LOCATION_EXTERIOR_LEFT * @see #AUTOMOTIVE_LOCATION_EXTERIOR_RIGHT * @see #AUTOMOTIVE_LOCATION_EXTRA_OTHER * @see #AUTOMOTIVE_LOCATION_EXTRA_FRONT * @see #AUTOMOTIVE_LOCATION_EXTRA_REAR * @see #AUTOMOTIVE_LOCATION_EXTRA_LEFT * @see #AUTOMOTIVE_LOCATION_EXTRA_RIGHT */ @PublicKey @NonNull public static final Key AUTOMOTIVE_LOCATION = new Key("android.automotive.location", int.class); /** *

The available Jpeg/R stream * configurations that this camera device supports * (i.e. format, width, height, output/input stream).

*

The configurations are listed as (format, width, height, input?) tuples.

*

If the camera device supports Jpeg/R, it will support the same stream combinations with * Jpeg/R as it does with P010. The stream combinations with Jpeg/R (or P010) supported * by the device is determined by the device's hardware level and capabilities.

*

All the static, control, and dynamic metadata tags related to JPEG apply to Jpeg/R formats. * Configuring JPEG and Jpeg/R streams at the same time is not supported.

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @hide */ public static final Key JPEGR_AVAILABLE_JPEG_R_STREAM_CONFIGURATIONS = new Key("android.jpegr.availableJpegRStreamConfigurations", android.hardware.camera2.params.StreamConfiguration[].class); /** *

This lists the minimum frame duration for each * format/size combination for Jpeg/R output formats.

*

This should correspond to the frame duration when only that * stream is active, with all processing (typically in android.*.mode) * set to either OFF or FAST.

*

When multiple streams are used in a request, the minimum frame * duration will be max(individual stream min durations).

*

See {@link CaptureRequest#SENSOR_FRAME_DURATION android.sensor.frameDuration} and * android.scaler.availableStallDurations for more details about * calculating the max frame rate.

*

Units: (format, width, height, ns) x n

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @see CaptureRequest#SENSOR_FRAME_DURATION * @hide */ public static final Key JPEGR_AVAILABLE_JPEG_R_MIN_FRAME_DURATIONS = new Key("android.jpegr.availableJpegRMinFrameDurations", android.hardware.camera2.params.StreamConfigurationDuration[].class); /** *

This lists the maximum stall duration for each * output format/size combination for Jpeg/R streams.

*

A stall duration is how much extra time would get added * to the normal minimum frame duration for a repeating request * that has streams with non-zero stall.

*

This functions similarly to * android.scaler.availableStallDurations for Jpeg/R * streams.

*

All Jpeg/R output stream formats may have a nonzero stall * duration.

*

Units: (format, width, height, ns) x n

*

Optional - The value for this key may be {@code null} on some devices.

*

Limited capability - * Present on all camera devices that report being at least {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED HARDWARE_LEVEL_LIMITED} devices in the * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key

* * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL * @hide */ public static final Key JPEGR_AVAILABLE_JPEG_R_STALL_DURATIONS = new Key("android.jpegr.availableJpegRStallDurations", android.hardware.camera2.params.StreamConfigurationDuration[].class); /** *

The available Jpeg/R stream * configurations that this camera device supports * (i.e. format, width, height, output/input stream).

*

Refer to android.jpegr.availableJpegRStreamConfigurations for details.

*

Optional - The value for this key may be {@code null} on some devices.

* @hide */ public static final Key JPEGR_AVAILABLE_JPEG_R_STREAM_CONFIGURATIONS_MAXIMUM_RESOLUTION = new Key("android.jpegr.availableJpegRStreamConfigurationsMaximumResolution", android.hardware.camera2.params.StreamConfiguration[].class); /** *

This lists the minimum frame duration for each * format/size combination for Jpeg/R output formats for CaptureRequests where * {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Refer to android.jpegr.availableJpegRMinFrameDurations for details.

*

Units: (format, width, height, ns) x n

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#SENSOR_PIXEL_MODE * @hide */ public static final Key JPEGR_AVAILABLE_JPEG_R_MIN_FRAME_DURATIONS_MAXIMUM_RESOLUTION = new Key("android.jpegr.availableJpegRMinFrameDurationsMaximumResolution", android.hardware.camera2.params.StreamConfigurationDuration[].class); /** *

This lists the maximum stall duration for each * output format/size combination for Jpeg/R streams for CaptureRequests where * {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }.

*

Refer to android.jpegr.availableJpegRStallDurations for details.

*

Units: (format, width, height, ns) x n

*

Optional - The value for this key may be {@code null} on some devices.

* * @see CaptureRequest#SENSOR_PIXEL_MODE * @hide */ public static final Key JPEGR_AVAILABLE_JPEG_R_STALL_DURATIONS_MAXIMUM_RESOLUTION = new Key("android.jpegr.availableJpegRStallDurationsMaximumResolution", android.hardware.camera2.params.StreamConfigurationDuration[].class); /** *

Minimum and maximum padding zoom factors supported by this camera device for * android.efv.paddingZoomFactor used for the * {@link android.hardware.camera2.CameraExtensionCharacteristics#EXTENSION_EYES_FREE_VIDEOGRAPHY } * extension.

*

The minimum and maximum padding zoom factors supported by the device for * android.efv.paddingZoomFactor used as part of the * {@link android.hardware.camera2.CameraExtensionCharacteristics#EXTENSION_EYES_FREE_VIDEOGRAPHY } * extension feature. This extension specific camera characteristic can be queried using * {@link android.hardware.camera2.CameraExtensionCharacteristics#get }.

*

Units: A pair of padding zoom factors in floating-points: * (minPaddingZoomFactor, maxPaddingZoomFactor)

*

Range of valid values:

*

1.0 < minPaddingZoomFactor <= maxPaddingZoomFactor

*

Optional - The value for this key may be {@code null} on some devices.

* @hide */ @ExtensionKey @FlaggedApi(Flags.FLAG_CONCERT_MODE_API) public static final Key> EFV_PADDING_ZOOM_FACTOR_RANGE = new Key>("android.efv.paddingZoomFactorRange", new TypeReference>() {{ }}); /** * Mapping from INFO_SESSION_CONFIGURATION_QUERY_VERSION to session characteristics key. */ private static final Map[]> AVAILABLE_SESSION_CHARACTERISTICS_KEYS_MAP = Map.ofEntries( Map.entry( 35, new Key[] { CONTROL_ZOOM_RATIO_RANGE, SCALER_AVAILABLE_MAX_DIGITAL_ZOOM, } ) ); /*~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~ * End generated code *~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~O@*/ }