public final class

VideoFrameProcessorTestRunner.SurfaceBitmapReader

extends java.lang.Object

implements VideoFrameProcessorTestRunner.BitmapReader

 java.lang.Object

↳androidx.media3.test.utils.VideoFrameProcessorTestRunner.SurfaceBitmapReader

Overview

Reads from a . Only supports SDR input.

Summary

Fields
public final booleanreleaseOutputSurface

Constructors
publicSurfaceBitmapReader(boolean releaseOutputSurface)

Creates an instance.

Methods
public BitmapgetBitmap()

public SurfacegetSurface(int width, int height, boolean useHighPrecisionColorComponents)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public final boolean releaseOutputSurface

Constructors

public SurfaceBitmapReader(boolean releaseOutputSurface)

Creates an instance.

Parameters:

releaseOutputSurface: Whether the VideoFrameProcessor output Surface must be released at calls to VideoFrameProcessorTestRunner.SurfaceBitmapReader.getSurface(int, int, boolean).

Methods

public Surface getSurface(int width, int height, boolean useHighPrecisionColorComponents)

public Bitmap getBitmap()