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

Access to IFrame as CVPixelBuffer on Apple platforms. More...

#include <vb_sdk/apple/compat_frame.h>

Public Member Functions

virtual CVPixelBufferRef toCVPixelBuffer ()=0
 Converts internal storage to CVPixelBuffer.

Detailed Description

Access to IFrame as CVPixelBuffer on Apple platforms.

Obtained with IFrame::getInterface() and InterfaceTypeID::appleCompatFrame.

Member Function Documentation

◆ toCVPixelBuffer()

virtual CVPixelBufferRef tsvb::IAppleCompatFrame::toCVPixelBuffer ( )
pure virtual

Converts internal storage to CVPixelBuffer.

The IFrame can't be used in the pipeline after this method is called. To use the CVPixelBuffer after the IFrame is released, increase its reference count with CVPixelBufferRetain.

auto appleCompatFrame = reinterpret_cast<IAppleCompatFrame*>(
frame->getInterface(InterfaceTypeID::appleCompatFrame)
);
CVPixelBufferRef pixelBuffer = appleCompatFrame->toCVPixelBuffer();
Access to IFrame as CVPixelBuffer on Apple platforms.
Definition compat_frame.h:12
@ appleCompatFrame
IAppleCompatFrame, supported by IFrame on Apple platforms.
Definition common.h:12

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