# 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)

*** ** * ** ***


```
public interface DynamicRangeProfilesWrapper extends UnsafeWrapper
```

<br />

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

|---|---|
| `https://developer.android.com/reference/androidx/camera/common/testing/FakeDynamicRangeProfiles` | A fake implementation of `https://developer.android.com/reference/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 |
|---|---|
| `default static final long` | `https://developer.android.com/reference/androidx/camera/common/DynamicRangeProfilesWrapper#DOLBY_VISION_10B_HDR_OEM() = 64` The 10-bit Dolby Vision HDR OEM profile. |
| `default static final long` | `https://developer.android.com/reference/androidx/camera/common/DynamicRangeProfilesWrapper#DOLBY_VISION_10B_HDR_OEM_PO() = 128` The 10-bit Dolby Vision HDR OEM profile, power-optimized. |
| `default static final long` | `https://developer.android.com/reference/androidx/camera/common/DynamicRangeProfilesWrapper#DOLBY_VISION_10B_HDR_REF() = 16` The 10-bit Dolby Vision HDR reference profile. |
| `default static final long` | `https://developer.android.com/reference/androidx/camera/common/DynamicRangeProfilesWrapper#DOLBY_VISION_10B_HDR_REF_PO() = 32` The 10-bit Dolby Vision HDR reference profile, power-optimized. |
| `default static final long` | `https://developer.android.com/reference/androidx/camera/common/DynamicRangeProfilesWrapper#DOLBY_VISION_8B_HDR_OEM() = 1024` The 8-bit Dolby Vision HDR OEM profile. |
| `default static final long` | `https://developer.android.com/reference/androidx/camera/common/DynamicRangeProfilesWrapper#DOLBY_VISION_8B_HDR_OEM_PO() = 2048` The 8-bit Dolby Vision HDR OEM profile, power-optimized. |
| `default static final long` | `https://developer.android.com/reference/androidx/camera/common/DynamicRangeProfilesWrapper#DOLBY_VISION_8B_HDR_REF() = 256` The 8-bit Dolby Vision HDR reference profile. |
| `default static final long` | `https://developer.android.com/reference/androidx/camera/common/DynamicRangeProfilesWrapper#DOLBY_VISION_8B_HDR_REF_PO() = 512` The 8-bit Dolby Vision HDR reference profile, power-optimized. |
| `default static final long` | `https://developer.android.com/reference/androidx/camera/common/DynamicRangeProfilesWrapper#HDR10() = 4` The 10-bit HDR10 dynamic range profile. |
| `default static final long` | `https://developer.android.com/reference/androidx/camera/common/DynamicRangeProfilesWrapper#HDR10_PLUS() = 8` The 10-bit HDR10+ dynamic range profile. |
| `default static final long` | `https://developer.android.com/reference/androidx/camera/common/DynamicRangeProfilesWrapper#HLG10() = 2` The 10-bit HLG (Hybrid Log-Gamma) dynamic range profile. |
| `default static final long` | `https://developer.android.com/reference/androidx/camera/common/DynamicRangeProfilesWrapper#STANDARD() = 1` The standard 8-bit dynamic range profile. |

| ### Public methods |
|---|---|
| `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>` | `https://developer.android.com/reference/androidx/camera/common/DynamicRangeProfilesWrapper#getCompatibleProfiles(kotlin.Long)(long profile)` Returns a set of supported dynamic range profiles that can be referenced in a single capture request along with the given profile. |
| `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>` | `https://developer.android.com/reference/androidx/camera/common/DynamicRangeProfilesWrapper#getSupportedProfiles()()` Returns a set of supported dynamic range profiles. |
| `abstract boolean` | `https://developer.android.com/reference/androidx/camera/common/DynamicRangeProfilesWrapper#hasExtraLatency(kotlin.Long)(long profile)` Checks whether a given dynamic range profile incurs extra latency. |

### Inherited methods

From [androidx.camera.common.UnsafeWrapper](https://developer.android.com/reference/androidx/camera/common/UnsafeWrapper) `abstract T` `<T extends https://developer.android.com/reference/java/lang/Object.html> https://developer.android.com/reference/androidx/camera/common/UnsafeWrapper#unwrapAs(java.lang.Class)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Class.html<@https://developer.android.com/reference/androidx/annotation/NonNull T> type)`

Attempts to unwrap this object into the specified underlying `https://developer.android.com/reference/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)

```
default static final long DOLBY_VISION_10B_HDR_OEM = 64
```

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)

```
default static final long DOLBY_VISION_10B_HDR_OEM_PO = 128
```

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)

```
default static final long DOLBY_VISION_10B_HDR_REF = 16
```

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)

```
default static final long DOLBY_VISION_10B_HDR_REF_PO = 32
```

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)

```
default static final long DOLBY_VISION_8B_HDR_OEM = 1024
```

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)

```
default static final long DOLBY_VISION_8B_HDR_OEM_PO = 2048
```

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)

```
default static final long DOLBY_VISION_8B_HDR_REF = 256
```

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)

```
default static final long DOLBY_VISION_8B_HDR_REF_PO = 512
```

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)

```
default static final long HDR10 = 4
```

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)

```
default static final long HDR10_PLUS = 8
```

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)

```
default static final long HLG10 = 2
```

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)

```
default static final long STANDARD = 1
```

The standard 8-bit dynamic range profile.

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

## Public methods

### getCompatibleProfiles

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

```
abstract @NonNull Set<@NonNull Long> getCompatibleProfiles(long profile)
```

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 |
|---|---|
| `long profile` | 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://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>` | An unmodifiable set of supported dynamic range profiles. |

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

### getSupportedProfiles

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

```
abstract @NonNull Set<@NonNull Long> getSupportedProfiles()
```

Returns a set of supported dynamic range profiles.

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Long.html>` | An unmodifiable set of supported dynamic range profiles. |

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

### hasExtraLatency

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

```
abstract boolean hasExtraLatency(long profile)
```

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 |
|---|---|
| `long profile` | 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 |
|---|---|
| `boolean` | `true` if the profile incurs extra latency, `false` otherwise. |

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