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

#include <irawvideoframereceiver.h>

Inheritance diagram for ttv::broadcast::IRawVideoFrameReceiver:
ttv::broadcast::IVideoFrameReceiver

Public Types

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

Public Member Functions

virtual TTV_ErrorCode PackageFrame (const uint8_t *frameBuffer, PixelFormat pixelFormat, bool verticalFlip, uint64_t timeStamp, UnlockFunc unlockCallback, std::shared_ptr< VideoFrame > &result)=0
 

Static Public Member Functions

static ReceiverTypeId GetReceiverTypeId ()
 

Detailed Description

Receives raw buffers.

Member Typedef Documentation

◆ ReceiverTypeId

◆ UnlockFunc

typedef std::function<void(const uint8_t* buffer)> ttv::broadcast::IRawVideoFrameReceiver::UnlockFunc

Member Function Documentation

◆ GetReceiverTypeId()

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

◆ PackageFrame()

virtual TTV_ErrorCode ttv::broadcast::IRawVideoFrameReceiver::PackageFrame ( const uint8_t *  frameBuffer,
PixelFormat  pixelFormat,
bool  verticalFlip,
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: