Run a Video Effect Filter#

After loading a video effect filter, run the filter to apply the desired effect. When a filter is run, the contents of the input GPU buffer are read, the video effect filter is applied, and the output is written to the output GPU buffer.

To run a video effect filter, call the NvVFX_Run() function. In the call to the NvVFX_Run() function, pass the following information as parameters:

  • The filter handle that was created as explained in Creating a Video Effect Filter.

  • An integer value to specify whether the filter is to run asynchronously or synchronously:

    • 1: The filter is to run asynchronously.

    • 0: The filter is to run synchronously.

This example runs a video effect filter asynchronously and calls the NvCVImage_Transfer() function to copy the output into a CPU buffer.