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.

Cost of synchronization

Rūdolfs_B_
Beginner
119 Views

Hi, 

I'm doing a low latency RGB4->NV12->H264 conversion and wanted to ask about syncrhonization. In this topic http://software.intel.com/en-us/forums/topic/475090 it was stated that:

"Additionally, for best performance, delay synchronization as long as possible. In your case, sync on encode and skip VPP sync."

I am currently synchronizing on VPP color conversion operation to know when i can let go the RGB4 input buffer, and also synchronizing on the encode operation to know when the bit-stream has been generated. I do both calls to MFXVideoVPP_RunFrameVPPAsync and MFXVideoENCODE_EncodeFrameAsync then send the synchronization point from MFXVideoENCODE_EncodeFrameAsync to another thread to wait for the bit-stream and in the current thread wait for the synchronization point from MFXVideoVPP_RunFrameVPPAsync to know when i can let go of the RGB4 input buffer. Does the wait on the synchronization point from MFXVideoVPP_RunFrameVPPAsync introduce any performance penalties? Since the comment in the topic above made me doubt if it was good that i am doing that.

0 Kudos
0 Replies
Reply