Back to Exoplayer

VideoFrameProcessorTestRunner.BitmapReader (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/testutil/VideoFrameProcessorTestRunner.BitmapReader.html

latest2.2 KB
Original Source

Package com.google.android.exoplayer2.testutil

Interface VideoFrameProcessorTestRunner.BitmapReader


public static interfaceVideoFrameProcessorTestRunner.BitmapReader

Reads a Bitmap from VideoFrameProcessor output.

Method Summary

All Methods Instance Methods Abstract 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. |

Method Detail

- 

getSurface

@Nullable[Surface](https://developer.android.com/reference/android/view/Surface.html "class or interface in android.view")getSurface​(int width,
                   int height,
                   boolean useHighPrecisionColorComponents)

Returns the VideoFrameProcessor output Surface, if one is needed.

- 

getBitmap

[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap.html "class or interface in android.graphics")getBitmap()

Returns the output Bitmap.