# DefaultGlFrameProcessor.Factory

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/DefaultGlFrameProcessor.java+class:androidx.media3.effect.DefaultGlFrameProcessor.Factory)

*** ** * ** ***


```
@RequiresApi(value = 26)
class DefaultGlFrameProcessor.Factory : FrameProcessor.Factory
```

<br />

*** ** * ** ***

A `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameProcessor.Factory` that creates `https://developer.android.com/reference/kotlin/androidx/media3/effect/DefaultGlFrameProcessor` instances.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/media3/effect/DefaultGlFrameProcessor.Factory.Builder` A builder for `https://developer.android.com/reference/kotlin/androidx/media3/effect/DefaultGlFrameProcessor.Factory` instances. |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/effect/DefaultGlFrameProcessor!` | `https://developer.android.com/reference/kotlin/androidx/media3/effect/DefaultGlFrameProcessor.Factory#create(androidx.media3.common.video.FrameWriter,java.util.concurrent.Executor,androidx.media3.common.video.FrameProcessor.Listener)( output: https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameWriter!, listenerExecutor: https://developer.android.com/reference/java/util/concurrent/Executor.html!, listener: https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameProcessor.Listener! )` Creates a `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameProcessor` that sends frames to the given `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameWriter`. |

## Public functions

### create

```
fun create(
    output: FrameWriter!,
    listenerExecutor: Executor!,
    listener: FrameProcessor.Listener!
): DefaultGlFrameProcessor!
```

Creates a `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameProcessor` that sends frames to the given `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameWriter`.

The created `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameProcessor` does not `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameWriter#close()` the passed in `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameWriter`.

| Parameters |
|---|---|
| `output: https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameWriter!` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameWriter` to which the `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameProcessor` outputs. |
| `listenerExecutor: https://developer.android.com/reference/java/util/concurrent/Executor.html!` | The `https://developer.android.com/reference/java/util/concurrent/Executor.html` on which the `listener` is invoked. |
| `listener: https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameProcessor.Listener!` | A `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameProcessor.Listener` to be invoked for `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameProcessor` events. |