Interface VideoFrameProcessor.Factory
-
- All Known Implementing Classes:
DefaultVideoFrameProcessor.Factory
- Enclosing interface:
- VideoFrameProcessor
public static interface VideoFrameProcessor.Factory
A factory forVideoFrameProcessor
instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VideoFrameProcessor
create(Context context, List<Effect> effects, DebugViewProvider debugViewProvider, ColorInfo inputColorInfo, ColorInfo outputColorInfo, boolean renderFramesAutomatically, Executor listenerExecutor, VideoFrameProcessor.Listener listener)
Creates a newVideoFrameProcessor
instance.
-
-
-
Method Detail
-
create
VideoFrameProcessor create(Context context, List<Effect> effects, DebugViewProvider debugViewProvider, ColorInfo inputColorInfo, ColorInfo outputColorInfo, boolean renderFramesAutomatically, Executor listenerExecutor, VideoFrameProcessor.Listener listener) throws VideoFrameProcessingException
Creates a newVideoFrameProcessor
instance.- Parameters:
context
- AContext
.effects
- TheEffect
instances to apply to each frame. Applied on theoutputColorInfo
's color space.debugViewProvider
- ADebugViewProvider
.inputColorInfo
- TheColorInfo
for the input frames.outputColorInfo
- TheColorInfo
for the output frames.renderFramesAutomatically
- Iftrue
, the instance will render output frames to the output surface automatically asVideoFrameProcessor
is done processing them. Iffalse
, theVideoFrameProcessor
will block untilVideoFrameProcessor.renderOutputFrame(long)
is called, to render or drop the frame.listenerExecutor
- TheExecutor
on which thelistener
is invoked.listener
- AVideoFrameProcessor.Listener
.- Returns:
- A new instance.
- Throws:
VideoFrameProcessingException
- If a problem occurs while creating theVideoFrameProcessor
.
-
-