Back to Exoplayer

VideoFrameProcessorTestRunner.SurfaceBitmapReader (ExoPlayer library)

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

latest3.4 KB
Original Source

Package com.google.android.exoplayer2.testutil

Class VideoFrameProcessorTestRunner.SurfaceBitmapReader


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.

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | SurfaceBitmapReader() | |

Method Summary

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. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

- 

SurfaceBitmapReader

public SurfaceBitmapReader()

Method Detail

- 

getSurface

@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

- 

getBitmap

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