# 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)

*** ** * ** ***


```
public interface ConvolutionFunction1D.Provider
```

<br />

*** ** * ** ***

A configurable provider for `https://developer.android.com/reference/androidx/media3/effect/ConvolutionFunction1D` instances.

## Summary

| ### Public methods |
|---|---|
| `abstract https://developer.android.com/reference/androidx/media3/common/util/Size` | `https://developer.android.com/reference/androidx/media3/effect/ConvolutionFunction1D.Provider#configure(androidx.media3.common.util.Size)(https://developer.android.com/reference/androidx/media3/common/util/Size inputSize)` Configures the provider to return `https://developer.android.com/reference/androidx/media3/effect/ConvolutionFunction1D` based on the input frame dimensions. |
| `abstract https://developer.android.com/reference/androidx/media3/effect/ConvolutionFunction1D` | `https://developer.android.com/reference/androidx/media3/effect/ConvolutionFunction1D.Provider#getConvolution(long)(long presentationTimeUs)` Returns a `https://developer.android.com/reference/androidx/media3/effect/ConvolutionFunction1D`. |

## Public methods

### configure

```
abstract Size configure(Size inputSize)
```

Configures the provider to return `https://developer.android.com/reference/androidx/media3/effect/ConvolutionFunction1D` based on the input frame dimensions.

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

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

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

### getConvolution

```
abstract ConvolutionFunction1D getConvolution(long presentationTimeUs)
```

Returns a `https://developer.android.com/reference/androidx/media3/effect/ConvolutionFunction1D`.

| Parameters |
|---|---|
| `long presentationTimeUs` | The presentation timestamp of the input frame, in microseconds. |