# DynamicRangeProfilesWrapper

Artifact: [androidx.camera:camera-common](https://developer.android.com/jetpack/androidx/releases/camera) [View Source](https://cs.android.com/search?q=file:androidx/camera/common/DynamicRangeProfilesWrapper.kt+class:androidx.camera.common.DynamicRangeProfilesWrapper) Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

*** ** * ** ***


```
interface DynamicRangeProfilesWrapper : UnsafeWrapper
```

<br />

Known direct subclasses [FakeDynamicRangeProfiles](https://developer.android.com/reference/kotlin/androidx/camera/common/testing/FakeDynamicRangeProfiles)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/camera/common/testing/FakeDynamicRangeProfiles` | A fake implementation of `https://developer.android.com/reference/kotlin/androidx/camera/common/DynamicRangeProfilesWrapper` for testing. |

*** ** * ** ***

Provides compatibility-focused access to `https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html`.

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html` |   |

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/common/DynamicRangeProfilesWrapper#DOLBY_VISION_10B_HDR_OEM() = 64` The 10-bit Dolby Vision HDR OEM profile. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/common/DynamicRangeProfilesWrapper#DOLBY_VISION_10B_HDR_OEM_PO() = 128` The 10-bit Dolby Vision HDR OEM profile, power-optimized. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/common/DynamicRangeProfilesWrapper#DOLBY_VISION_10B_HDR_REF() = 16` The 10-bit Dolby Vision HDR reference profile. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/common/DynamicRangeProfilesWrapper#DOLBY_VISION_10B_HDR_REF_PO() = 32` The 10-bit Dolby Vision HDR reference profile, power-optimized. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/common/DynamicRangeProfilesWrapper#DOLBY_VISION_8B_HDR_OEM() = 1024` The 8-bit Dolby Vision HDR OEM profile. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/common/DynamicRangeProfilesWrapper#DOLBY_VISION_8B_HDR_OEM_PO() = 2048` The 8-bit Dolby Vision HDR OEM profile, power-optimized. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/common/DynamicRangeProfilesWrapper#DOLBY_VISION_8B_HDR_REF() = 256` The 8-bit Dolby Vision HDR reference profile. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/common/DynamicRangeProfilesWrapper#DOLBY_VISION_8B_HDR_REF_PO() = 512` The 8-bit Dolby Vision HDR reference profile, power-optimized. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/common/DynamicRangeProfilesWrapper#HDR10() = 4` The 10-bit HDR10 dynamic range profile. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/common/DynamicRangeProfilesWrapper#HDR10_PLUS() = 8` The 10-bit HDR10+ dynamic range profile. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/common/DynamicRangeProfilesWrapper#HLG10() = 2` The 10-bit HLG (Hybrid Log-Gamma) dynamic range profile. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/common/DynamicRangeProfilesWrapper#STANDARD() = 1` The standard 8-bit dynamic range profile. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html>` | `https://developer.android.com/reference/kotlin/androidx/camera/common/DynamicRangeProfilesWrapper#getCompatibleProfiles(kotlin.Long)(profile: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Returns a set of supported dynamic range profiles that can be referenced in a single capture request along with the given profile. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/camera/common/DynamicRangeProfilesWrapper#hasExtraLatency(kotlin.Long)(profile: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Checks whether a given dynamic range profile incurs extra latency. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html>` | `https://developer.android.com/reference/kotlin/androidx/camera/common/DynamicRangeProfilesWrapper#supportedProfiles()` Returns a set of supported dynamic range profiles. |

### Inherited functions

From [androidx.camera.common.UnsafeWrapper](https://developer.android.com/reference/kotlin/androidx/camera/common/UnsafeWrapper) `T?` `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html> https://developer.android.com/reference/kotlin/androidx/camera/common/UnsafeWrapper#unwrapAs(java.lang.Class)(type: https://developer.android.com/reference/java/lang/Class.html<T>)`

Attempts to unwrap this object into the specified underlying `https://developer.android.com/reference/kotlin/androidx/camera/common/UnsafeWrapper#unwrapAs(java.lang.Class)`.

## Constants

### DOLBY_VISION_10B_HDR_OEM

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
const val DOLBY_VISION_10B_HDR_OEM = 64: Long
```

The 10-bit Dolby Vision HDR OEM profile.

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#DOLBY_VISION_10B_HDR_OEM` |   |

### DOLBY_VISION_10B_HDR_OEM_PO

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
const val DOLBY_VISION_10B_HDR_OEM_PO = 128: Long
```

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

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#DOLBY_VISION_10B_HDR_OEM_PO` |   |

### DOLBY_VISION_10B_HDR_REF

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
const val DOLBY_VISION_10B_HDR_REF = 16: Long
```

The 10-bit Dolby Vision HDR reference profile.

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#DOLBY_VISION_10B_HDR_REF` |   |

### DOLBY_VISION_10B_HDR_REF_PO

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
const val DOLBY_VISION_10B_HDR_REF_PO = 32: Long
```

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

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#DOLBY_VISION_10B_HDR_REF_PO` |   |

### DOLBY_VISION_8B_HDR_OEM

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
const val DOLBY_VISION_8B_HDR_OEM = 1024: Long
```

The 8-bit Dolby Vision HDR OEM profile.

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#DOLBY_VISION_8B_HDR_OEM` |   |

### DOLBY_VISION_8B_HDR_OEM_PO

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
const val DOLBY_VISION_8B_HDR_OEM_PO = 2048: Long
```

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

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#DOLBY_VISION_8B_HDR_OEM_PO` |   |

### DOLBY_VISION_8B_HDR_REF

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
const val DOLBY_VISION_8B_HDR_REF = 256: Long
```

The 8-bit Dolby Vision HDR reference profile.

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#DOLBY_VISION_8B_HDR_REF` |   |

### DOLBY_VISION_8B_HDR_REF_PO

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
const val DOLBY_VISION_8B_HDR_REF_PO = 512: Long
```

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

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#DOLBY_VISION_8B_HDR_REF_PO` |   |

### HDR10

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
const val HDR10 = 4: Long
```

The 10-bit HDR10 dynamic range profile.

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#HDR10` |   |

### HDR10_PLUS

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
const val HDR10_PLUS = 8: Long
```

The 10-bit HDR10+ dynamic range profile.

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#HDR10_PLUS` |   |

### HLG10

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
const val HLG10 = 2: Long
```

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

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#HLG10` |   |

### STANDARD

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
const val STANDARD = 1: Long
```

The standard 8-bit dynamic range profile.

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#STANDARD` |   |

## Public functions

### getCompatibleProfiles

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
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: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The dynamic range profile to query compatibility for. Value is one of the following: - `1` - `2` - `4` - `8` - `16` - `32` - `64` - `128` - `256` - `512` - `1024` - `2048` - `4096` <br /> |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html>` | An unmodifiable set of supported dynamic range profiles. |

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#getProfileCaptureRequestConstraints(long)` |   |

### hasExtraLatency

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
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: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The dynamic range profile to check. Value is one of the following: - `1` - `2` - `4` - `8` - `16` - `32` - `64` - `128` - `256` - `512` - `1024` - `2048` - `4096` <br /> |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if the profile incurs extra latency, `false` otherwise. |

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#isExtraLatencyPresent(long)` |   |

## Public properties

### supportedProfiles

Added in [1.7.0-rc02](https://developer.android.com/jetpack/androidx/releases/camera#1.7.0-rc02)

```
val supportedProfiles: Set<Long>
```

Returns a set of supported dynamic range profiles.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html>` | An unmodifiable set of supported dynamic range profiles. |

| See also |
|---|---|
| `https://developer.android.com/reference/android/hardware/camera2/params/DynamicRangeProfiles.html#getSupportedProfiles()` |   |