Android APIs
public abstract class

CameraMetadata

extends Object
java.lang.Object
   ↳ android.hardware.camera2.CameraMetadata<TKey>
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

The base class for camera controls and information.

This class defines the basic key/value map used for querying for camera characteristics or capture results, and for setting camera request parameters.

All instances of CameraMetadata are immutable. The list of keys with getKeys() never changes, nor do the values returned by any key with #get throughout the lifetime of the object.

Summary

Constants
int COLOR_CORRECTION_MODE_FAST

Color correction processing must not slow down capture rate relative to sensor raw output.

int COLOR_CORRECTION_MODE_HIGH_QUALITY

Color correction processing operates at improved quality but reduced capture rate (relative to sensor raw output).

int COLOR_CORRECTION_MODE_TRANSFORM_MATRIX

Use the android.colorCorrection.transform matrix and android.colorCorrection.gains to do color conversion.

int CONTROL_AE_ANTIBANDING_MODE_50HZ

The camera device will adjust exposure duration to avoid banding problems with 50Hz illumination sources.

int CONTROL_AE_ANTIBANDING_MODE_60HZ

The camera device will adjust exposure duration to avoid banding problems with 60Hz illumination sources.

int CONTROL_AE_ANTIBANDING_MODE_AUTO

The camera device will automatically adapt its antibanding routine to the current illumination conditions.

int CONTROL_AE_ANTIBANDING_MODE_OFF

The camera device will not adjust exposure duration to avoid banding problems.

int CONTROL_AE_MODE_OFF

The camera device's autoexposure routine is disabled.

int CONTROL_AE_MODE_ON

The camera device's autoexposure routine is active, with no flash control.

int CONTROL_AE_MODE_ON_ALWAYS_FLASH

Like ON, except that the camera device also controls the camera's flash unit, always firing it for still captures.

int CONTROL_AE_MODE_ON_AUTO_FLASH

Like ON, except that the camera device also controls the camera's flash unit, firing it in low-light conditions.

int CONTROL_AE_MODE_ON_AUTO_FLASH_REDEYE

Like ON_AUTO_FLASH, but with automatic red eye reduction.

int CONTROL_AE_PRECAPTURE_TRIGGER_IDLE

The trigger is idle.

int CONTROL_AE_PRECAPTURE_TRIGGER_START

The precapture metering sequence will be started by the camera device.

int CONTROL_AE_STATE_CONVERGED

AE has a good set of control values for the current scene.

int CONTROL_AE_STATE_FLASH_REQUIRED

AE has a good set of control values, but flash needs to be fired for good quality still capture.

int CONTROL_AE_STATE_INACTIVE

AE is off or recently reset.

int CONTROL_AE_STATE_LOCKED

AE has been locked.

int CONTROL_AE_STATE_PRECAPTURE

AE has been asked to do a precapture sequence and is currently executing it.

int CONTROL_AE_STATE_SEARCHING

AE doesn't yet have a good set of control values for the current scene.

int CONTROL_AF_MODE_AUTO

Basic automatic focus mode.

int CONTROL_AF_MODE_CONTINUOUS_PICTURE

In this mode, the AF algorithm modifies the lens position continually to attempt to provide a constantly-in-focus image stream.

int CONTROL_AF_MODE_CONTINUOUS_VIDEO

In this mode, the AF algorithm modifies the lens position continually to attempt to provide a constantly-in-focus image stream.

int CONTROL_AF_MODE_EDOF

Extended depth of field (digital focus) mode.

int CONTROL_AF_MODE_MACRO

Close-up focusing mode.

int CONTROL_AF_MODE_OFF

The auto-focus routine does not control the lens; android.lens.focusDistance is controlled by the application.

int CONTROL_AF_STATE_ACTIVE_SCAN

AF is performing an AF scan because it was triggered by AF trigger.

int CONTROL_AF_STATE_FOCUSED_LOCKED

AF believes it is focused correctly and has locked focus.

int CONTROL_AF_STATE_INACTIVE

AF is off or has not yet tried to scan/been asked to scan.

int CONTROL_AF_STATE_NOT_FOCUSED_LOCKED

AF has failed to focus successfully and has locked focus.

int CONTROL_AF_STATE_PASSIVE_FOCUSED

AF currently believes it is in focus, but may restart scanning at any time.

int CONTROL_AF_STATE_PASSIVE_SCAN

AF is currently performing an AF scan initiated the camera device in a continuous autofocus mode.

int CONTROL_AF_STATE_PASSIVE_UNFOCUSED

AF finished a passive scan without finding focus, and may restart scanning at any time.

int CONTROL_AF_TRIGGER_CANCEL

Autofocus will return to its initial state, and cancel any currently active trigger.

int CONTROL_AF_TRIGGER_IDLE

The trigger is idle.

int CONTROL_AF_TRIGGER_START

Autofocus will trigger now.

int CONTROL_AWB_MODE_AUTO

The camera device's auto-white balance routine is active.

int CONTROL_AWB_MODE_CLOUDY_DAYLIGHT

The camera device's auto-white balance routine is disabled; the camera device uses cloudy daylight light as the assumed scene illumination for white balance.

int CONTROL_AWB_MODE_DAYLIGHT

The camera device's auto-white balance routine is disabled; the camera device uses daylight light as the assumed scene illumination for white balance.

int CONTROL_AWB_MODE_FLUORESCENT

The camera device's auto-white balance routine is disabled; the camera device uses fluorescent light as the assumed scene illumination for white balance.

int CONTROL_AWB_MODE_INCANDESCENT

The camera device's auto-white balance routine is disabled; the camera device uses incandescent light as the assumed scene illumination for white balance.

int CONTROL_AWB_MODE_OFF

The camera device's auto-white balance routine is disabled.

int CONTROL_AWB_MODE_SHADE

The camera device's auto-white balance routine is disabled; the camera device uses shade light as the assumed scene illumination for white balance.

int CONTROL_AWB_MODE_TWILIGHT

The camera device's auto-white balance routine is disabled; the camera device uses twilight light as the assumed scene illumination for white balance.

int CONTROL_AWB_MODE_WARM_FLUORESCENT

The camera device's auto-white balance routine is disabled; the camera device uses warm fluorescent light as the assumed scene illumination for white balance.

int CONTROL_AWB_STATE_CONVERGED

AWB has a good set of control values for the current scene.

int CONTROL_AWB_STATE_INACTIVE

AWB is not in auto mode, or has not yet started metering.

int CONTROL_AWB_STATE_LOCKED

AWB has been locked.

int CONTROL_AWB_STATE_SEARCHING

AWB doesn't yet have a good set of control values for the current scene.

int CONTROL_CAPTURE_INTENT_CUSTOM

The goal of this request doesn't fall into the other categories.

int CONTROL_CAPTURE_INTENT_MANUAL

This request is for manual capture use case where the applications want to directly control the capture parameters.

int CONTROL_CAPTURE_INTENT_PREVIEW

This request is for a preview-like use case.

int CONTROL_CAPTURE_INTENT_STILL_CAPTURE

This request is for a still capture-type use case.

int CONTROL_CAPTURE_INTENT_VIDEO_RECORD

This request is for a video recording use case.

int CONTROL_CAPTURE_INTENT_VIDEO_SNAPSHOT

This request is for a video snapshot (still image while recording video) use case.

int CONTROL_CAPTURE_INTENT_ZERO_SHUTTER_LAG

This request is for a ZSL usecase; the application will stream full-resolution images and reprocess one or several later for a final capture.

int CONTROL_EFFECT_MODE_AQUA

An "aqua" effect where a blue hue is added to the image.

int CONTROL_EFFECT_MODE_BLACKBOARD

A "blackboard" effect where the image is typically displayed as regions of black, with white or grey details.

int CONTROL_EFFECT_MODE_MONO

A "monocolor" effect where the image is mapped into a single color.

int CONTROL_EFFECT_MODE_NEGATIVE

A "photo-negative" effect where the image's colors are inverted.

int CONTROL_EFFECT_MODE_OFF

No color effect will be applied.

int CONTROL_EFFECT_MODE_POSTERIZE

A "posterization" effect where the image uses discrete regions of tone rather than a continuous gradient of tones.

int CONTROL_EFFECT_MODE_SEPIA

A "sepia" effect where the image is mapped into warm gray, red, and brown tones.

int CONTROL_EFFECT_MODE_SOLARIZE

A "solarisation" effect (Sabattier effect) where the image is wholly or partially reversed in tone.

int CONTROL_EFFECT_MODE_WHITEBOARD

A "whiteboard" effect where the image is typically displayed as regions of white, with black or grey details.

int CONTROL_MODE_AUTO

Use settings for each individual 3A routine.

int CONTROL_MODE_OFF

Full application control of pipeline.

int CONTROL_MODE_OFF_KEEP_STATE

Same as OFF mode, except that this capture will not be used by camera device background auto-exposure, auto-white balance and auto-focus algorithms (3A) to update their statistics.

int CONTROL_MODE_USE_SCENE_MODE

Use a specific scene mode.

int CONTROL_SCENE_MODE_ACTION

Optimized for photos of quickly moving objects.

int CONTROL_SCENE_MODE_BARCODE

Optimized for accurately capturing a photo of barcode for use by camera applications that wish to read the barcode value.

int CONTROL_SCENE_MODE_BEACH

Optimized for bright, outdoor beach settings.

int CONTROL_SCENE_MODE_CANDLELIGHT

Optimized for dim settings where the main light source is a flame.

int CONTROL_SCENE_MODE_DISABLED

Indicates that no scene modes are set for a given capture request.

int CONTROL_SCENE_MODE_FACE_PRIORITY

If face detection support exists, use face detection data for auto-focus, auto-white balance, and auto-exposure routines.

int CONTROL_SCENE_MODE_FIREWORKS

Optimized for nighttime photos of fireworks.

int CONTROL_SCENE_MODE_LANDSCAPE

Optimized for photos of distant macroscopic objects.

int CONTROL_SCENE_MODE_NIGHT

Optimized for low-light settings.

int CONTROL_SCENE_MODE_NIGHT_PORTRAIT

Optimized for still photos of people in low-light settings.

int CONTROL_SCENE_MODE_PARTY

Optimized for dim, indoor settings with multiple moving people.

int CONTROL_SCENE_MODE_PORTRAIT

Optimized for still photos of people.

int CONTROL_SCENE_MODE_SNOW

Optimized for bright, outdoor settings containing snow.

int CONTROL_SCENE_MODE_SPORTS

Optimized for photos of quickly moving people.

int CONTROL_SCENE_MODE_STEADYPHOTO

Optimized to avoid blurry photos due to small amounts of device motion (for example: due to hand shake).

int CONTROL_SCENE_MODE_SUNSET

Optimized for scenes of the setting sun.

int CONTROL_SCENE_MODE_THEATRE

Optimized for dim, indoor settings where flash must remain off.

int CONTROL_VIDEO_STABILIZATION_MODE_OFF

Video stabilization is disabled.

int CONTROL_VIDEO_STABILIZATION_MODE_ON

Video stabilization is enabled.

int EDGE_MODE_FAST

Apply edge enhancement at a quality level that does not slow down frame rate relative to sensor output

int EDGE_MODE_HIGH_QUALITY

Apply high-quality edge enhancement, at a cost of reducing output frame rate.

int EDGE_MODE_OFF

No edge enhancement is applied.

int FLASH_MODE_OFF

Do not fire the flash for this capture.

int FLASH_MODE_SINGLE

If the flash is available and charged, fire flash for this capture.

int FLASH_MODE_TORCH

Transition flash to continuously on.

int FLASH_STATE_CHARGING

Flash is charging and cannot be fired.

int FLASH_STATE_FIRED

Flash fired for this capture.

int FLASH_STATE_PARTIAL

Flash partially illuminated this frame.

int FLASH_STATE_READY

Flash is ready to fire.

int FLASH_STATE_UNAVAILABLE

No flash on camera.

int HOT_PIXEL_MODE_FAST

Hot pixel correction is applied, without reducing frame rate relative to sensor raw output.

int HOT_PIXEL_MODE_HIGH_QUALITY

High-quality hot pixel correction is applied, at a cost of reducing frame rate relative to sensor raw output.

int HOT_PIXEL_MODE_OFF

No hot pixel correction is applied.

int INFO_SUPPORTED_HARDWARE_LEVEL_FULL

This camera device is capable of supporting advanced imaging applications.

int INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED

This camera device has only limited capabilities.

int LENS_FACING_BACK

The camera device faces the opposite direction as the device's screen.

int LENS_FACING_FRONT

The camera device faces the same direction as the device's screen.

int LENS_INFO_FOCUS_DISTANCE_CALIBRATION_APPROXIMATE

The lens focus distance is measured in diopters.

int LENS_INFO_FOCUS_DISTANCE_CALIBRATION_CALIBRATED

The lens focus distance is measured in diopters, and is calibrated.

int LENS_INFO_FOCUS_DISTANCE_CALIBRATION_UNCALIBRATED

The lens focus distance is not accurate, and the units used for android.lens.focusDistance do not correspond to any physical units.

int LENS_OPTICAL_STABILIZATION_MODE_OFF

Optical stabilization is unavailable.

int LENS_OPTICAL_STABILIZATION_MODE_ON

Optical stabilization is enabled.

int LENS_STATE_MOVING

One or several of the lens parameters (android.lens.focalLength, android.lens.focusDistance, android.lens.filterDensity or android.lens.aperture) is currently changing.

int LENS_STATE_STATIONARY

The lens parameters (android.lens.focalLength, android.lens.focusDistance, android.lens.filterDensity and android.lens.aperture) are not changing.

int NOISE_REDUCTION_MODE_FAST

Noise reduction is applied without reducing frame rate relative to sensor output.

int NOISE_REDUCTION_MODE_HIGH_QUALITY

High-quality noise reduction is applied, at the cost of reducing frame rate relative to sensor output.

int NOISE_REDUCTION_MODE_OFF

No noise reduction is applied.

int REQUEST_AVAILABLE_CAPABILITIES_DNG

The camera device supports outputting RAW buffers that can be saved offline into a DNG format.

int REQUEST_AVAILABLE_CAPABILITIES_MANUAL_POST_PROCESSING

The camera device post-processing stages can be manually controlled.

int REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR

The camera device can be manually controlled (3A algorithms such as auto-exposure, and auto-focus can be bypassed).

int SCALER_CROPPING_TYPE_CENTER_ONLY

The camera device only supports centered crop regions.

int SCALER_CROPPING_TYPE_FREEFORM

The camera device supports arbitrarily chosen crop regions.

int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_BGGR
int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_GBRG
int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_GRBG
int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGB

Sensor is not Bayer; output has 3 16-bit values for each pixel, instead of just 1 16-bit value per pixel.

int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGGB
int SENSOR_REFERENCE_ILLUMINANT1_CLOUDY_WEATHER
int SENSOR_REFERENCE_ILLUMINANT1_COOL_WHITE_FLUORESCENT

W 3900 - 4500K

int SENSOR_REFERENCE_ILLUMINANT1_D50
int SENSOR_REFERENCE_ILLUMINANT1_D55
int SENSOR_REFERENCE_ILLUMINANT1_D65
int SENSOR_REFERENCE_ILLUMINANT1_D75
int SENSOR_REFERENCE_ILLUMINANT1_DAYLIGHT
int SENSOR_REFERENCE_ILLUMINANT1_DAYLIGHT_FLUORESCENT

D 5700 - 7100K

int SENSOR_REFERENCE_ILLUMINANT1_DAY_WHITE_FLUORESCENT

N 4600 - 5400K

int SENSOR_REFERENCE_ILLUMINANT1_FINE_WEATHER
int SENSOR_REFERENCE_ILLUMINANT1_FLASH
int SENSOR_REFERENCE_ILLUMINANT1_FLUORESCENT
int SENSOR_REFERENCE_ILLUMINANT1_ISO_STUDIO_TUNGSTEN
int SENSOR_REFERENCE_ILLUMINANT1_SHADE
int SENSOR_REFERENCE_ILLUMINANT1_STANDARD_A
int SENSOR_REFERENCE_ILLUMINANT1_STANDARD_B
int SENSOR_REFERENCE_ILLUMINANT1_STANDARD_C
int SENSOR_REFERENCE_ILLUMINANT1_TUNGSTEN

Incandescent light

int SENSOR_REFERENCE_ILLUMINANT1_WHITE_FLUORESCENT

WW 3200 - 3700K

int SENSOR_TEST_PATTERN_MODE_COLOR_BARS

All pixel data is replaced with an 8-bar color pattern.

int SENSOR_TEST_PATTERN_MODE_COLOR_BARS_FADE_TO_GRAY

The test pattern is similar to COLOR_BARS, except that each bar should start at its specified color at the top, and fade to gray at the bottom.

int SENSOR_TEST_PATTERN_MODE_CUSTOM1

The first custom test pattern.

int SENSOR_TEST_PATTERN_MODE_OFF

No test pattern mode is used, and the camera device returns captures from the image sensor.

int SENSOR_TEST_PATTERN_MODE_PN9

All pixel data is replaced by a pseudo-random sequence generated from a PN9 512-bit sequence (typically implemented in hardware with a linear feedback shift register).

int SENSOR_TEST_PATTERN_MODE_SOLID_COLOR

Each pixel in [R, G_even, G_odd, B] is replaced by its respective color channel provided in android.sensor.testPatternData.

int SHADING_MODE_FAST

Apply lens shading corrections, without slowing frame rate relative to sensor raw output

int SHADING_MODE_HIGH_QUALITY

Apply high-quality lens shading correction, at the cost of reduced frame rate.

int SHADING_MODE_OFF

No lens shading correction is applied.

int STATISTICS_FACE_DETECT_MODE_FULL

Return all face metadata.

int STATISTICS_FACE_DETECT_MODE_OFF

Do not include face detection statistics in capture results.

int STATISTICS_FACE_DETECT_MODE_SIMPLE

Return face rectangle and confidence values only.

int STATISTICS_LENS_SHADING_MAP_MODE_OFF

Do not include a lens shading map in the capture result.

int STATISTICS_LENS_SHADING_MAP_MODE_ON

Include a lens shading map in the capture result.

int STATISTICS_SCENE_FLICKER_50HZ

The camera device detects illumination flickering at 50Hz in the current scene.

int STATISTICS_SCENE_FLICKER_60HZ

The camera device detects illumination flickering at 60Hz in the current scene.

int STATISTICS_SCENE_FLICKER_NONE

The camera device does not detect any flickering illumination in the current scene.

int SYNC_MAX_LATENCY_PER_FRAME_CONTROL

Every frame has the requests immediately applied.

int SYNC_MAX_LATENCY_UNKNOWN

Each new frame has some subset (potentially the entire set) of the past requests applied to the camera settings.

int TONEMAP_MODE_CONTRAST_CURVE

Use the tone mapping curve specified in the android.tonemap.curve* entries.

int TONEMAP_MODE_FAST

Advanced gamma mapping and color enhancement may be applied, without reducing frame rate compared to raw sensor output.

int TONEMAP_MODE_HIGH_QUALITY

High-quality gamma mapping and color enhancement will be applied, at the cost of reduced frame rate compared to raw sensor output.

Public Methods
List<TKey> getKeys()
Returns a list of the keys contained in this map.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int COLOR_CORRECTION_MODE_FAST

Color correction processing must not slow down capture rate relative to sensor raw output.

Advanced white balance adjustments above and beyond the specified white balance pipeline may be applied.

If AWB is enabled with android.control.awbMode != OFF, then the camera device uses the last frame's AWB values (or defaults if AWB has never been run).

Constant Value: 1 (0x00000001)

public static final int COLOR_CORRECTION_MODE_HIGH_QUALITY

Color correction processing operates at improved quality but reduced capture rate (relative to sensor raw output).

Advanced white balance adjustments above and beyond the specified white balance pipeline may be applied.

If AWB is enabled with android.control.awbMode != OFF, then the camera device uses the last frame's AWB values (or defaults if AWB has never been run).

Constant Value: 2 (0x00000002)

public static final int COLOR_CORRECTION_MODE_TRANSFORM_MATRIX

Use the android.colorCorrection.transform matrix and android.colorCorrection.gains to do color conversion.

All advanced white balance adjustments (not specified by our white balance pipeline) must be disabled.

If AWB is enabled with android.control.awbMode != OFF, then TRANSFORM_MATRIX is ignored. The camera device will override this value to either FAST or HIGH_QUALITY.

Constant Value: 0 (0x00000000)

public static final int CONTROL_AE_ANTIBANDING_MODE_50HZ

The camera device will adjust exposure duration to avoid banding problems with 50Hz illumination sources.

Constant Value: 1 (0x00000001)

public static final int CONTROL_AE_ANTIBANDING_MODE_60HZ

The camera device will adjust exposure duration to avoid banding problems with 60Hz illumination sources.

Constant Value: 2 (0x00000002)

public static final int CONTROL_AE_ANTIBANDING_MODE_AUTO

The camera device will automatically adapt its antibanding routine to the current illumination conditions. This is the default.

Constant Value: 3 (0x00000003)

public static final int CONTROL_AE_ANTIBANDING_MODE_OFF

The camera device will not adjust exposure duration to avoid banding problems.

Constant Value: 0 (0x00000000)

public static final int CONTROL_AE_MODE_OFF

The camera device's autoexposure routine is disabled.

The application-selected android.sensor.exposureTime, android.sensor.sensitivity and android.sensor.frameDuration are used by the camera device, along with android.flash.* fields, if there's a flash unit for this camera device.

Constant Value: 0 (0x00000000)

public static final int CONTROL_AE_MODE_ON

The camera device's autoexposure routine is active, with no flash control.

The application's values for android.sensor.exposureTime, android.sensor.sensitivity, and android.sensor.frameDuration are ignored. The application has control over the various android.flash.* fields.

Constant Value: 1 (0x00000001)

public static final int CONTROL_AE_MODE_ON_ALWAYS_FLASH

Like ON, except that the camera device also controls the camera's flash unit, always firing it for still captures.

The flash may be fired during a precapture sequence (triggered by android.control.aePrecaptureTrigger) and will always be fired for captures for which the android.control.captureIntent field is set to STILL_CAPTURE

Constant Value: 3 (0x00000003)

public static final int CONTROL_AE_MODE_ON_AUTO_FLASH

Like ON, except that the camera device also controls the camera's flash unit, firing it in low-light conditions.

The flash may be fired during a precapture sequence (triggered by android.control.aePrecaptureTrigger) and may be fired for captures for which the android.control.captureIntent field is set to STILL_CAPTURE

Constant Value: 2 (0x00000002)

public static final int CONTROL_AE_MODE_ON_AUTO_FLASH_REDEYE

Like ON_AUTO_FLASH, but with automatic red eye reduction.

If deemed necessary by the camera device, a red eye reduction flash will fire during the precapture sequence.

See Also
Constant Value: 4 (0x00000004)

public static final int CONTROL_AE_PRECAPTURE_TRIGGER_IDLE

The trigger is idle.

Constant Value: 0 (0x00000000)

public static final int CONTROL_AE_PRECAPTURE_TRIGGER_START

The precapture metering sequence will be started by the camera device.

The exact effect of the precapture trigger depends on the current AE mode and state.

Constant Value: 1 (0x00000001)

public static final int CONTROL_AE_STATE_CONVERGED

AE has a good set of control values for the current scene.

See Also
Constant Value: 2 (0x00000002)

public static final int CONTROL_AE_STATE_FLASH_REQUIRED

AE has a good set of control values, but flash needs to be fired for good quality still capture.

See Also
Constant Value: 4 (0x00000004)

public static final int CONTROL_AE_STATE_INACTIVE

AE is off or recently reset.

When a camera device is opened, it starts in this state. This is a transient state, the camera device may skip reporting this state in capture result.

See Also
Constant Value: 0 (0x00000000)

public static final int CONTROL_AE_STATE_LOCKED

AE has been locked.

See Also
Constant Value: 3 (0x00000003)

public static final int CONTROL_AE_STATE_PRECAPTURE

AE has been asked to do a precapture sequence and is currently executing it.

Precapture can be triggered through setting android.control.aePrecaptureTrigger to START.

Once PRECAPTURE completes, AE will transition to CONVERGED or FLASH_REQUIRED as appropriate. This is a transient state, the camera device may skip reporting this state in capture result.

Constant Value: 5 (0x00000005)

public static final int CONTROL_AE_STATE_SEARCHING

AE doesn't yet have a good set of control values for the current scene.

This is a transient state, the camera device may skip reporting this state in capture result.

See Also
Constant Value: 1 (0x00000001)

public static final int CONTROL_AF_MODE_AUTO

Basic automatic focus mode.

In this mode, the lens does not move unless the autofocus trigger action is called. When that trigger is activated, AF will transition to ACTIVE_SCAN, then to the outcome of the scan (FOCUSED or NOT_FOCUSED).

Always supported if lens is not fixed focus.

Use android.lens.info.minimumFocusDistance to determine if lens is fixed-focus.

Triggering AF_CANCEL resets the lens position to default, and sets the AF state to INACTIVE.

Constant Value: 1 (0x00000001)

public static final int CONTROL_AF_MODE_CONTINUOUS_PICTURE

In this mode, the AF algorithm modifies the lens position continually to attempt to provide a constantly-in-focus image stream.

The focusing behavior should be suitable for still image capture; typically this means focusing as fast as possible. When the AF trigger is not involved, the AF algorithm should start in INACTIVE state, and then transition into PASSIVE_SCAN and PASSIVE_FOCUSED states as appropriate as it attempts to maintain focus. When the AF trigger is activated, the algorithm should finish its PASSIVE_SCAN if active, and then transition into AF_FOCUSED or AF_NOT_FOCUSED as appropriate, and lock the lens position until a cancel AF trigger is received.

When the AF cancel trigger is activated, the algorithm should transition back to INACTIVE and then act as if it has just been started.

See Also
Constant Value: 4 (0x00000004)

public static final int CONTROL_AF_MODE_CONTINUOUS_VIDEO

In this mode, the AF algorithm modifies the lens position continually to attempt to provide a constantly-in-focus image stream.

The focusing behavior should be suitable for good quality video recording; typically this means slower focus movement and no overshoots. When the AF trigger is not involved, the AF algorithm should start in INACTIVE state, and then transition into PASSIVE_SCAN and PASSIVE_FOCUSED states as appropriate. When the AF trigger is activated, the algorithm should immediately transition into AF_FOCUSED or AF_NOT_FOCUSED as appropriate, and lock the lens position until a cancel AF trigger is received.

Once cancel is received, the algorithm should transition back to INACTIVE and resume passive scan. Note that this behavior is not identical to CONTINUOUS_PICTURE, since an ongoing PASSIVE_SCAN must immediately be canceled.

See Also
Constant Value: 3 (0x00000003)

public static final int CONTROL_AF_MODE_EDOF

Extended depth of field (digital focus) mode.

The camera device will produce images with an extended depth of field automatically; no special focusing operations need to be done before taking a picture.

AF triggers are ignored, and the AF state will always be INACTIVE.

See Also
Constant Value: 5 (0x00000005)

public static final int CONTROL_AF_MODE_MACRO

Close-up focusing mode.

In this mode, the lens does not move unless the autofocus trigger action is called. When that trigger is activated, AF will transition to ACTIVE_SCAN, then to the outcome of the scan (FOCUSED or NOT_FOCUSED). This mode is optimized for focusing on objects very close to the camera.

When that trigger is activated, AF will transition to ACTIVE_SCAN, then to the outcome of the scan (FOCUSED or NOT_FOCUSED). Triggering cancel AF resets the lens position to default, and sets the AF state to INACTIVE.

See Also
Constant Value: 2 (0x00000002)

public static final int CONTROL_AF_MODE_OFF

The auto-focus routine does not control the lens; android.lens.focusDistance is controlled by the application.

Constant Value: 0 (0x00000000)

public static final int CONTROL_AF_STATE_ACTIVE_SCAN

AF is performing an AF scan because it was triggered by AF trigger.

Only used by AUTO or MACRO AF modes. This is a transient state, the camera device may skip reporting this state in capture result.

See Also
Constant Value: 3 (0x00000003)

public static final int CONTROL_AF_STATE_FOCUSED_LOCKED

AF believes it is focused correctly and has locked focus.

This state is reached only after an explicit START AF trigger has been sent (android.control.afTrigger), when good focus has been obtained.

The lens will remain stationary until the AF mode (android.control.afMode) is changed or a new AF trigger is sent to the camera device (android.control.afTrigger).

Constant Value: 4 (0x00000004)

public static final int CONTROL_AF_STATE_INACTIVE

AF is off or has not yet tried to scan/been asked to scan.

When a camera device is opened, it starts in this state. This is a transient state, the camera device may skip reporting this state in capture result.

See Also
Constant Value: 0 (0x00000000)

public static final int CONTROL_AF_STATE_NOT_FOCUSED_LOCKED

AF has failed to focus successfully and has locked focus.

This state is reached only after an explicit START AF trigger has been sent (android.control.afTrigger), when good focus cannot be obtained.

The lens will remain stationary until the AF mode (android.control.afMode) is changed or a new AF trigger is sent to the camera device (android.control.afTrigger).

Constant Value: 5 (0x00000005)

public static final int CONTROL_AF_STATE_PASSIVE_FOCUSED

AF currently believes it is in focus, but may restart scanning at any time.

Only used by CONTINUOUS_* AF modes. This is a transient state, the camera device may skip reporting this state in capture result.

See Also
Constant Value: 2 (0x00000002)

public static final int CONTROL_AF_STATE_PASSIVE_SCAN

AF is currently performing an AF scan initiated the camera device in a continuous autofocus mode.

Only used by CONTINUOUS_* AF modes. This is a transient state, the camera device may skip reporting this state in capture result.

See Also
Constant Value: 1 (0x00000001)

public static final int CONTROL_AF_STATE_PASSIVE_UNFOCUSED

AF finished a passive scan without finding focus, and may restart scanning at any time.

Only used by CONTINUOUS_* AF modes. This is a transient state, the camera device may skip reporting this state in capture result.

See Also
Constant Value: 6 (0x00000006)

public static final int CONTROL_AF_TRIGGER_CANCEL

Autofocus will return to its initial state, and cancel any currently active trigger.

Constant Value: 2 (0x00000002)

public static final int CONTROL_AF_TRIGGER_IDLE

The trigger is idle.

Constant Value: 0 (0x00000000)

public static final int CONTROL_AF_TRIGGER_START

Autofocus will trigger now.

Constant Value: 1 (0x00000001)

public static final int CONTROL_AWB_MODE_AUTO

The camera device's auto-white balance routine is active.

The application's values for android.colorCorrection.transform and android.colorCorrection.gains are ignored. For devices that support the MANUAL_POST_PROCESSING capability, the values used by the camera device for the transform and gains will be available in the capture result for this request.

Constant Value: 1 (0x00000001)

public static final int CONTROL_AWB_MODE_CLOUDY_DAYLIGHT

The camera device's auto-white balance routine is disabled; the camera device uses cloudy daylight light as the assumed scene illumination for white balance.

The application's values for android.colorCorrection.transform and android.colorCorrection.gains are ignored. For devices that support the MANUAL_POST_PROCESSING capability, the values used by the camera device for the transform and gains will be available in the capture result for this request.

Constant Value: 6 (0x00000006)

public static final int CONTROL_AWB_MODE_DAYLIGHT

The camera device's auto-white balance routine is disabled; the camera device uses daylight light as the assumed scene illumination for white balance.

While the exact white balance transforms are up to the camera device, they will approximately match the CIE standard illuminant D65.

The application's values for android.colorCorrection.transform and android.colorCorrection.gains are ignored. For devices that support the MANUAL_POST_PROCESSING capability, the values used by the camera device for the transform and gains will be available in the capture result for this request.

Constant Value: 5 (0x00000005)

public static final int CONTROL_AWB_MODE_FLUORESCENT

The camera device's auto-white balance routine is disabled; the camera device uses fluorescent light as the assumed scene illumination for white balance.

While the exact white balance transforms are up to the camera device, they will approximately match the CIE standard illuminant F2.

The application's values for android.colorCorrection.transform and android.colorCorrection.gains are ignored. For devices that support the MANUAL_POST_PROCESSING capability, the values used by the camera device for the transform and gains will be available in the capture result for this request.

Constant Value: 3 (0x00000003)

public static final int CONTROL_AWB_MODE_INCANDESCENT

The camera device's auto-white balance routine is disabled; the camera device uses incandescent light as the assumed scene illumination for white balance.

While the exact white balance transforms are up to the camera device, they will approximately match the CIE standard illuminant A.

The application's values for android.colorCorrection.transform and android.colorCorrection.gains are ignored. For devices that support the MANUAL_POST_PROCESSING capability, the values used by the camera device for the transform and gains will be available in the capture result for this request.

Constant Value: 2 (0x00000002)

public static final int CONTROL_AWB_MODE_OFF

The camera device's auto-white balance routine is disabled.

The application-selected color transform matrix (android.colorCorrection.transform) and gains (android.colorCorrection.gains) are used by the camera device for manual white balance control.

Constant Value: 0 (0x00000000)

public static final int CONTROL_AWB_MODE_SHADE

The camera device's auto-white balance routine is disabled; the camera device uses shade light as the assumed scene illumination for white balance.

The application's values for android.colorCorrection.transform and android.colorCorrection.gains are ignored. For devices that support the MANUAL_POST_PROCESSING capability, the values used by the camera device for the transform and gains will be available in the capture result for this request.

Constant Value: 8 (0x00000008)

public static final int CONTROL_AWB_MODE_TWILIGHT

The camera device's auto-white balance routine is disabled; the camera device uses twilight light as the assumed scene illumination for white balance.

The application's values for android.colorCorrection.transform and android.colorCorrection.gains are ignored. For devices that support the MANUAL_POST_PROCESSING capability, the values used by the camera device for the transform and gains will be available in the capture result for this request.

Constant Value: 7 (0x00000007)

public static final int CONTROL_AWB_MODE_WARM_FLUORESCENT

The camera device's auto-white balance routine is disabled; the camera device uses warm fluorescent light as the assumed scene illumination for white balance.

While the exact white balance transforms are up to the camera device, they will approximately match the CIE standard illuminant F4.

The application's values for android.colorCorrection.transform and android.colorCorrection.gains are ignored. For devices that support the MANUAL_POST_PROCESSING capability, the values used by the camera device for the transform and gains will be available in the capture result for this request.

Constant Value: 4 (0x00000004)

public static final int CONTROL_AWB_STATE_CONVERGED

AWB has a good set of control values for the current scene.

Constant Value: 2 (0x00000002)

public static final int CONTROL_AWB_STATE_INACTIVE

AWB is not in auto mode, or has not yet started metering.

When a camera device is opened, it starts in this state. This is a transient state, the camera device may skip reporting this state in capture result.

Constant Value: 0 (0x00000000)

public static final int CONTROL_AWB_STATE_LOCKED

AWB has been locked.

Constant Value: 3 (0x00000003)

public static final int CONTROL_AWB_STATE_SEARCHING

AWB doesn't yet have a good set of control values for the current scene.

This is a transient state, the camera device may skip reporting this state in capture result.

Constant Value: 1 (0x00000001)

public static final int CONTROL_CAPTURE_INTENT_CUSTOM

The goal of this request doesn't fall into the other categories. The camera device will default to preview-like behavior.

Constant Value: 0 (0x00000000)

public static final int CONTROL_CAPTURE_INTENT_MANUAL

This request is for manual capture use case where the applications want to directly control the capture parameters.

For example, the application may wish to manually control android.sensor.exposureTime, android.sensor.sensitivity, etc.

Constant Value: 6 (0x00000006)

public static final int CONTROL_CAPTURE_INTENT_PREVIEW

This request is for a preview-like use case.

The precapture trigger may be used to start off a metering w/flash sequence.

Constant Value: 1 (0x00000001)

public static final int CONTROL_CAPTURE_INTENT_STILL_CAPTURE

This request is for a still capture-type use case.

If the flash unit is under automatic control, it may fire as needed.

Constant Value: 2 (0x00000002)

public static final int CONTROL_CAPTURE_INTENT_VIDEO_RECORD

This request is for a video recording use case.

Constant Value: 3 (0x00000003)

public static final int CONTROL_CAPTURE_INTENT_VIDEO_SNAPSHOT

This request is for a video snapshot (still image while recording video) use case.

The camera device should take the highest-quality image possible (given the other settings) without disrupting the frame rate of video recording.

Constant Value: 4 (0x00000004)

public static final int CONTROL_CAPTURE_INTENT_ZERO_SHUTTER_LAG

This request is for a ZSL usecase; the application will stream full-resolution images and reprocess one or several later for a final capture.

Constant Value: 5 (0x00000005)

public static final int CONTROL_EFFECT_MODE_AQUA

An "aqua" effect where a blue hue is added to the image.

Constant Value: 8 (0x00000008)

public static final int CONTROL_EFFECT_MODE_BLACKBOARD

A "blackboard" effect where the image is typically displayed as regions of black, with white or grey details.

Constant Value: 7 (0x00000007)

public static final int CONTROL_EFFECT_MODE_MONO

A "monocolor" effect where the image is mapped into a single color.

This will typically be grayscale.

Constant Value: 1 (0x00000001)

public static final int CONTROL_EFFECT_MODE_NEGATIVE

A "photo-negative" effect where the image's colors are inverted.

Constant Value: 2 (0x00000002)

public static final int CONTROL_EFFECT_MODE_OFF

No color effect will be applied.

Constant Value: 0 (0x00000000)

public static final int CONTROL_EFFECT_MODE_POSTERIZE

A "posterization" effect where the image uses discrete regions of tone rather than a continuous gradient of tones.

Constant Value: 5 (0x00000005)

public static final int CONTROL_EFFECT_MODE_SEPIA

A "sepia" effect where the image is mapped into warm gray, red, and brown tones.

Constant Value: 4 (0x00000004)

public static final int CONTROL_EFFECT_MODE_SOLARIZE

A "solarisation" effect (Sabattier effect) where the image is wholly or partially reversed in tone.

Constant Value: 3 (0x00000003)

public static final int CONTROL_EFFECT_MODE_WHITEBOARD

A "whiteboard" effect where the image is typically displayed as regions of white, with black or grey details.

Constant Value: 6 (0x00000006)

public static final int CONTROL_MODE_AUTO

Use settings for each individual 3A routine.

Manual control of capture parameters is disabled. All controls in android.control.* besides sceneMode take effect.

See Also
Constant Value: 1 (0x00000001)

public static final int CONTROL_MODE_OFF

Full application control of pipeline.

All control by the device's metering and focusing (3A) routines is disabled, and no other settings in android.control.* have any effect, except that android.control.captureIntent may be used by the camera device to select post-processing values for processing blocks that do not allow for manual control, or are not exposed by the camera API.

However, the camera device's 3A routines may continue to collect statistics and update their internal state so that when control is switched to AUTO mode, good control values can be immediately applied.

Constant Value: 0 (0x00000000)

public static final int CONTROL_MODE_OFF_KEEP_STATE

Same as OFF mode, except that this capture will not be used by camera device background auto-exposure, auto-white balance and auto-focus algorithms (3A) to update their statistics.

Specifically, the 3A routines are locked to the last values set from a request with AUTO, OFF, or USE_SCENE_MODE, and any statistics or state updates collected from manual captures with OFF_KEEP_STATE will be discarded by the camera device.

See Also
Constant Value: 3 (0x00000003)

public static final int CONTROL_MODE_USE_SCENE_MODE

Use a specific scene mode.

Enabling this disables control.aeMode, control.awbMode and control.afMode controls; the camera device will ignore those settings while USE_SCENE_MODE is active (except for FACE_PRIORITY scene mode). Other control entries are still active. This setting can only be used if scene mode is supported (i.e. android.control.availableSceneModes contain some modes other than DISABLED).

Constant Value: 2 (0x00000002)

public static final int CONTROL_SCENE_MODE_ACTION

Optimized for photos of quickly moving objects.

Similar to SPORTS.

Constant Value: 2 (0x00000002)

public static final int CONTROL_SCENE_MODE_BARCODE

Optimized for accurately capturing a photo of barcode for use by camera applications that wish to read the barcode value.

Constant Value: 16 (0x00000010)

public static final int CONTROL_SCENE_MODE_BEACH

Optimized for bright, outdoor beach settings.

Constant Value: 8 (0x00000008)

public static final int CONTROL_SCENE_MODE_CANDLELIGHT

Optimized for dim settings where the main light source is a flame.

Constant Value: 15 (0x0000000f)

public static final int CONTROL_SCENE_MODE_DISABLED

Indicates that no scene modes are set for a given capture request.

Constant Value: 0 (0x00000000)

public static final int CONTROL_SCENE_MODE_FACE_PRIORITY

If face detection support exists, use face detection data for auto-focus, auto-white balance, and auto-exposure routines.

If face detection statistics are disabled (i.e. android.statistics.faceDetectMode is set to OFF), this should still operate correctly (but will not return face detection statistics to the framework).

Unlike the other scene modes, android.control.aeMode, android.control.awbMode, and android.control.afMode remain active when FACE_PRIORITY is set.

Constant Value: 1 (0x00000001)

public static final int CONTROL_SCENE_MODE_FIREWORKS

Optimized for nighttime photos of fireworks.

Constant Value: 12 (0x0000000c)

public static final int CONTROL_SCENE_MODE_LANDSCAPE

Optimized for photos of distant macroscopic objects.

Constant Value: 4 (0x00000004)

public static final int CONTROL_SCENE_MODE_NIGHT

Optimized for low-light settings.

Constant Value: 5 (0x00000005)

public static final int CONTROL_SCENE_MODE_NIGHT_PORTRAIT

Optimized for still photos of people in low-light settings.

Constant Value: 6 (0x00000006)

public static final int CONTROL_SCENE_MODE_PARTY

Optimized for dim, indoor settings with multiple moving people.

Constant Value: 14 (0x0000000e)

public static final int CONTROL_SCENE_MODE_PORTRAIT

Optimized for still photos of people.

Constant Value: 3 (0x00000003)

public static final int CONTROL_SCENE_MODE_SNOW

Optimized for bright, outdoor settings containing snow.

Constant Value: 9 (0x00000009)

public static final int CONTROL_SCENE_MODE_SPORTS

Optimized for photos of quickly moving people.

Similar to ACTION.

Constant Value: 13 (0x0000000d)

public static final int CONTROL_SCENE_MODE_STEADYPHOTO

Optimized to avoid blurry photos due to small amounts of device motion (for example: due to hand shake).

Constant Value: 11 (0x0000000b)

public static final int CONTROL_SCENE_MODE_SUNSET

Optimized for scenes of the setting sun.

Constant Value: 10 (0x0000000a)

public static final int CONTROL_SCENE_MODE_THEATRE

Optimized for dim, indoor settings where flash must remain off.

Constant Value: 7 (0x00000007)

public static final int CONTROL_VIDEO_STABILIZATION_MODE_OFF

Video stabilization is disabled.

Constant Value: 0 (0x00000000)

public static final int CONTROL_VIDEO_STABILIZATION_MODE_ON

Video stabilization is enabled.

Constant Value: 1 (0x00000001)

public static final int EDGE_MODE_FAST

Apply edge enhancement at a quality level that does not slow down frame rate relative to sensor output

See Also
Constant Value: 1 (0x00000001)

public static final int EDGE_MODE_HIGH_QUALITY

Apply high-quality edge enhancement, at a cost of reducing output frame rate.

See Also
Constant Value: 2 (0x00000002)

public static final int EDGE_MODE_OFF

No edge enhancement is applied.

See Also
Constant Value: 0 (0x00000000)

public static final int FLASH_MODE_OFF

Do not fire the flash for this capture.

See Also
Constant Value: 0 (0x00000000)

public static final int FLASH_MODE_SINGLE

If the flash is available and charged, fire flash for this capture.

See Also
Constant Value: 1 (0x00000001)

public static final int FLASH_MODE_TORCH

Transition flash to continuously on.

See Also
Constant Value: 2 (0x00000002)

public static final int FLASH_STATE_CHARGING

Flash is charging and cannot be fired.

See Also
Constant Value: 1 (0x00000001)

public static final int FLASH_STATE_FIRED

Flash fired for this capture.

See Also
Constant Value: 3 (0x00000003)

public static final int FLASH_STATE_PARTIAL

Flash partially illuminated this frame.

This is usually due to the next or previous frame having the flash fire, and the flash spilling into this capture due to hardware limitations.

See Also
Constant Value: 4 (0x00000004)

public static final int FLASH_STATE_READY

Flash is ready to fire.

See Also
Constant Value: 2 (0x00000002)

public static final int FLASH_STATE_UNAVAILABLE

No flash on camera.

See Also
Constant Value: 0 (0x00000000)

public static final int HOT_PIXEL_MODE_FAST

Hot pixel correction is applied, without reducing frame rate relative to sensor raw output.

The hotpixel map may be returned in android.statistics.hotPixelMap.

Constant Value: 1 (0x00000001)

public static final int HOT_PIXEL_MODE_HIGH_QUALITY

High-quality hot pixel correction is applied, at a cost of reducing frame rate relative to sensor raw output.

The hotpixel map may be returned in android.statistics.hotPixelMap.

Constant Value: 2 (0x00000002)

public static final int HOT_PIXEL_MODE_OFF

No hot pixel correction is applied.

The frame rate must not be reduced relative to sensor raw output for this option.

The hotpixel map may be returned in android.statistics.hotPixelMap.

Constant Value: 0 (0x00000000)

public static final int INFO_SUPPORTED_HARDWARE_LEVEL_FULL

This camera device is capable of supporting advanced imaging applications.

Constant Value: 1 (0x00000001)

public static final int INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED

This camera device has only limited capabilities.

Constant Value: 0 (0x00000000)

public static final int LENS_FACING_BACK

The camera device faces the opposite direction as the device's screen.

See Also
Constant Value: 1 (0x00000001)

public static final int LENS_FACING_FRONT

The camera device faces the same direction as the device's screen.

See Also
Constant Value: 0 (0x00000000)

public static final int LENS_INFO_FOCUS_DISTANCE_CALIBRATION_APPROXIMATE

The lens focus distance is measured in diopters.

However, setting the lens to the same focus distance on separate occasions may result in a different real focus distance, depending on factors such as the orientation of the device, the age of the focusing mechanism, and the device temperature.

Constant Value: 1 (0x00000001)

public static final int LENS_INFO_FOCUS_DISTANCE_CALIBRATION_CALIBRATED

The lens focus distance is measured in diopters, and is calibrated.

The lens mechanism is calibrated so that setting the same focus distance is repeatable on multiple occasions with good accuracy, and the focus distance corresponds to the real physical distance to the plane of best focus.

Constant Value: 2 (0x00000002)

public static final int LENS_INFO_FOCUS_DISTANCE_CALIBRATION_UNCALIBRATED

The lens focus distance is not accurate, and the units used for android.lens.focusDistance do not correspond to any physical units.

Setting the lens to the same focus distance on separate occasions may result in a different real focus distance, depending on factors such as the orientation of the device, the age of the focusing mechanism, and the device temperature. The focus distance value will still be in the range of [0, android.lens.info.minimumFocusDistance], where 0 represents the farthest focus.

Constant Value: 0 (0x00000000)

public static final int LENS_OPTICAL_STABILIZATION_MODE_OFF

Optical stabilization is unavailable.

Constant Value: 0 (0x00000000)

public static final int LENS_OPTICAL_STABILIZATION_MODE_ON

Optical stabilization is enabled.

Constant Value: 1 (0x00000001)

public static final int LENS_STATE_MOVING

public static final int LENS_STATE_STATIONARY

public static final int NOISE_REDUCTION_MODE_FAST

Noise reduction is applied without reducing frame rate relative to sensor output.

Constant Value: 1 (0x00000001)

public static final int NOISE_REDUCTION_MODE_HIGH_QUALITY

High-quality noise reduction is applied, at the cost of reducing frame rate relative to sensor output.

Constant Value: 2 (0x00000002)

public static final int NOISE_REDUCTION_MODE_OFF

No noise reduction is applied.

Constant Value: 0 (0x00000000)

public static final int REQUEST_AVAILABLE_CAPABILITIES_DNG

The camera device supports outputting RAW buffers that can be saved offline into a DNG format. It can reprocess DNG files (produced from the same camera device) back into YUV.

  • At least one input stream can be used.
  • RAW16 is supported as output/input format.
  • RAW16 is reprocessable into both YUV_420_888 and JPEG formats.
  • The maximum available resolution for RAW16 streams (both input/output) will match either the value in android.sensor.info.pixelArraySize or android.sensor.info.activeArraySize.
  • All DNG-related optional metadata entries are provided by the camera device.

Constant Value: 5 (0x00000005)

public static final int REQUEST_AVAILABLE_CAPABILITIES_MANUAL_POST_PROCESSING

The camera device post-processing stages can be manually controlled. The camera device supports basic manual control of the image post-processing stages. This means the following controls are guaranteed to be supported:

If auto white balance is enabled, then the camera device will accurately report the values applied by AWB in the result.

A given camera device may also support additional post-processing controls, but this capability only covers the above list of controls.

Constant Value: 3 (0x00000003)

public static final int REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR

The camera device can be manually controlled (3A algorithms such as auto-exposure, and auto-focus can be bypassed). The camera device supports basic manual control of the sensor image acquisition related stages. This means the following controls are guaranteed to be supported:

If any of the above 3A algorithms are enabled, then the camera device will accurately report the values applied by 3A in the result.

A given camera device may also support additional manual sensor controls, but this capability only covers the above list of controls.

Constant Value: 2 (0x00000002)

public static final int SCALER_CROPPING_TYPE_CENTER_ONLY

The camera device only supports centered crop regions.

Constant Value: 0 (0x00000000)

public static final int SCALER_CROPPING_TYPE_FREEFORM

The camera device supports arbitrarily chosen crop regions.

Constant Value: 1 (0x00000001)

public static final int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_BGGR

Constant Value: 3 (0x00000003)

public static final int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_GBRG

Constant Value: 2 (0x00000002)

public static final int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_GRBG

Constant Value: 1 (0x00000001)

public static final int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGB

Sensor is not Bayer; output has 3 16-bit values for each pixel, instead of just 1 16-bit value per pixel.

Constant Value: 4 (0x00000004)

public static final int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGGB

Constant Value: 0 (0x00000000)

public static final int SENSOR_REFERENCE_ILLUMINANT1_CLOUDY_WEATHER

Constant Value: 10 (0x0000000a)

public static final int SENSOR_REFERENCE_ILLUMINANT1_COOL_WHITE_FLUORESCENT

W 3900 - 4500K

Constant Value: 14 (0x0000000e)

public static final int SENSOR_REFERENCE_ILLUMINANT1_D50

Constant Value: 23 (0x00000017)

public static final int SENSOR_REFERENCE_ILLUMINANT1_D55

Constant Value: 20 (0x00000014)

public static final int SENSOR_REFERENCE_ILLUMINANT1_D65

Constant Value: 21 (0x00000015)

public static final int SENSOR_REFERENCE_ILLUMINANT1_D75

Constant Value: 22 (0x00000016)

public static final int SENSOR_REFERENCE_ILLUMINANT1_DAYLIGHT

Constant Value: 1 (0x00000001)

public static final int SENSOR_REFERENCE_ILLUMINANT1_DAYLIGHT_FLUORESCENT

D 5700 - 7100K

Constant Value: 12 (0x0000000c)

public static final int SENSOR_REFERENCE_ILLUMINANT1_DAY_WHITE_FLUORESCENT

N 4600 - 5400K

Constant Value: 13 (0x0000000d)

public static final int SENSOR_REFERENCE_ILLUMINANT1_FINE_WEATHER

Constant Value: 9 (0x00000009)

public static final int SENSOR_REFERENCE_ILLUMINANT1_FLASH

Constant Value: 4 (0x00000004)

public static final int SENSOR_REFERENCE_ILLUMINANT1_FLUORESCENT

Constant Value: 2 (0x00000002)

public static final int SENSOR_REFERENCE_ILLUMINANT1_ISO_STUDIO_TUNGSTEN

Constant Value: 24 (0x00000018)

public static final int SENSOR_REFERENCE_ILLUMINANT1_SHADE

Constant Value: 11 (0x0000000b)

public static final int SENSOR_REFERENCE_ILLUMINANT1_STANDARD_A

Constant Value: 17 (0x00000011)

public static final int SENSOR_REFERENCE_ILLUMINANT1_STANDARD_B

Constant Value: 18 (0x00000012)

public static final int SENSOR_REFERENCE_ILLUMINANT1_STANDARD_C

Constant Value: 19 (0x00000013)

public static final int SENSOR_REFERENCE_ILLUMINANT1_TUNGSTEN

Incandescent light

Constant Value: 3 (0x00000003)

public static final int SENSOR_REFERENCE_ILLUMINANT1_WHITE_FLUORESCENT

WW 3200 - 3700K

Constant Value: 15 (0x0000000f)

public static final int SENSOR_TEST_PATTERN_MODE_COLOR_BARS

All pixel data is replaced with an 8-bar color pattern.

The vertical bars (left-to-right) are as follows:

  • 100% white
  • yellow
  • cyan
  • green
  • magenta
  • red
  • blue
  • black

In general the image would look like the following:

W Y C G M R B K
 W Y C G M R B K
 W Y C G M R B K
 W Y C G M R B K
 W Y C G M R B K
 . . . . . . . .
 . . . . . . . .
 . . . . . . . .

 (B = Blue, K = Black)
 

Each bar should take up 1/8 of the sensor pixel array width. When this is not possible, the bar size should be rounded down to the nearest integer and the pattern can repeat on the right side.

Each bar's height must always take up the full sensor pixel array height.

Each pixel in this test pattern must be set to either 0% intensity or 100% intensity.

Constant Value: 2 (0x00000002)

public static final int SENSOR_TEST_PATTERN_MODE_COLOR_BARS_FADE_TO_GRAY

The test pattern is similar to COLOR_BARS, except that each bar should start at its specified color at the top, and fade to gray at the bottom.

Furthermore each bar is further subdivided into a left and right half. The left half should have a smooth gradient, and the right half should have a quantized gradient.

In particular, the right half's should consist of blocks of the same color for 1/16th active sensor pixel array width.

The least significant bits in the quantized gradient should be copied from the most significant bits of the smooth gradient.

The height of each bar should always be a multiple of 128. When this is not the case, the pattern should repeat at the bottom of the image.

Constant Value: 3 (0x00000003)

public static final int SENSOR_TEST_PATTERN_MODE_CUSTOM1

The first custom test pattern. All custom patterns that are available only on this camera device are at least this numeric value.

All of the custom test patterns will be static (that is the raw image must not vary from frame to frame).

Constant Value: 256 (0x00000100)

public static final int SENSOR_TEST_PATTERN_MODE_OFF

No test pattern mode is used, and the camera device returns captures from the image sensor.

This is the default if the key is not set.

Constant Value: 0 (0x00000000)

public static final int SENSOR_TEST_PATTERN_MODE_PN9

All pixel data is replaced by a pseudo-random sequence generated from a PN9 512-bit sequence (typically implemented in hardware with a linear feedback shift register).

The generator should be reset at the beginning of each frame, and thus each subsequent raw frame with this test pattern should be exactly the same as the last.

Constant Value: 4 (0x00000004)

public static final int SENSOR_TEST_PATTERN_MODE_SOLID_COLOR

Each pixel in [R, G_even, G_odd, B] is replaced by its respective color channel provided in android.sensor.testPatternData.

For example:

android.testPatternData = [0, 0xFFFFFFFF, 0xFFFFFFFF, 0]
 

All green pixels are 100% green. All red/blue pixels are black.

android.testPatternData = [0xFFFFFFFF, 0, 0xFFFFFFFF, 0]
 

All red pixels are 100% red. Only the odd green pixels are 100% green. All blue pixels are 100% black.

Constant Value: 1 (0x00000001)

public static final int SHADING_MODE_FAST

Apply lens shading corrections, without slowing frame rate relative to sensor raw output

See Also
Constant Value: 1 (0x00000001)

public static final int SHADING_MODE_HIGH_QUALITY

Apply high-quality lens shading correction, at the cost of reduced frame rate.

See Also
Constant Value: 2 (0x00000002)

public static final int SHADING_MODE_OFF

No lens shading correction is applied.

See Also
Constant Value: 0 (0x00000000)

public static final int STATISTICS_FACE_DETECT_MODE_FULL

Return all face metadata.

In this mode, android.statistics.faceRectangles, android.statistics.faceScores, android.statistics.faceIds, and android.statistics.faceLandmarks outputs are valid.

Constant Value: 2 (0x00000002)

public static final int STATISTICS_FACE_DETECT_MODE_OFF

Do not include face detection statistics in capture results.

Constant Value: 0 (0x00000000)

public static final int STATISTICS_FACE_DETECT_MODE_SIMPLE

Return face rectangle and confidence values only.

In this mode, only android.statistics.faceRectangles and android.statistics.faceScores outputs are valid.

Constant Value: 1 (0x00000001)

public static final int STATISTICS_LENS_SHADING_MAP_MODE_OFF

Do not include a lens shading map in the capture result.

Constant Value: 0 (0x00000000)

public static final int STATISTICS_LENS_SHADING_MAP_MODE_ON

Include a lens shading map in the capture result.

Constant Value: 1 (0x00000001)

public static final int STATISTICS_SCENE_FLICKER_50HZ

The camera device detects illumination flickering at 50Hz in the current scene.

Constant Value: 1 (0x00000001)

public static final int STATISTICS_SCENE_FLICKER_60HZ

The camera device detects illumination flickering at 60Hz in the current scene.

Constant Value: 2 (0x00000002)

public static final int STATISTICS_SCENE_FLICKER_NONE

The camera device does not detect any flickering illumination in the current scene.

Constant Value: 0 (0x00000000)

public static final int SYNC_MAX_LATENCY_PER_FRAME_CONTROL

Every frame has the requests immediately applied.

Furthermore for all results, android.sync.frameNumber == android.request.frameCount

Changing controls over multiple requests one after another will produce results that have those controls applied atomically each frame.

All FULL capability devices will have this as their maxLatency.

See Also
Constant Value: 0 (0x00000000)

public static final int SYNC_MAX_LATENCY_UNKNOWN

Each new frame has some subset (potentially the entire set) of the past requests applied to the camera settings.

By submitting a series of identical requests, the camera device will eventually have the camera settings applied, but it is unknown when that exact point will be.

See Also
Constant Value: -1 (0xffffffff)

public static final int TONEMAP_MODE_CONTRAST_CURVE

Use the tone mapping curve specified in the android.tonemap.curve* entries.

All color enhancement and tonemapping must be disabled, except for applying the tonemapping curve specified by android.tonemap.curve.

Must not slow down frame rate relative to raw sensor output.

Constant Value: 0 (0x00000000)

public static final int TONEMAP_MODE_FAST

Advanced gamma mapping and color enhancement may be applied, without reducing frame rate compared to raw sensor output.

See Also
Constant Value: 1 (0x00000001)

public static final int TONEMAP_MODE_HIGH_QUALITY

High-quality gamma mapping and color enhancement will be applied, at the cost of reduced frame rate compared to raw sensor output.

See Also
Constant Value: 2 (0x00000002)

Public Methods

public List<TKey> getKeys ()

Returns a list of the keys contained in this map.

The list returned is not modifiable, so any attempts to modify it will throw a UnsupportedOperationException.

All values retrieved by a key from this list with #get are guaranteed to be non-null. Each key is only listed once in the list. The order of the keys is undefined.

Returns
  • List of the keys contained in this map.