DebugViewEffect
@UnstableApi
public final class DebugViewEffect implements GlEffect
GlEffect that renders to a SurfaceView provided by DebugViewProvider.
Summary
Public constructors |
|---|
DebugViewEffect(Creates a new instance. |
Public methods |
|
|---|---|
GlShaderProgram |
toGlShaderProgram(Context context, boolean useHdr)Returns a |
Inherited methods |
||
|---|---|---|
|
||
Public constructors
DebugViewEffect
public DebugViewEffect(
DebugViewProvider debugViewProvider,
ColorInfo outputColorInfo
)
Creates a new instance.
| Parameters | |
|---|---|
DebugViewProvider debugViewProvider |
The class that provides the |
ColorInfo outputColorInfo |
The |
Public methods
toGlShaderProgram
public GlShaderProgram toGlShaderProgram(Context context, boolean useHdr)
Returns a GlShaderProgram that applies the effect.
| Parameters | |
|---|---|
Context context |
A |
boolean useHdr |
Whether input textures come from an HDR source. If |
| Throws | |
|---|---|
androidx.media3.common.VideoFrameProcessingException |
If an error occurs while creating the |