我如何从 amd gpus 的显示输出中获取图像数据?

How would I grab image data from display output of amd gpus?

我正在尝试在 Windows 上创建个人 PC 流媒体应用程序。我想知道如何从 C++ 11(有点像 OBS)中的 AMD GPU 显示输出中获取数据?我在 java 中尝试使用 Robot.createScreenCapture 方法进行此操作,但无法达到流式传输所需的足够速度。我希望这已经足够清楚了。有什么帮助,谢谢。

AMD AMF SDK 可以为您提供:Is there a functionality to capture screen directly and encode at GPU buffer memory?

amf\public\src\components\DisplayCapture already has code which is basically wrapping DD API into AMF component. If my memory serves me right DVR sample shows how to use it (source code definitely has traces that it was/is working).