Interface FrameProcessor.Factory
-
- All Known Implementing Classes:
GlEffectsFrameProcessor.Factory
- Enclosing interface:
- FrameProcessor
public static interface FrameProcessor.Factory
A factory forFrameProcessor
instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FrameProcessor
create(Context context, FrameProcessor.Listener listener, List<Effect> effects, DebugViewProvider debugViewProvider, ColorInfo colorInfo, boolean releaseFramesAutomatically)
Creates a newFrameProcessor
instance.
-
-
-
Method Detail
-
create
FrameProcessor create(Context context, FrameProcessor.Listener listener, List<Effect> effects, DebugViewProvider debugViewProvider, ColorInfo colorInfo, boolean releaseFramesAutomatically) throws FrameProcessingException
Creates a newFrameProcessor
instance.- 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
.
-
-