# ConvolutionFunction1D.Provider

# ConvolutionFunction1D.Provider

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/effect/ConvolutionFunction1D.Provider "View this page in Java")

<br />

```
interface ConvolutionFunction1D.Provider
```

<br />

*** ** * ** ***

A configurable provider for[ConvolutionFunction1D](https://developer.android.com/reference/kotlin/androidx/media3/effect/ConvolutionFunction1D)instances.

## Summary

|                                                  ### Public functions                                                   |
|-------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Size](https://developer.android.com/reference/kotlin/androidx/media3/common/util/Size)`!`                              | [configure](https://developer.android.com/reference/kotlin/androidx/media3/effect/ConvolutionFunction1D.Provider#configure(androidx.media3.common.util.Size))`(inputSize: `[Size](https://developer.android.com/reference/kotlin/androidx/media3/common/util/Size)`!)` Configures the provider to return[1D convolution functions](https://developer.android.com/reference/kotlin/androidx/media3/effect/ConvolutionFunction1D)based on the input frame dimensions. |
| [ConvolutionFunction1D](https://developer.android.com/reference/kotlin/androidx/media3/effect/ConvolutionFunction1D)`!` | [getConvolution](https://developer.android.com/reference/kotlin/androidx/media3/effect/ConvolutionFunction1D.Provider#getConvolution(long))`(presentationTimeUs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` Returns a[1D convolution function](https://developer.android.com/reference/kotlin/androidx/media3/effect/ConvolutionFunction1D).                                                                                 |

## Public functions

### configure

```
fun configure(inputSize: Size!): Size!
```

Configures the provider to return[1D convolution functions](https://developer.android.com/reference/kotlin/androidx/media3/effect/ConvolutionFunction1D)based on the input frame dimensions.

This method must be called before[getConvolution](https://developer.android.com/reference/kotlin/androidx/media3/effect/ConvolutionFunction1D.Provider#getConvolution(long)).  

|                                               Parameters                                                |
|---------------------------------------------------------------------------------------------------------|-------------------------------------------------------|
| `inputSize: `[Size](https://developer.android.com/reference/kotlin/androidx/media3/common/util/Size)`!` | The input frame size on which to apply a convolution. |

|                                          Returns                                           |
|--------------------------------------------------------------------------------------------|-------------------------------------------------------|
| [Size](https://developer.android.com/reference/kotlin/androidx/media3/common/util/Size)`!` | The output frame size after applying the convolution. |

### getConvolution

```
fun getConvolution(presentationTimeUs: Long): ConvolutionFunction1D!
```

Returns a[1D convolution function](https://developer.android.com/reference/kotlin/androidx/media3/effect/ConvolutionFunction1D).  

|                                             Parameters                                              |
|-----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| `presentationTimeUs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | The presentation timestamp of the input frame, in microseconds. |