言語

ControlSceneMode Enum

Definition

Enumerates values returned by several methods of ControlSceneMode.

public enum ControlSceneMode
type ControlSceneMode = 
Inheritance
ControlSceneMode

Fields

Name Value Description
Disabled 0

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

Android reference for android.hardware.camera2.CameraMetadata.CONTROL_SCENE_MODE_DISABLED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

FacePriority 1

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.

Android reference for android.hardware.camera2.CameraMetadata.CONTROL_SCENE_MODE_FACE_PRIORITY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Action 2

Optimized for photos of quickly moving objects.

Similar to SPORTS.

Android reference for android.hardware.camera2.CameraMetadata.CONTROL_SCENE_MODE_ACTION.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Portrait 3

Optimized for still photos of people.

Android reference for android.hardware.camera2.CameraMetadata.CONTROL_SCENE_MODE_PORTRAIT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Landscape 4

Optimized for photos of distant macroscopic objects.

Android reference for android.hardware.camera2.CameraMetadata.CONTROL_SCENE_MODE_LANDSCAPE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Night 5

Optimized for low-light settings.

Android reference for android.hardware.camera2.CameraMetadata.CONTROL_SCENE_MODE_NIGHT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

NightPortrait 6

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

Android reference for android.hardware.camera2.CameraMetadata.CONTROL_SCENE_MODE_NIGHT_PORTRAIT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Theatre 7

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

Android reference for android.hardware.camera2.CameraMetadata.CONTROL_SCENE_MODE_THEATRE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Beach 8

Optimized for bright, outdoor beach settings.

Android reference for android.hardware.camera2.CameraMetadata.CONTROL_SCENE_MODE_BEACH.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Snow 9

Optimized for bright, outdoor settings containing snow.

Android reference for android.hardware.camera2.CameraMetadata.CONTROL_SCENE_MODE_SNOW.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Sunset 10

Optimized for scenes of the setting sun.

Android reference for android.hardware.camera2.CameraMetadata.CONTROL_SCENE_MODE_SUNSET.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Steadyphoto 11

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

Android reference for android.hardware.camera2.CameraMetadata.CONTROL_SCENE_MODE_STEADYPHOTO.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Fireworks 12

Optimized for nighttime photos of fireworks.

Android reference for android.hardware.camera2.CameraMetadata.CONTROL_SCENE_MODE_FIREWORKS.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Sports 13

Optimized for photos of quickly moving people.

Similar to ACTION.

Android reference for android.hardware.camera2.CameraMetadata.CONTROL_SCENE_MODE_SPORTS.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Party 14

Optimized for dim, indoor settings with multiple moving people.

Android reference for android.hardware.camera2.CameraMetadata.CONTROL_SCENE_MODE_PARTY.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Candlelight 15

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

Android reference for android.hardware.camera2.CameraMetadata.CONTROL_SCENE_MODE_CANDLELIGHT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Barcode 16

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

Android reference for android.hardware.camera2.CameraMetadata.CONTROL_SCENE_MODE_BARCODE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

HighSpeedVideo 17

This constant was deprecated in API level 23. Please refer to this API documentation to find the alternatives

This is deprecated, please use CameraDevice.createConstrainedHighSpeedCaptureSession(List, StateCallback, Handler) and CameraConstrainedHighSpeedCaptureSession.createHighSpeedRequestList(CaptureRequest) for high speed video recording.

Optimized for high speed video recording (frame rate >=60fps) use case.

The supported high speed video sizes and fps ranges are specified in android.control.availableHighSpeedVideoConfigurations. To get desired output frame rates, the application is only allowed to select video size and fps range combinations listed in this static metadata. The fps range can be control via android.control.aeTargetFpsRange.

In this mode, the camera device will override aeMode, awbMode, and afMode to ON, ON, and CONTINUOUS_VIDEO, respectively. All post-processing block mode controls will be overridden to be FAST. Therefore, no manual control of capture and post-processing parameters is possible. All other controls operate the same as when android.control.mode == AUTO. This means that all other android.control.* fields continue to work, such as; android.control.aeTargetFpsRange; android.control.aeExposureCompensation; android.control.aeLock; android.control.awbLock; android.control.effectMode; android.control.aeRegions; android.control.afRegions; android.control.awbRegions; android.control.afTrigger; android.control.aePrecaptureTrigger; android.control.zoomRatio

Outside of android.control.*, the following controls will work: android.flash.mode (automatic flash for still capture will not work since aeMode is ON); android.lens.opticalStabilizationMode (if it is supported); android.scaler.cropRegion; android.statistics.faceDetectMode

For high speed recording use case, the actual maximum supported frame rate may be lower than what camera can output, depending on the destination Surfaces for the image data. For example, if the destination surface is from video encoder, the application need check if the video encoder is capable of supporting the high frame rate for a given video size, or it will end up with lower recording frame rate. If the destination surface is from preview window, the preview frame rate will be bounded by the screen refresh rate.

The camera device will only support up to 2 output high speed streams (processed non-stalling format defined in android.request.maxNumOutputStreams) in this mode. This control will be effective only if all of below conditions are true: The application created no more than maxNumHighSpeedStreams processed non-stalling format output streams, where maxNumHighSpeedStreams is calculated as min(2, android.request.maxNumOutputStreams[Processed (but not-stalling)]); The stream sizes are selected from the sizes reported by android.control.availableHighSpeedVideoConfigurations; No processed non-stalling or raw streams are configured

When above conditions are NOT satisfied, the controls of this mode and android.control.aeTargetFpsRange will be ignored by the camera device, the camera device will fall back to android.control.mode == AUTO, and the returned capture result metadata will give the fps range chosen by the camera device.

Switching into or out of this mode may trigger some camera ISP/sensor reconfigurations, which may introduce extra latency. It is recommended that the application avoids unnecessary scene mode switch as much as possible.

Android reference for android.hardware.camera2.CameraMetadata.CONTROL_SCENE_MODE_HIGH_SPEED_VIDEO.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Hdr 18

Turn on a device-specific high dynamic range (HDR) mode.

In this scene mode, the camera device captures images that keep a larger range of scene illumination levels visible in the final image. For example, when taking a picture of a object in front of a bright window, both the object and the scene through the window may be visible when using HDR mode, while in normal AUTO mode, one or the other may be poorly exposed. As a tradeoff, HDR mode generally takes much longer to capture a single image, has no user control, and may have other artifacts depending on the HDR method used.

Therefore, HDR captures operate at a much slower rate than regular captures.

In this mode, on LIMITED or FULL devices, when a request is made with a android.control.captureIntent of STILL_CAPTURE, the camera device will capture an image using a high dynamic range capture technique. On LEGACY devices, captures that target a JPEG-format output will be captured with HDR, and the capture intent is not relevant.

The HDR capture may involve the device capturing a burst of images internally and combining them into one, or it may involve the device using specialized high dynamic range capture hardware. In all cases, a single image is produced in response to a capture request submitted while in HDR mode.

Since substantial post-processing is generally needed to produce an HDR image, only YUV, PRIVATE, and JPEG outputs are supported for LIMITED/FULL device HDR captures, and only JPEG outputs are supported for LEGACY HDR captures. Using a RAW output for HDR capture is not supported.

Some devices may also support always-on HDR, which applies HDR processing at full frame rate. For these devices, intents other than STILL_CAPTURE will also produce an HDR output with no frame rate impact compared to normal operation, though the quality may be lower than for STILL_CAPTURE intents.

If SCENE_MODE_HDR is used with unsupported output types or capture intents, the images captured will be as if the SCENE_MODE was not enabled at all.

Android reference for android.hardware.camera2.CameraMetadata.CONTROL_SCENE_MODE_HDR.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to