Media (Intel® oneAPI 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 sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.

Several EncodeFrameAsync + One SyncOperation

OTorg
New Contributor III
155 Views

Am I right the technique below is allowed?:

Push N frames to processing:
MFXVideoENCODE_EncodeFrameAsync( ..., bs1, syncp1 );
MFXVideoENCODE_EncodeFrameAsync( ..., bs2, syncp2 );
MFXVideoENCODE_EncodeFrameAsync( ..., bsN, syncpN );

Then,
Don't wait sequentially for syncp1, syncp2, ..., syncpN - wait once for syncpN only instead.
MFXVideoCORE_SyncOperation( ..., syncpN, ... );

Are all bs1...bsN guaranteed to be valid/filled/can_be_grabbed after successfull SyncOperation for syncpN (and no need to call SyncOperation for syncp1, syncp2, ..., syncpN-1)?

0 Kudos
1 Reply
OTorg
New Contributor III
155 Views

And additional questions.

Is it possible to get MFX_ERR_ABORTED from SyncOperation(syncpN) while one or more previous syncp are still in MFX_WRN_IN_EXECUTION?
Is it possible to get MFX_ERR_NONE from SyncOperation(syncpN) and MFX_ERR_ABORTED for one or more previous syncp?

 

Reply