Twitch SDK (Internal)
Public Types | Public Member Functions | Static Public Member Functions | List of all members
ttv::broadcast::ICVPixelBufferVideoFrameReceiver Class Referenceabstract

#include <icvpixelbuffervideoframereceiver.h>

Inheritance diagram for ttv::broadcast::ICVPixelBufferVideoFrameReceiver:
ttv::broadcast::IVideoFrameReceiver

Public Types

typedef std::function< void(const CVPixelBufferRef buffer)> UnlockFunc
 
typedef size_t ReceiverTypeId
 

Public Member Functions

virtual TTV_ErrorCode PackageFrame (const CVPixelBufferRef buffer, uint64_t timestamp, UnlockFunc unlockCallback, std::shared_ptr< VideoFrame > &result)=0
 

Static Public Member Functions

static ReceiverTypeId GetReceiverTypeId ()
 

Detailed Description

The interface used for ICVPixelBufferVideoFrameGenerator to submit their frames to.

Member Typedef Documentation

◆ ReceiverTypeId

◆ UnlockFunc

typedef std::function<void(const CVPixelBufferRef buffer)> ttv::broadcast::ICVPixelBufferVideoFrameReceiver::UnlockFunc

Member Function Documentation

◆ GetReceiverTypeId()

static ReceiverTypeId ttv::broadcast::ICVPixelBufferVideoFrameReceiver::GetReceiverTypeId ( )
inlinestatic

◆ PackageFrame()

virtual TTV_ErrorCode ttv::broadcast::ICVPixelBufferVideoFrameReceiver::PackageFrame ( const CVPixelBufferRef  buffer,
uint64_t  timestamp,
UnlockFunc  unlockCallback,
std::shared_ptr< VideoFrame > &  result 
)
pure virtual

Packages the given frame data so it can be enqueued for encoding. When the frame processing of the frame is complete the unlockCallback will be called on an arbitrary thread.


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