Partager via


Android.Hardware.Camera2 Namespace

The android.hardware.camera2 package provides an interface to individual camera devices connected to an Android device.

Classes

CameraAccessException

CameraAccessException is thrown if a camera device could not be queried or opened by the CameraManager, or if the connection to an opened CameraDevice is no longer valid.

CameraCaptureSession

A configured capture session for a CameraDevice, used for capturing images from the camera or reprocessing images captured from the camera in the same session previously.

CameraCaptureSession.CaptureCallback

A callback object for tracking the progress of a CaptureRequest submitted to the camera device.

CameraCaptureSession.StateCallback

A callback object for receiving updates about the state of a camera capture session.

CameraCharacteristics

The properties describing a CameraDevice CameraDevice.

CameraCharacteristics.Key

A Key is used to do camera characteristics field lookups with CameraCharacteristics#get.

CameraConstrainedHighSpeedCaptureSession

A constrained high speed capture session for a CameraDevice, used for capturing high speed images from the CameraDevice for high speed video recording use case.

CameraDevice

The CameraDevice class is a representation of a single camera connected to an Android device, allowing for fine-grain control of image capture and post-processing at high frame rates.

CameraDevice.StateCallback

A callback objects for receiving updates about the state of a camera device.

CameraExtensionCharacteristics

Allows clients to query availability and supported resolutions of camera extensions.

CameraExtensionSession

A camera capture session that enables access to device-specific camera extensions, which often use multi-frame bursts and sophisticated post-process algorithms for image capture.

CameraExtensionSession.ExtensionCaptureCallback

A callback object for tracking the progress of a CaptureRequest submitted to the camera device.

CameraExtensionSession.StateCallback

A callback object for receiving updates about the state of a camera extension session.

CameraExtensionSession.StillCaptureLatency

Realtime calculated still #capture latency.

CameraManager

A system service manager for detecting, characterizing, and connecting to CameraDevice CameraDevices.

CameraManager.AvailabilityCallback

A callback for camera devices becoming available or unavailable to open.

CameraManager.TorchCallback

A callback for camera flash torch modes becoming unavailable, disabled, or enabled.

CameraMetadata

The base class for camera controls and information.

CameraOfflineSession

A camera capture session that was switched to offline mode via successful call to CameraCaptureSession#switchToOffline.

CameraOfflineSession.CameraOfflineSessionCallback
CaptureFailure

A report of failed capture for a single image capture from the image sensor.

CaptureRequest

An immutable package of settings and outputs needed to capture a single image from the camera device.

CaptureRequest.Builder

A builder for capture requests.

CaptureRequest.InterfaceConsts
CaptureRequest.Key

A Key is used to do capture request field lookups with CaptureRequest#get or to set fields with CaptureRequest.Builder#set(Key, Object).

CaptureResult

The subset of the results of a single image capture from the image sensor.

CaptureResult.Key

A Key is used to do capture result field lookups with CaptureResult#get.

DngCreator

The DngCreator class provides functions to write raw pixel data as a DNG file.

MultiResolutionImageReader

The MultiResolutionImageReader class wraps a group of ImageReader ImageReaders with the same format and different sizes, source camera Id, or camera sensor modes.

TotalCaptureResult

The total assembled results of a single image capture from the image sensor.

Enums

AutomotiveLensFacing
AutomotiveLocation
CameraAccessErrorType

Enumerates values returned by several types and taken as a parameter of several methods of CameraAccessException.

CameraDeviceAudioRestrictionType
CameraError

Enumerates values returned by several methods of CameraError and taken as a parameter of the F:Android.Hardware.Camera2.CameraDevice+StateCallback.OnError member.

CameraExtensionTypes
CameraTemplate

Enumerates values returned by several methods of CameraTemplate and taken as a parameter of the F:Android.Hardware.Camera2.CameraDevice.CreateCaptureRequest member.

CaptureFailureReason

Enumerates values returned by the Reason, Error, and Flushed members.

ColorCorrectionAberrationMode

Enumerates values returned by the Fast, HighQuality, and Off members.

ColorCorrectionMode

Enumerates values returned by the Fast, HighQuality, and TransformMatrix members.

ControlAEAntibanding

Enumerates values returned by several methods of ControlAEAntibanding.

ControlAEMode

Enumerates values returned by several methods of ControlAEMode.

ControlAEPrecaptureTrigger

Enumerates values returned by the Idle, and Start members.

ControlAEState

Enumerates values returned by several methods of ControlAEState.

ControlAFMode

Enumerates values returned by several methods of ControlAFMode.

ControlAFState

Enumerates values returned by several methods of ControlAFState.

ControlAFTrigger

Enumerates values returned by the Cancel, Idle, and Start members.

ControlAutoFraming
ControlAutoFramingState
ControlAwbMode

Enumerates values returned by several methods of ControlAwbMode.

ControlAwbState

Enumerates values returned by several methods of ControlAwbState.

ControlCaptureIntent

Enumerates values returned by several methods of ControlCaptureIntent.

ControlEffectMode

Enumerates values returned by several methods of ControlEffectMode.

ControlExtendedSceneMode
ControlMode

Enumerates values returned by several methods of ControlMode.

ControlSceneMode

Enumerates values returned by several methods of ControlSceneMode.

ControlSettingsOverride
ControlVideoStabilizationMode

Enumerates values returned by the Off, and On members.

EdgeMode

Enumerates values returned by the Fast, HighQuality, and Off members.

FlashMode

Enumerates values returned by the Off, Single, and Torch members.

FlashState

Enumerates values returned by several methods of FlashState.

HotPixelMode

Enumerates values returned by the Fast, HighQuality, and Off members.

InfoSupportedHardwareLevel

Enumerates values returned by the Full, Legacy, and Limited members.

LensFacing

Enumerates values returned by the Back, and Front members.

LensInfoFocusDistanceCalibration

Enumerates values returned by the Approximate, Calibrated, and Uncalibrated members.

LensOpticalStabilizationMode

Enumerates values returned by the Off, and On members.

LensState

Enumerates values returned by the Moving, and Stationary members.

NoiseReductionMode

Enumerates values returned by the Fast, HighQuality, and Off members.

RequestAvailableCapabilities

Enumerates values returned by several methods of RequestAvailableCapabilities.

ScalerAvailableStreamUseCases
ScalerCroppingType

Enumerates values returned by the CenterOnly, and Freeform members.

ScalerRotateAndCropType
SensorInfoColorFilterArrangement

Enumerates values returned by several methods of SensorInfoColorFilterArrangement.

SensorInfoTimestampSource

Enumerates values returned by the Realtime, and Unknown members.

SensorPixelMode
SensorReadoutTimestampType
SensorReferenceIlluminant1

Enumerates values returned by several methods of SensorReferenceIlluminant1.

SensorTestPatternMode

Enumerates values returned by several methods of SensorTestPatternMode.

SessionErrorStatus
ShadingMode

Enumerates values returned by the Fast, HighQuality, and Off members.

StatisticsFaceDetectMode

Enumerates values returned by the Full, Off, and Simple members.

StatisticsLensShadingMapMode

Enumerates values returned by the Off, and On members.

StatisticsSceneFlicker

Enumerates values returned by the None, S50hz, and S60hz members.

SyncMaxLatency

Enumerates values returned by the PerFrameControl, and Unknown members.

TonemapMode

Enumerates values returned by the ContrastCurve, Fast, and HighQuality members.

TonemapPresetCurveType