ColorSpaceProfilesWrapper


interface ColorSpaceProfilesWrapper : UnsafeWrapper

Known direct subclasses
FakeColorSpaceProfiles

A fake implementation of ColorSpaceProfilesWrapper for testing.


A compatibility wrapper for color space profiles.

Summary

Public functions

Set<String>

Get the supported color spaces for a given image format.

Set<String>
getSupportedColorSpacesForDynamicRange(
    imageFormat: Int,
    dynamicRangeProfile: Long
)

Get the supported color spaces for a given image format and dynamic range profile.

Set<Long>
getSupportedDynamicRangeProfiles(
    cameraColorSpace: String,
    imageFormat: Int
)

Get the supported dynamic range profiles for a given color space and image format.

Set<Int>

Get the supported image formats for a given color space.

Inherited functions

From androidx.camera.common.UnsafeWrapper
T?
<T : Any> unwrapAs(type: Class<T>)

Attempts to unwrap this object into the specified underlying type.

Public functions

getSupportedColorSpaces

Added in 1.7.0-alpha03
fun getSupportedColorSpaces(imageFormat: Int): Set<String>

Get the supported color spaces for a given image format.

Parameters
imageFormat: Int

The image format to query.

Returns
Set<String>

The set of supported CameraColorSpaces.

getSupportedColorSpacesForDynamicRange

Added in 1.7.0-alpha03
fun getSupportedColorSpacesForDynamicRange(
    imageFormat: Int,
    dynamicRangeProfile: Long
): Set<String>

Get the supported color spaces for a given image format and dynamic range profile.

Parameters
imageFormat: Int

The image format to query.

dynamicRangeProfile: Long

The dynamic range profile to query.

Returns
Set<String>

The set of supported CameraColorSpaces.

getSupportedDynamicRangeProfiles

Added in 1.7.0-alpha03
fun getSupportedDynamicRangeProfiles(
    cameraColorSpace: String,
    imageFormat: Int
): Set<Long>

Get the supported dynamic range profiles for a given color space and image format.

Parameters
cameraColorSpace: String

The CameraColorSpace to query.

imageFormat: Int

The image format to query.

Returns
Set<Long>

A set of framework dynamic range profiles (e.g., android.hardware.camera2.params.DynamicRangeProfiles.HDR10)

getSupportedImageFormatsForColorSpace

Added in 1.7.0-alpha03
fun getSupportedImageFormatsForColorSpace(cameraColorSpace: String): Set<Int>

Get the supported image formats for a given color space.

Parameters
cameraColorSpace: String

The CameraColorSpace to query.

Returns
Set<Int>

The set of supported image formats.