Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

True asynchronous mode ?

kamildobk
Beginner
626 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
626 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.

0 Kudos
Reply