EnhancementCallback

public interface EnhancementCallback


Callback for enhancement frame processing.

Summary

Public methods

abstract void

Called when a frame is processed using bitmap successfully.

abstract void
onError(int statusCode)

Called when a frame fails to process.

abstract void
onSurfaceProcessed(long timestamp)

Called when a frame is processed using surface successfully.

Public methods

onBitmapProcessed

abstract void onBitmapProcessed(@NonNull Bitmap bitmap)

Called when a frame is processed using bitmap successfully.

Parameters
@NonNull Bitmap bitmap

the enhanced bitmap.

onError

abstract void onError(int statusCode)

Called when a frame fails to process.

Parameters
int statusCode

the status code of the error.

onSurfaceProcessed

abstract void onSurfaceProcessed(long timestamp)

Called when a frame is processed using surface successfully.

Parameters
long timestamp

the timestamp of the frame that was processed.