oa::VideoFramePool

Video frame resource pool (reuse decoded frames).

Public Methods

VideoFrame oa::VideoFramePool::acquire()
void oa::VideoFramePool::release(const VideoFrame & inFrame)

Static Public Methods

static oa::Result<VideoFramePool> oa::VideoFramePool::create(Engine & inRt, oa::U32 inWidth, oa::U32 inHeight, oa::U32 inPoolSize)

Constructor & Destructor Documentation

void oa::VideoFramePool::~VideoFramePool()
No public source comment is attached to this declaration.

Public Method Documentation

VideoFrame oa::VideoFramePool::acquire()
acquire frame from pool (blocks if all in use).

Returns

VideoFrame

The declared return value.

void oa::VideoFramePool::release( const VideoFrame & inFrame )
Return frame to pool.

Parameters

inFrame
const VideoFrame &

Returns

void

The declared return value.

static oa::Result<VideoFramePool> oa::VideoFramePool::create( Engine & inRt, oa::U32 inWidth, oa::U32 inHeight, oa::U32 inPoolSize )
No public source comment is attached to this declaration.

Parameters

inRt
Engine &

inWidth
oa::U32

inHeight
oa::U32

inPoolSize
oa::U32

Returns

oa::Result<VideoFramePool>

The declared return value.