Class GlEffectsFrameProcessor.Factory
- java.lang.Object
-
- com.google.android.exoplayer2.effect.GlEffectsFrameProcessor.Factory
-
- All Implemented Interfaces:
FrameProcessor.Factory
- Enclosing class:
- GlEffectsFrameProcessor
public static class GlEffectsFrameProcessor.Factory extends Object implements FrameProcessor.Factory
A factory forGlEffectsFrameProcessor
instances.
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GlEffectsFrameProcessor
create(Context context, FrameProcessor.Listener listener, List<Effect> effects, DebugViewProvider debugViewProvider, ColorInfo colorInfo, boolean releaseFramesAutomatically)
Creates a newFrameProcessor
instance.
-
-
-
Method Detail
-
create
public GlEffectsFrameProcessor create(Context context, FrameProcessor.Listener listener, List<Effect> effects, DebugViewProvider debugViewProvider, ColorInfo colorInfo, boolean releaseFramesAutomatically) throws FrameProcessingException
Creates a newFrameProcessor
instance.All
Effect
instances must beGlEffect
instances.Using HDR requires the
EXT_YUV_target
OpenGL extension.- Specified by:
create
in interfaceFrameProcessor.Factory
- Parameters:
context
- AContext
.listener
- AFrameProcessor.Listener
.effects
- TheEffect
instances to apply to each frame.debugViewProvider
- ADebugViewProvider
.colorInfo
- TheColorInfo
for input and output frames.releaseFramesAutomatically
- Iftrue
, theFrameProcessor
will render output frames to the output surface automatically asFrameProcessor
is done processing them. Iffalse
, theFrameProcessor
will block untilFrameProcessor.releaseOutputFrame(long)
is called, to render or drop the frame.- Returns:
- A new instance.
- Throws:
FrameProcessingException
- If a problem occurs while creating theFrameProcessor
.
-
-