SeparableConvolution
@UnstableApi
abstract class SeparableConvolution : GlEffect
GaussianBlurWithFrameOverlaid |
A |
GaussianBlur |
A |
A GlEffect for performing separable convolutions.
A single 1D convolution function is applied horizontally on a first pass and vertically on a second pass.
Summary
Public constructors |
|---|
|
Creates an instance with |
SeparableConvolution(scaleWidth: Float, scaleHeight: Float)Creates an instance. |
Public functions |
|
|---|---|
abstract ConvolutionFunction1D! |
getConvolution(presentationTimeUs: Long)Returns a |
GlShaderProgram! |
toGlShaderProgram(context: Context!, useHdr: Boolean)Returns a |
Inherited functions |
||
|---|---|---|
|
||
Public constructors
SeparableConvolution
SeparableConvolution()
Creates an instance with scaleWidth and scaleHeight set to 1.0f.
SeparableConvolution
SeparableConvolution(scaleWidth: Float, scaleHeight: Float)
Creates an instance.
Public functions
getConvolution
abstract fun getConvolution(presentationTimeUs: Long): ConvolutionFunction1D!
Returns a 1D convolution function.
| Parameters | |
|---|---|
presentationTimeUs: Long |
The presentation timestamp of the input frame, in microseconds. |
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 |