Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

True asynchronous mode ?

kamildobk
Beginner
148 Views

Hi,

MFXVideoDECODE_DecodeFrameAsync() is, as documentation states, asynchronous but eventually I have to synchronize anyway ( block thread execution to wait for the result ) using SyncOperation(). Is there any way to be notified by a callback when the operation ends and the output surface can be read safely ?

Thanks,

Kamil

0 Kudos
1 Reply
Artem_S_Intel
Employee
148 Views

1. You need synchronize explicitly only if reading data from video memory using CPU, or using system memory output from Media SDK to verify data is available, if you are working with opaque or video memory and pass surface to encoder or VPP you don't need to synchronize explicitly.

2. Asynchronouns mean you can submit several frames for decoding, after that retrive result for first one, so actually while you are retiriving result for first frame, consequent ones are being decoded.

Reply