|
Video Effects SDK 2.6.0.118490
AI-powered SDK for real-time video enhancement.
|
Video frame. More...
#include <vb_sdk/frame.h>
Public Member Functions | |
| virtual int | frameFormat () const =0 |
| Returns the format of data, one of FrameFormat values. | |
| virtual unsigned int | width () const =0 |
| Returns the number of pixels in horizontal direction. | |
| virtual unsigned int | height () const =0 |
| Returns the number of pixels in vertical direction. | |
| virtual Rotation | rotation () const =0 |
| Returns rotation of the frame content. | |
| virtual void | setRotation (Rotation rotation)=0 |
| Sets rotation of the frame content. | |
| virtual ColorRange | colorRange () const =0 |
| Returns the range of the Y'CbCr values. See setColorRange(). | |
| virtual void | setColorRange (ColorRange range)=0 |
| Sets the range of the Y'CbCr values of an NV12 frame. | |
| virtual ColorMatrix | colorMatrix () const =0 |
| Returns the matrix of the Y'CbCr values. See setColorMatrix(). | |
| virtual void | setColorMatrix (ColorMatrix matrix)=0 |
| Sets the matrix that turns the Y'CbCr values of an NV12 frame into R'G'B'. | |
| virtual ILockedFrameData * | lock (int frameLock)=0 |
| Gets access to the frame data in process memory. | |
| virtual void * | getInterface (InterfaceTypeID interfaceTypeID)=0 |
| Returns a platform-specific interface. | |
| Public Member Functions inherited from tsvb::IRelease | |
| virtual void | release ()=0 |
| Releases the memory that was allocated for the object. | |
Video frame.
Create frames with IFrameFactory.
Not thread-safe: don't use a frame from several threads at once.
|
pure virtual |
Returns the matrix of the Y'CbCr values. See setColorMatrix().
|
pure virtual |
Returns the range of the Y'CbCr values. See setColorRange().
|
pure virtual |
Returns the format of data, one of FrameFormat values.
|
pure virtual |
Returns a platform-specific interface.
IFrame supports IAppleCompatFrame on Apple platforms, pass InterfaceTypeID::appleCompatFrame to get it. Cast the returned pointer with reinterpret_cast. The returned object is owned by the frame, don't release it.
| interfaceTypeID | See InterfaceTypeID. |
|
pure virtual |
Returns the number of pixels in vertical direction.
|
pure virtual |
Gets access to the frame data in process memory.
Don't use the IFrame until the returned ILockedFrameData is released. With FrameLock::write or FrameLock::readWrite, may block for a while if the frame is in use by a pipeline.
| frameLock | One of FrameLock values: FrameLock::read, FrameLock::write or FrameLock::readWrite. |
|
pure virtual |
Returns rotation of the frame content.
|
pure virtual |
Sets the matrix that turns the Y'CbCr values of an NV12 frame into R'G'B'.
BT.601 by default. For a CVPixelBuffer frame see IAppleCompatFrameFactory::createFrameWithCVPixelBuffer().
| matrix | One of ColorMatrix values. |
|
pure virtual |
Sets the range of the Y'CbCr values of an NV12 frame.
Video range by default. For a CVPixelBuffer frame see IAppleCompatFrameFactory::createFrameWithCVPixelBuffer().
| range | One of ColorRange values. |
|
pure virtual |
Sets rotation of the frame content.
| rotation | One of Rotation values. |
|
pure virtual |
Returns the number of pixels in horizontal direction.