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 BitmapgetBitmap()Returns the outputBitmap.SurfacegetSurface(int width, int height, boolean useHighPrecisionColorComponents)Returns theVideoFrameProcessoroutputSurface, if one is needed.
-
-
-
Method Detail
-
getSurface
@Nullable public Surface getSurface(int width, int height, boolean useHighPrecisionColorComponents)
Description copied from interface:VideoFrameProcessorTestRunner.BitmapReaderReturns theVideoFrameProcessoroutputSurface, if one is needed.- Specified by:
getSurfacein interfaceVideoFrameProcessorTestRunner.BitmapReader
-
getBitmap
public Bitmap getBitmap()
Description copied from interface:VideoFrameProcessorTestRunner.BitmapReaderReturns the outputBitmap.- Specified by:
getBitmapin interfaceVideoFrameProcessorTestRunner.BitmapReader
-
-