Skip to content

· desktop-demo-samples

Video Effects SDK 2.6.0.118490 for Windows & macOS

Video Effects SDK 2.6#

Release 2.6.0 for Windows and macOS. Versions 2.4 and 2.5 were iOS-only releases of the Swift package.

IPipeline and IReplacementController are thread-safe#

Any method may be called from any thread without synchronization, except that IPipeline::process must not be called while another process() call is running. Loading a model or creating the engine no longer holds up process(). The same holds for the Obj-C/Swift Pipeline: only one of its process methods may run at a time, and ReplacementController.background may be set from any thread. Enabling an effect may take a while (it may load a model), so avoid calling enable* methods on the UI thread. Parameter setters such as setColorCorrectionPower are cheap.

Effects#

Changes#

Breaking changes#

  • Misspelled enableColorCorrectionWithReferance deprecated. Use enableColorCorrectionWithReference.
  • Removed the segmentationPresetSpeed and segmentationPresetLightning values of SegmentationPreset (Obj-C/Swift: speed and lightning of SegmentationPreset).
  • Removed the old background denoise effect, replaced by Noise Suppression: enableDenoiseBackground, disableBackgroundDenoise, setDenoisePower/getDenoisePower, setDenoiseWithFace/getDenoiseWithFace and getDenoiseBackgroundState of IPipeline (Obj-C/Swift: enableDenoiseBackground, disableDenoiseBackground, denoisePower and denoiseWithFace).
  • Beautification, Color Correction, Low Light do not work on CPU anymore: enabling them on the CPU backend returns notSupportedByBackend. Code that checked for engineInitializationError there has to check for notSupportedByBackend now.
  • macOS x86_64: The minimum macOS version is 11.0 instead of 10.15, as for arm64.
  • PipelineErrorCode::invalidArguemnt is renamed to invalidArgument.
  • IReplacementController::setBackgroundImage (Obj-C/Swift background) does not copy the frame anymore: don't release a frame created with makeCopy false while it is the background.
  • Windows: With background replacement and no background image, the background of an NV12 frame is black, as on Apple.

Fixes#

Sample#

The sample is reworked: it uses Qt QML now, with an updated design.

  • Camera capture is reworked on native APIs: Media Foundation on Windows, AVFoundation on macOS.
  • The SDK usage is reworked to demonstrate a more efficient path: camera frames go to the SDK and to the screen without conversions and copies on CPU (NV12 on Windows, CVPixelBuffer on macOS).
  • Clearer error messages.

Ready to try it in your app?

Start a free trial in the Developer Portal and run your first effect today.