docs/doc/reference/com/google/android/exoplayer2/testutil/VideoFrameProcessorTestRunner.SurfaceBitmapReader.html
Package com.google.android.exoplayer2.testutil
All Implemented Interfaces:VideoFrameProcessorTestRunner.BitmapReaderEnclosing class:VideoFrameProcessorTestRunner
public static final classVideoFrameProcessorTestRunner.SurfaceBitmapReaderextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[VideoFrameProcessorTestRunner.BitmapReader](VideoFrameProcessorTestRunner.BitmapReader.html "interface in com.google.android.exoplayer2.testutil")
Reads from a Surface. Only supports SDR input.
Constructors | Constructor | Description |
| --- | --- |
| SurfaceBitmapReader() | |
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| Bitmap | getBitmap() |
Returns the output Bitmap.
|
| Surface | getSurface(int width, int height, boolean useHighPrecisionColorComponents) |
Returns the VideoFrameProcessor output Surface, if one is needed.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public SurfaceBitmapReader()
-
@Nullable
public[Surface](https://developer.android.com/reference/android/view/Surface.html "class or interface in android.view")getSurface(int width,
int height,
boolean useHighPrecisionColorComponents)
Description copied from interface: VideoFrameProcessorTestRunner.BitmapReader
Returns the VideoFrameProcessor output Surface, if one is needed.
Specified by:getSurface in interface VideoFrameProcessorTestRunner.BitmapReader
-
public[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap.html "class or interface in android.graphics")getBitmap()
Description copied from interface: VideoFrameProcessorTestRunner.BitmapReader
Returns the output Bitmap.
Specified by:getBitmap in interface VideoFrameProcessorTestRunner.BitmapReader