androidx.camera.common
CameraX Common is a collection of well documented common types, interfaces, wrappers, math and utilities designed to enable library and application developers to build on a shared set of types regardless of CameraX or Camera2 usage. This library is intentionally designed to be lightweight to ensure that libraries or applications that depend on it have minimal impact to their library and code size.
Library developers that can consume media content from a camera are encouraged to use these interfaces and types as part of their permanent public API surface instead of library-specific subtypes when possible. Developers that expose or develop camera libraries or applications that utilize Camera2 directly are encouraged to depend on and supply instances of these public API types directly.
Interfaces
CameraCharacteristicsMetadata |
An interface that provides compatibility-focused, read-only query access to |
CameraCharacteristicsWrapper |
Wrapper interface providing compatibility-focused access to |
CameraExtensionCharacteristicsWrapper |
Compatibility wrapper around |
CaptureRequestMetadata |
An interface that provides compatibility-focused, read-only query access to the settings applied to a camera capture request. |
CaptureRequestWrapper |
A wrapper interface representing the settings applied to a specific camera capture request. |
CaptureResultMetadata |
An interface that provides compatibility-focused, read-only query access to the results of a single image capture. |
CaptureResultWrapper |
A wrapper interface providing compatibility-focused access to |
ColorSpaceProfilesWrapper |
A compatibility wrapper for color space profiles. |
DynamicRangeProfilesWrapper |
Provides compatibility-focused access to |
ImagePlane |
A wrapper interface that mirrors |
ImageWrapper |
A wrapper interface that mirrors the primary read-only properties of |
Metadata |
A read-only, map-like interface for accessing unified camera metadata. |
MutableImageWrapper |
A mutable extension of |
StreamConfigurationMapWrapper |
A compatibility wrapper for |
UnsafeWrapper |
An interface for wrapper objects that hide underlying platform or implementation-specific types. |
Classes
CameraFrameNumber |
A strongly typed identifier for a camera frame. |
CameraId |
A type-safe identifier for a camera device. |
DiscreteRotation |
A value class representing a rotation constrained to 90-degree increments (0, 90, 180, or 270 degrees). |
Metadata.Key |
A type-safe key used to identify and retrieve values from a |
CameraCharacteristicsWrapper.Keys |
|
CameraCharacteristicsWrappers |
Custom metadata keys for |
CameraColorSpaces |
Constants and utility functions for |
CameraExtensionCharacteristicsWrappers |
Helper for constructing and loading |
CameraId.Companion |
|
CameraMath |
Utility functions for doing common transformations of camera and sensor coordinate spaces. |
CaptureRequestWrappers |
|
CaptureResultWrappers |
|
DiscreteRotation.Companion |
|
ImageWrappers |
Utility methods for |