如何使用D3D共享纹理'屏幕截图的方法?

发布于 2025-02-11 01:46:44 字数 560 浏览 1 评论 0 原文

我正在尝试创建一个代码,该代码会采用游戏的一系列屏幕截图,使用Open-CV进行编辑,并将其实时显示在窗口中。我正在使用Windows操作系统。为了拍摄屏幕截图,我尝试了几乎所有在

我发现,对于游戏,obs studio使用了一种称为 D3D共享纹理,以直接在GPU上捕获游戏的帧。

i 搜索 obs github代码中的共享纹理,但我发现结果令人困惑。 在搜索引擎上搜索不会给出相关的结果。

有人可以解释这种共享纹理方法是什么,如何在代码中实现它?

I am trying to create a code that takes series of screenshot of a game, use Open-CV to edit it, and display it in a window, all in real-time. I am using windows operating system. For taking screenshots I have tried almost all the methods answered in this question. None of them gives FPS of more than 30, but do affect the performance of the game.

I found out that for games OBS Studio uses a different method called D3d shared texture to capture frames from the game directly on the GPU..

I searched for shared texture in OBS github code but I find the results confusing.
Searching on search engine does not give relevant results.

Can someone explain what is this shared texture method and how do I implement it in my code?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文