Package com.banuba.sdk.effect_player
Interface FrameProcessor
-
- All Known Implementing Classes:
FrameProcessor.CppProxy
public interface FrameProcessor
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
FrameProcessor.CppProxy
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static FrameProcessor
createPhotoProcessor(ProcessorConfiguration config)
Photo processor.static FrameProcessor
createRealtimeProcessor(RealtimeProcessorMode mode, ProcessorConfiguration config)
Realtime feed processor.static FrameProcessor
createVideoProcessor(ProcessorConfiguration config)
Video processor.ProcessorType
getType()
ProcessorResult
pop()
void
push(FrameData fd)
-
-
-
Method Detail
-
getType
@NonNull ProcessorType getType()
-
push
void push(@Nullable FrameData fd)
-
pop
@NonNull ProcessorResult pop()
-
createRealtimeProcessor
@Nullable static FrameProcessor createRealtimeProcessor(@NonNull RealtimeProcessorMode mode, @Nullable ProcessorConfiguration config)
Realtime feed processor. See RealtimeProcessorMode for more info.
-
createPhotoProcessor
@Nullable static FrameProcessor createPhotoProcessor(@Nullable ProcessorConfiguration config)
Photo processor. `push` to set photo, processing happens on `pop` synchronously. Several `pop` calls return same result without unnecessary processing, except case when recognizer pipeline was changed by EffectPlayer, processing will be restarted.
-
createVideoProcessor
@Nullable static FrameProcessor createVideoProcessor(@Nullable ProcessorConfiguration config)
Video processor. Consistent `push` - `pop` will process frames synchronously.
-
-