VideoFrameProcessorTestRunner.SurfaceBitmapReader


class VideoFrameProcessorTestRunner.SurfaceBitmapReader : VideoFrameProcessorTestRunner.BitmapReader


Reads from a Surface. Only supports SDR input.

Summary

Public constructors

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 constructors

SurfaceBitmapReader

SurfaceBitmapReader()

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.