DynamicRangeProfilesWrapper


interface DynamicRangeProfilesWrapper : UnsafeWrapper

Known direct subclasses
FakeDynamicRangeProfiles

A fake implementation of DynamicRangeProfilesWrapper for testing.


Provides compatibility-focused access to android.hardware.camera2.params.DynamicRangeProfiles.

Summary

Constants

const Long

The 10-bit Dolby Vision HDR OEM profile.

const Long

The 10-bit Dolby Vision HDR OEM profile, power-optimized.

const Long

The 10-bit Dolby Vision HDR reference profile.

const Long

The 10-bit Dolby Vision HDR reference profile, power-optimized.

const Long

The 8-bit Dolby Vision HDR OEM profile.

const Long

The 8-bit Dolby Vision HDR OEM profile, power-optimized.

const Long

The 8-bit Dolby Vision HDR reference profile.

const Long

The 8-bit Dolby Vision HDR reference profile, power-optimized.

const Long
HDR10 = 4

The 10-bit HDR10 dynamic range profile.

const Long

The 10-bit HDR10+ dynamic range profile.

const Long
HLG10 = 2

The 10-bit HLG (Hybrid Log-Gamma) dynamic range profile.

const Long

The standard 8-bit dynamic range profile.

Public functions

Set<Long>

Returns a set of supported dynamic range profiles that can be referenced in a single capture request along with the given profile.

Boolean

Checks whether a given dynamic range profile incurs extra latency.

Public properties

Set<Long>

Returns a set of supported dynamic range profiles.

Inherited functions

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

Attempts to unwrap this object into the specified underlying type.

Constants

DOLBY_VISION_10B_HDR_OEM

Added in 1.7.0-alpha03
const val DOLBY_VISION_10B_HDR_OEM = 64: Long

The 10-bit Dolby Vision HDR OEM profile.

DOLBY_VISION_10B_HDR_OEM_PO

Added in 1.7.0-alpha03
const val DOLBY_VISION_10B_HDR_OEM_PO = 128: Long

The 10-bit Dolby Vision HDR OEM profile, power-optimized.

DOLBY_VISION_10B_HDR_REF

Added in 1.7.0-alpha03
const val DOLBY_VISION_10B_HDR_REF = 16: Long

The 10-bit Dolby Vision HDR reference profile.

DOLBY_VISION_10B_HDR_REF_PO

Added in 1.7.0-alpha03
const val DOLBY_VISION_10B_HDR_REF_PO = 32: Long

The 10-bit Dolby Vision HDR reference profile, power-optimized.

DOLBY_VISION_8B_HDR_OEM

Added in 1.7.0-alpha03
const val DOLBY_VISION_8B_HDR_OEM = 1024: Long

The 8-bit Dolby Vision HDR OEM profile.

DOLBY_VISION_8B_HDR_OEM_PO

Added in 1.7.0-alpha03
const val DOLBY_VISION_8B_HDR_OEM_PO = 2048: Long

The 8-bit Dolby Vision HDR OEM profile, power-optimized.

DOLBY_VISION_8B_HDR_REF

Added in 1.7.0-alpha03
const val DOLBY_VISION_8B_HDR_REF = 256: Long

The 8-bit Dolby Vision HDR reference profile.

DOLBY_VISION_8B_HDR_REF_PO

Added in 1.7.0-alpha03
const val DOLBY_VISION_8B_HDR_REF_PO = 512: Long

The 8-bit Dolby Vision HDR reference profile, power-optimized.

HDR10

Added in 1.7.0-alpha03
const val HDR10 = 4: Long

The 10-bit HDR10 dynamic range profile.

See also
HDR10

HDR10_PLUS

Added in 1.7.0-alpha03
const val HDR10_PLUS = 8: Long

The 10-bit HDR10+ dynamic range profile.

See also
HDR10_PLUS

HLG10

Added in 1.7.0-alpha03
const val HLG10 = 2: Long

The 10-bit HLG (Hybrid Log-Gamma) dynamic range profile.

See also
HLG10

STANDARD

Added in 1.7.0-alpha03
const val STANDARD = 1: Long

The standard 8-bit dynamic range profile.

See also
STANDARD

Public functions

getCompatibleProfiles

Added in 1.7.0-alpha03
fun getCompatibleProfiles(profile: Long): Set<Long>

Returns a set of supported dynamic range profiles that can be referenced in a single capture request along with the given profile.

A profile is always compatible with itself, and is included in the returned set.

Parameters
profile: Long

The dynamic range profile to query compatibility for.

Returns
Set<Long>

An unmodifiable set of supported dynamic range profiles.

hasExtraLatency

Added in 1.7.0-alpha03
fun hasExtraLatency(profile: Long): Boolean

Checks whether a given dynamic range profile incurs extra latency.

Profiles that incur extra latency may not be suitable for latency-sensitive use cases, such as real-time previews.

Parameters
profile: Long

The dynamic range profile to check.

Returns
Boolean

true if the profile incurs extra latency, false otherwise.

Public properties

supportedProfiles

Added in 1.7.0-alpha03
val supportedProfilesSet<Long>

Returns a set of supported dynamic range profiles.

Returns
Set<Long>

An unmodifiable set of supported dynamic range profiles.