Skip to content

nvcodec: add D3D11 resource support in cudamemorycopy

Corentin Damman requested to merge (removed):cudaloader_d3d11 into main

This merge request adds various features using the CUDA D3D11 Interoperability API

  • cudaloader: add D3D11 API
  • cudautils: add support of D3D11 resource as Cuda graphics resource type
  • cudamemorycopy: add D3D11 resource support

Performance improvement:

  • This pipeline gst-launch-1.0 --gst-debug=3 d3d11screencapturesrc ! "video/x-raw(memory:D3D11Memory), format=BGRA, framerate=500/1" ! queue ! d3d11download ! cudaupload ! nvh264enc ! fakesink can be shortened to gst-launch-1.0 --gst-debug=3 d3d11screencapturesrc ! "video/x-raw(memory:D3D11Memory), format=BGRA, framerate=500/1" ! queue ! cudaupload ! nvh264enc ! fakesink, and it brings performance from 250fps to 370fps on my NVIDIA GeForce GTX 1650
Edited by Corentin Damman

Merge request reports