EnhancementCallback

interface EnhancementCallback


Callback for enhancement frame processing.

Summary

Public functions

Unit

Called when a frame is processed using bitmap successfully.

Unit
onError(statusCode: Int)

Called when a frame fails to process.

Unit

Called when a frame is processed using surface successfully.

Public functions

onBitmapProcessed

fun onBitmapProcessed(bitmap: Bitmap): Unit

Called when a frame is processed using bitmap successfully.

Parameters
bitmap: Bitmap

the enhanced bitmap.

onError

fun onError(statusCode: Int): Unit

Called when a frame fails to process.

Parameters
statusCode: Int

the status code of the error.

onSurfaceProcessed

fun onSurfaceProcessed(timestamp: Long): Unit

Called when a frame is processed using surface successfully.

Parameters
timestamp: Long

the timestamp of the frame that was processed.