NvMedia
NvMedia provides a set of interfaces to submit tasks to each of the hardware engines it supports. For example, the NvMedia2D* set of APIs provide the functionality to submit tasks to the VIC engine. Similarly, the NvMediaISP* set of APIs provide the functionality to submit tasks to the ISP hardware engine. An engine specific set of APIs are extended to support NvSciSync. They provide the following functionalities:
- Takes in an NvSciSyncFence as input when the engine acts as a waiter.
- Gives out an NvSciSyncFence as output when the engine acts as a signaler.
The following section uses NvMedia2D-NvSciSync APIs to demonstrate the usage of NvMedia-NvSciSync APIs. A similar set of APIs for other engines can be used in the same way.