VideoFrameProcessorTestRunner.SurfaceBitmapReader


public final class VideoFrameProcessorTestRunner.SurfaceBitmapReader implements VideoFrameProcessorTestRunner.BitmapReader


Reads from a Surface. Only supports SDR input.

Summary

Public constructors

Public methods

Bitmap

Returns the output Bitmap.

@Nullable Surface
getSurface(
    int width,
    int height,
    boolean useHighPrecisionColorComponents
)

Returns the VideoFrameProcessor output Surface, if one is needed.

Public constructors

SurfaceBitmapReader

public SurfaceBitmapReader()

Public methods

getBitmap

public Bitmap getBitmap()

Returns the output Bitmap.

getSurface

public @Nullable Surface getSurface(
    int width,
    int height,
    boolean useHighPrecisionColorComponents
)

Returns the VideoFrameProcessor output Surface, if one is needed.