Enhancement

object Enhancement


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 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 functions

EnhancementClient
@RequiresApi(value = 30)
getClient(context: Context)

Creates a new instance of EnhancementClient.

Public functions

getClient

@RequiresApi(value = 30)
fun getClient(context: Context): EnhancementClient

Creates a new instance of EnhancementClient.

Parameters
context: Context

the context that is using this client