Class VideoFrameProcessorTestRunner.SurfaceBitmapReader
- java.lang.Object
-
- com.google.android.exoplayer2.testutil.VideoFrameProcessorTestRunner.SurfaceBitmapReader
-
- All Implemented Interfaces:
VideoFrameProcessorTestRunner.BitmapReader
- Enclosing class:
- VideoFrameProcessorTestRunner
public static final class VideoFrameProcessorTestRunner.SurfaceBitmapReader extends Object implements VideoFrameProcessorTestRunner.BitmapReader
Reads from a
Surface
. Only supports SDR input.
-
-
Constructor Summary
Constructors Constructor Description SurfaceBitmapReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bitmap
getBitmap()
Returns the outputBitmap
.Surface
getSurface(int width, int height, boolean useHighPrecisionColorComponents)
Returns theVideoFrameProcessor
outputSurface
, if one is needed.
-
-
-
Method Detail
-
getSurface
@Nullable public Surface getSurface(int width, int height, boolean useHighPrecisionColorComponents)
Description copied from interface:VideoFrameProcessorTestRunner.BitmapReader
Returns theVideoFrameProcessor
outputSurface
, if one is needed.- Specified by:
getSurface
in interfaceVideoFrameProcessorTestRunner.BitmapReader
-
getBitmap
public Bitmap getBitmap()
Description copied from interface:VideoFrameProcessorTestRunner.BitmapReader
Returns the outputBitmap
.- Specified by:
getBitmap
in interfaceVideoFrameProcessorTestRunner.BitmapReader
-
-