- Posts: 4
- Joined: Sun Feb 19, 2023 9:40 am
- Real Name: Andrey Korobeynikov
Hi Andrey,
The only mechanism for getting captured video frames and audio packets is by creating a class that implements IDeckLinkInputCallback callback interface. The implementation of IDeckLinkInputCallback::VideoInputFrameArrived provides input parameters of types IDeckLinkVideoInputFrame and IDeckLinkAudioInputPacket for the captured video and audio. The SDK manual will be updated to remove the statement on pull model.
If your application requires pull-model behaviour, you will need to implement a queue where objects are pushed from the callback and pulled from the queue in another thread. Ensure that you call AddRef on the video frame/audio packet from the callback to ensure reference is retained after the callback and Release when completed with the object.
You will find an example of this behaviour in the Windows FileCapture sample in the Desktop Video SDK.
Regards
Cameron