# GlTextureProducer

# GlTextureProducer

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

*** ** * ** ***

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

<br />

```
@UnstableApi
interface GlTextureProducer
```

<br />

Known direct subclasses  
[VideoCompositor](https://developer.android.com/reference/kotlin/androidx/media3/effect/VideoCompositor)  

|----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|
| [VideoCompositor](https://developer.android.com/reference/kotlin/androidx/media3/effect/VideoCompositor) | Interface for a video compositor that combines frames from multiple input sources to produce output frames. |

Known indirect subclasses  
[DefaultVideoCompositor](https://developer.android.com/reference/kotlin/androidx/media3/effect/DefaultVideoCompositor)  

|------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [DefaultVideoCompositor](https://developer.android.com/reference/kotlin/androidx/media3/effect/DefaultVideoCompositor) | A basic[VideoCompositor](https://developer.android.com/reference/kotlin/androidx/media3/effect/VideoCompositor)implementation that takes in frames from input sources' streams and combines them into one output stream. |

*** ** * ** ***

A component that outputs[OpenGL textures](https://developer.android.com/reference/kotlin/androidx/media3/common/GlTextureInfo).

## Summary

|                                                                            ### Nested types                                                                             |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `interface `[GlTextureProducer.Listener](https://developer.android.com/reference/kotlin/androidx/media3/effect/GlTextureProducer.Listener) Listener for texture output. |

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [releaseOutputTexture](https://developer.android.com/reference/kotlin/androidx/media3/effect/GlTextureProducer#releaseOutputTexture(long))`(presentationTimeUs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` Releases the output texture at the given`presentationTimeUs`. |

## Public functions

### releaseOutputTexture

```
fun releaseOutputTexture(presentationTimeUs: Long): Unit
```

Releases the output texture at the given`presentationTimeUs`.