|
Video Effects SDK 2.6.0.118490
AI-powered SDK for real-time video enhancement.
|
Classes | |
| class | IAppleCompatFrame |
| Access to IFrame as CVPixelBuffer on Apple platforms. More... | |
| class | IAppleCompatFrameFactory |
| Creates IFrame from CVPixelBuffer on Apple platforms. More... | |
| class | IAuthResult |
| Result of authorization. More... | |
| class | IError |
| Error description. More... | |
| class | IFrame |
| Video frame. More... | |
| class | IFrameFactory |
| Creates IFrame instances. More... | |
| class | ILockedFrameData |
| Access to the data inside IFrame. More... | |
| class | IPipeline |
| Configuration of effects and frame processor. More... | |
| class | IPipelineConfiguration |
| Pipeline configuration. More... | |
| class | IRelease |
| Base interface of all objects created by the SDK. More... | |
| class | IReplacementController |
| Controls the custom background of background replacement. More... | |
| class | ISDKFactory |
| The entry point of the SDK. More... | |
Typedefs | |
| typedef int | PipelineError |
| Error code of IPipeline, one of PipelineErrorCode values. | |
| typedef void(*) | pfnOnAuthCompletedCallback(IAuthResult *result, void *ctx) |
| Callback called when asynchronous authorization is completed. | |
| typedef ISDKFactory *(*) | pfnCreateSDKFactory() |
| Type of the createSDKFactory() function exported from the SDK library. | |
Functions | |
| ISDKFactory * | createSDKFactory () |
| Creates an instance of ISDKFactory. The caller is responsible for releasing it. | |
| typedef ISDKFactory *(*) tsvb::pfnCreateSDKFactory() |
Type of the createSDKFactory() function exported from the SDK library.
| typedef void(*) tsvb::pfnOnAuthCompletedCallback(IAuthResult *result, void *ctx) |
Callback called when asynchronous authorization is completed.
| result | The result of authorization. Don't call IAuthResult::release() on it, the result is deleted after the callback is finished. |
| ctx | The context passed to ISDKFactory::auth(). |
| typedef int tsvb::PipelineError |
Error code of IPipeline, one of PipelineErrorCode values.
| enum tsvb::AuthStatus : int |
Result of authorization.
| enum tsvb::Backend : int |
Backend of the pipeline.
| Enumerator | |
|---|---|
| CPU | CPU-based pipeline.
|
| GPU | GPU-based pipeline. |
| enum tsvb::ColorCorrectionParam : int |
Parameters of the color correction effect, addressed by IPipeline::setColorCorrectionParam() and IPipeline::getColorCorrectionParam().
| Enumerator | |
|---|---|
| colorCorrectionParamAutoMode | Fully automatic correction: the effect analyzes the frame periodically and drives white balance, contrast and exposure itself. With it off only the manual parameters below are applied. 0 is off, anything else is on. Default 1. |
| colorCorrectionParamPower | Strength of the automatic correction: exposure, contrast and white balance together. The same value IPipeline::setColorCorrectionPower() sets, so either call moves it. [0, 1], default 1. |
| colorCorrectionParamWhiteBalance | Strength of the automatic white balance. 0 turns it off, anything above turns it on. Ignored while autoMode is on, which drives white balance already; with autoMode off it enables auto white balance alone, leaving contrast and exposure untouched. [0, 1], default 0. |
| colorCorrectionParamExposure | Manual exposure: negative darkens, positive brightens. Applied only while the automatic correction is not driving exposure. [-1, 1], default 0. |
| colorCorrectionParamTemperature | Manual color temperature: negative is cool, positive is warm. [-1, 1], default 0. |
| colorCorrectionParamTint | Manual tint. [-1, 1], default 0. |
| colorCorrectionParamVibrance | Manual vibrance. [-1, 1], default 0. |
| colorCorrectionParamContrast | Manual local contrast. Applied only while the automatic correction is not driving contrast. [-1, 1], default 0. |
| colorCorrectionParamUpdatePeriodMs | Shortest interval, in milliseconds, between two automatic analyses of the frame. Larger values cost less but follow scene changes more slowly. Matters only while autoMode or whiteBalance is on. [0, 5000], default 200. |
| enum tsvb::ColorMatrix : int |
| enum tsvb::ColorRange : int |
| enum tsvb::FrameFormat |
| enum tsvb::FrameLock |
Access mode for IFrame::lock().
| Enumerator | |
|---|---|
| read | Read only. Don't change the data. |
| write | Write. Changes are applied when ILockedFrameData is released. |
| readWrite | Read and write. Changes are applied when ILockedFrameData is released. |
Identifiers of platform-specific interfaces.
Pass to IFrame::getInterface() or IFrameFactory::getInterface() and cast the returned pointer with reinterpret_cast to the requested interface.
| Enumerator | |
|---|---|
| appleCompatFrame | IAppleCompatFrame, supported by IFrame on Apple platforms. |
| appleCompatFrameFactory | IAppleCompatFrameFactory, supported by IFrameFactory on Apple platforms. |
| enum tsvb::MLBackend : int |
Backends of ML inference for segmentation, combined into a bit mask.
The mask says what inference is allowed to run on; a platform uses what it supports of it and ignores the rest. On Apple platforms Core ML runs on the CPU in any case, and the other bits add the GPU and the Neural Engine to it: mlBackendCPU alone is the CPU only, with mlBackendGPU the CPU and the GPU, with mlBackendAppleNeuralEngine the CPU and the Neural Engine, with both all three. Elsewhere inference runs on the CPU so far.
| Enumerator | |
|---|---|
| mlBackendCPU | CPU. |
| mlBackendGPU | GPU. Has effect on Apple platforms only, so far. |
| mlBackendAppleNeuralEngine | Apple Neural Engine. Has effect on Apple platforms only. |
| enum tsvb::NativeErrorType : int |
Error codes of IPipeline.
| Enumerator | |
|---|---|
| ok | Success. |
| invalidArgument | One or more arguments are incorrect. |
| noFeaturesEnabled | No effect is enabled: IPipeline::process() has nothing to do. |
| engineInitializationError | Can't initialize the processing engine, the hardware or software is not supported. |
| resourceAllocationError | Not enough memory, disk space etc. |
| notSupportedByBackend | The effect is not available on the current Backend; another one may have it. |
| enabledUnsupportedFeatures | IPipeline::setConfiguration(): an enabled effect is not available on the requested Backend. Disable it first. |
| invalidUsage | The call breaks a requirement of the SDK's documentation and is refused. |
| enum tsvb::PortraitLightingParam : int |
Parameters of the portrait lighting effect, addressed by IPipeline::setPortraitLightingParam() and IPipeline::getPortraitLightingParam().
| enum tsvb::Rotation |
| enum tsvb::SegmentationPreset : int |
| ISDKFactory * tsvb::createSDKFactory | ( | ) |
Creates an instance of ISDKFactory. The caller is responsible for releasing it.
For an application linked with the SDK library: libtsvb.dylib on macOS, the tsvb.lib import library on Windows. Returns nullptr on failure.