VideoFrameProcessorTestRunner.SurfaceBitmapReader


class VideoFrameProcessorTestRunner.SurfaceBitmapReader : VideoFrameProcessorTestRunner.BitmapReader


Reads from a Surface. Only supports SDR input.

Summary

Public constructors

SurfaceBitmapReader(releaseOutputSurface: Boolean)

Creates an instance.

Public functions

Bitmap!

Returns the output Bitmap.

Surface?
getSurface(
    width: Int,
    height: Int,
    useHighPrecisionColorComponents: Boolean
)

Returns the VideoFrameProcessor output Surface, if one is needed.

Public properties

Boolean

Public constructors

SurfaceBitmapReader

SurfaceBitmapReader(releaseOutputSurface: Boolean)

Creates an instance.

Parameters
releaseOutputSurface: Boolean

Whether the VideoFrameProcessor output Surface must be released at calls to getSurface.

Public functions

getBitmap

fun getBitmap(): Bitmap!

Returns the output Bitmap.

getSurface

fun getSurface(
    width: Int,
    height: Int,
    useHighPrecisionColorComponents: Boolean
): Surface?

Returns the VideoFrameProcessor output Surface, if one is needed.

Public properties

releaseOutputSurface

val releaseOutputSurfaceBoolean