Video Effects SDK 2.6.0.118490
AI-powered SDK for real-time video enhancement.
Loading...
Searching...
No Matches
tsvb::IPipelineConfiguration Class Referenceabstract

Pipeline configuration. More...

#include <vb_sdk/pipeline_config.h>

Inheritance diagram for tsvb::IPipelineConfiguration:
[legend]

Public Member Functions

virtual void setBackend (int backend)=0
 Sets the backend.
virtual int getBackend () const =0
 Returns the backend, one of Backend values.
virtual void setSegmentationPreset (int preset)=0
 Sets the segmentation preset.
virtual int getSegmentationPreset () const =0
 Returns the segmentation preset, one of SegmentationPreset values.
virtual void setSegmentationMLBackends (int mlBackends)=0
 Sets the mask of enabled ML backends.
virtual int getSegmentationMLBackends () const =0
 Returns the mask of enabled ML backends, see MLBackend.
Public Member Functions inherited from tsvb::IRelease
virtual void release ()=0
 Releases the memory that was allocated for the object.

Detailed Description

Member Function Documentation

◆ getBackend()

virtual int tsvb::IPipelineConfiguration::getBackend ( ) const
pure virtual

Returns the backend, one of Backend values.

◆ getSegmentationMLBackends()

virtual int tsvb::IPipelineConfiguration::getSegmentationMLBackends ( ) const
pure virtual

Returns the mask of enabled ML backends, see MLBackend.

◆ getSegmentationPreset()

virtual int tsvb::IPipelineConfiguration::getSegmentationPreset ( ) const
pure virtual

Returns the segmentation preset, one of SegmentationPreset values.

◆ setBackend()

virtual void tsvb::IPipelineConfiguration::setBackend ( int backend)
pure virtual

Sets the backend.

Parameters
backendOne of Backend values. Default is Backend::GPU. Backend::CPU is obsolete.

◆ setSegmentationMLBackends()

virtual void tsvb::IPipelineConfiguration::setSegmentationMLBackends ( int mlBackends)
pure virtual

Sets the mask of enabled ML backends.

if (neuralEngineEnabled) {
}
config->setSegmentationMLBackends(backends);
@ mlBackendCPU
CPU.
Definition pipeline_config.h:35
@ mlBackendAppleNeuralEngine
Apple Neural Engine. Has effect on Apple platforms only.
Definition pipeline_config.h:37
@ mlBackendGPU
GPU. Has effect on Apple platforms only, so far.
Definition pipeline_config.h:36
Parameters
mlBackendsBit mask of MLBackend values. Default is all of them, mlBackendCPU | mlBackendGPU | mlBackendAppleNeuralEngine.

◆ setSegmentationPreset()

virtual void tsvb::IPipelineConfiguration::setSegmentationPreset ( int preset)
pure virtual

Sets the segmentation preset.

Parameters
presetOne of SegmentationPreset values. Default is segmentationPresetBalanced.

The documentation for this class was generated from the following file: