Back to Exoplayer

VideoFrameProcessor.Factory (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/util/VideoFrameProcessor.Factory.html

latest4.2 KB
Original Source

Package com.google.android.exoplayer2.util

Interface VideoFrameProcessor.Factory

  • All Known Implementing Classes:DefaultVideoFrameProcessor.FactoryEnclosing interface:VideoFrameProcessor

public static interfaceVideoFrameProcessor.Factory

A factory for VideoFrameProcessor 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 new VideoFrameProcessor instance. |

Method Detail

- 

create

[VideoFrameProcessor](VideoFrameProcessor.html "interface in com.google.android.exoplayer2.util")create​([Context](https://developer.android.com/reference/android/content/Context.html "class or interface in android.content")context,[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[Effect](Effect.html "interface in com.google.android.exoplayer2.util")> effects,[DebugViewProvider](DebugViewProvider.html "interface in com.google.android.exoplayer2.util")debugViewProvider,[ColorInfo](../video/ColorInfo.html "class in com.google.android.exoplayer2.video")inputColorInfo,[ColorInfo](../video/ColorInfo.html "class in com.google.android.exoplayer2.video")outputColorInfo,
                           boolean renderFramesAutomatically,[Executor](https://developer.android.com/reference/java/util/concurrent/Executor.html "class or interface in java.util.concurrent")listenerExecutor,[VideoFrameProcessor.Listener](VideoFrameProcessor.Listener.html "interface in com.google.android.exoplayer2.util")listener)
                    throws[VideoFrameProcessingException](VideoFrameProcessingException.html "class in com.google.android.exoplayer2.util")

Creates a new VideoFrameProcessor instance. Parameters:context - A Context.effects - The Effect instances to apply to each frame. Applied on the outputColorInfo's color space.debugViewProvider - A DebugViewProvider.inputColorInfo - The ColorInfo for the input frames.outputColorInfo - The ColorInfo for the output frames.renderFramesAutomatically - If true, the instance will render output frames to the output surface automatically as VideoFrameProcessor is done processing them. If false, the VideoFrameProcessor will block until VideoFrameProcessor.renderOutputFrame(long) is called, to render or drop the frame.listenerExecutor - The Executor on which the listener is invoked.listener - A VideoFrameProcessor.Listener.Returns:A new instance.Throws:VideoFrameProcessingException - If a problem occurs while creating the VideoFrameProcessor.