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.

Cost of synchronization

Rūdolfs_B_
Beginner
318 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