docs/doc/reference/com/google/android/exoplayer2/effect/DefaultVideoFrameProcessor.Factory.Builder.html
Package com.google.android.exoplayer2.effect
Enclosing class:DefaultVideoFrameProcessor.Factory
public static final classDefaultVideoFrameProcessor.Factory.Builderextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
A builder for DefaultVideoFrameProcessor.Factory instances.
Constructors | Constructor | Description |
| --- | --- |
| Builder() |
Creates an instance.
|
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| DefaultVideoFrameProcessor.Factory | build() |
Builds an DefaultVideoFrameProcessor.Factory instance.
|
| DefaultVideoFrameProcessor.Factory.Builder | setEnableColorTransfers(boolean enableColorTransfers) |
Sets whether to transfer colors to an intermediate color space when applying effects.
|
| DefaultVideoFrameProcessor.Factory.Builder | setGlObjectsProvider(GlObjectsProvider glObjectsProvider) |
Sets the GlObjectsProvider.
|
| DefaultVideoFrameProcessor.Factory.Builder | setTextureOutput(DefaultVideoFrameProcessor.TextureOutputListener textureOutputListener, int textureOutputCapacity) |
Sets texture output settings.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public Builder()
Creates an instance.
-
@CanIgnoreReturnValue
public[DefaultVideoFrameProcessor.Factory.Builder](DefaultVideoFrameProcessor.Factory.Builder.html "class in com.google.android.exoplayer2.effect")setEnableColorTransfers(boolean enableColorTransfers)
Sets whether to transfer colors to an intermediate color space when applying effects.
If the input or output is HDR, this must be true.
-
@CanIgnoreReturnValue
public[DefaultVideoFrameProcessor.Factory.Builder](DefaultVideoFrameProcessor.Factory.Builder.html "class in com.google.android.exoplayer2.effect")setGlObjectsProvider([GlObjectsProvider](../util/GlObjectsProvider.html "interface in com.google.android.exoplayer2.util")glObjectsProvider)
Sets the GlObjectsProvider.
The default value is GlObjectsProvider.DEFAULT.
-
@CanIgnoreReturnValue
public[DefaultVideoFrameProcessor.Factory.Builder](DefaultVideoFrameProcessor.Factory.Builder.html "class in com.google.android.exoplayer2.effect")setTextureOutput([DefaultVideoFrameProcessor.TextureOutputListener](DefaultVideoFrameProcessor.TextureOutputListener.html "interface in com.google.android.exoplayer2.effect")textureOutputListener,
@IntRange(from=1L)
int textureOutputCapacity)
Sets texture output settings.
If set, the VideoFrameProcessor will output to OpenGL textures, accessible via DefaultVideoFrameProcessor.TextureOutputListener.onTextureRendered(com.google.android.exoplayer2.util.GlTextureInfo, long, com.google.android.exoplayer2.effect.DefaultVideoFrameProcessor.ReleaseOutputTextureCallback). Textures will stop being outputted when the number of output textures available reaches the textureOutputCapacity. To regain capacity, output textures must be released using DefaultVideoFrameProcessor.ReleaseOutputTextureCallback.
If set, VideoFrameProcessor.setOutputSurfaceInfo(com.google.android.exoplayer2.util.SurfaceInfo) and VideoFrameProcessor.renderOutputFrame(long) will be no-ops, and renderFramesAutomatically will behave as if it is set to true.
If not set, there will be no texture output.
Parameters:textureOutputListener - The DefaultVideoFrameProcessor.TextureOutputListener.textureOutputCapacity - The amount of output textures that may be allocated at a time before texture output blocks. Must be greater than or equal to 1.
-
public[DefaultVideoFrameProcessor.Factory](DefaultVideoFrameProcessor.Factory.html "class in com.google.android.exoplayer2.effect")build()
Builds an DefaultVideoFrameProcessor.Factory instance.