# Enhancement

# Enhancement


```
public static class Enhancement
```

<br />

*** ** * ** ***

Image and Video Enhancement API.

Image and video enhancement with tone mapping, deblur, denoise, compression artifact removal and super resolution. It aims to provide a low-latency, on-device solution to enhance image and video quality in playback, streaming and editing cases. In the future, it will add more modules for temporal enhancement as well.

To use this API, you must get an instance of `https://developers.google.com/android/reference/com/google/android/gms/media/effect/enhancement/EnhancementClient` and then check that the device supports the feature.

Example:

```
val client = Enhancement.getClient(context)
if (client.isDeviceSupported(context).await()) {
  // Image and video enhancement is supported on this device.
  // Install the module if necessary.
  // Create a session and start processing.
}
```

## Summary

| ### Public fields |
|---|---|
| `static @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/android/gms/media/effect/enhancement/Enhancement` | `https://developers.google.com/android/reference/com/google/android/gms/media/effect/enhancement/Enhancement#INSTANCE()` |

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/android/gms/media/effect/enhancement/EnhancementClient` | `@https://developer.android.com/reference/androidx/annotation/RequiresApi.html(value = 30) https://developers.google.com/android/reference/com/google/android/gms/media/effect/enhancement/Enhancement#getClient(android.content.Context)(@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html context)` Creates a new instance of `https://developers.google.com/android/reference/com/google/android/gms/media/effect/enhancement/EnhancementClient`. |

## Public fields

### INSTANCE

```
public static @NonNull Enhancement INSTANCE
```

## Public methods

### getClient

```
@RequiresApi(value = 30)
public static final @NonNull EnhancementClient getClient(@NonNull Context context)
```

Creates a new instance of `https://developers.google.com/android/reference/com/google/android/gms/media/effect/enhancement/EnhancementClient`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/content/Context.html context` | the context that is using this client |