# VideoFrameProcessorTestRunner.BitmapReader

Artifact: [androidx.media3:media3-test-utils](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/test/utils/VideoFrameProcessorTestRunner.java+class:androidx.media3.test.utils.VideoFrameProcessorTestRunner.BitmapReader)

*** ** * ** ***


```
public interface VideoFrameProcessorTestRunner.BitmapReader
```

<br />

Known direct subclasses [TextureBitmapReader](https://developer.android.com/reference/androidx/media3/test/utils/TextureBitmapReader), [VideoFrameProcessorTestRunner.SurfaceBitmapReader](https://developer.android.com/reference/androidx/media3/test/utils/VideoFrameProcessorTestRunner.SurfaceBitmapReader)

|---|---|
| `https://developer.android.com/reference/androidx/media3/test/utils/TextureBitmapReader` | Reads from an OpenGL texture. |
| `https://developer.android.com/reference/androidx/media3/test/utils/VideoFrameProcessorTestRunner.SurfaceBitmapReader` | Reads from a `https://developer.android.com/reference/android/view/Surface.html`. |

*** ** * ** ***

Reads a `https://developer.android.com/reference/android/graphics/Bitmap.html` from `https://developer.android.com/reference/androidx/media3/common/VideoFrameProcessor` output.

## Summary

| ### Public methods |
|---|---|
| `abstract https://developer.android.com/reference/android/graphics/Bitmap.html` | `https://developer.android.com/reference/androidx/media3/test/utils/VideoFrameProcessorTestRunner.BitmapReader#getBitmap()()` Returns the output `https://developer.android.com/reference/android/graphics/Bitmap.html`. |
| `abstract @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/view/Surface.html` | `https://developer.android.com/reference/androidx/media3/test/utils/VideoFrameProcessorTestRunner.BitmapReader#getSurface(int,int,boolean)( int width, int height, boolean useHighPrecisionColorComponents )` Returns the `https://developer.android.com/reference/androidx/media3/common/VideoFrameProcessor` output `https://developer.android.com/reference/android/view/Surface.html`, if one is needed. |

## Public methods

### getBitmap

```
abstract Bitmap getBitmap()
```

Returns the output `https://developer.android.com/reference/android/graphics/Bitmap.html`.

### getSurface

```
abstract @Nullable Surface getSurface(
    int width,
    int height,
    boolean useHighPrecisionColorComponents
)
```

Returns the `https://developer.android.com/reference/androidx/media3/common/VideoFrameProcessor` output `https://developer.android.com/reference/android/view/Surface.html`, if one is needed.