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