StretchBlt 太慢了,反正更快?

LeD*_*Duc 5 performance gdi stretchblt

我正在使用 StretchBlt 绘制调整大小的实时视频。

 ::SetStretchBltMode(hDC, HALFTONE);
        ::StretchBlt(hDc, 0, 0, 1225, 689, hwNd, 0, 0, 1364, 768, SRCCOPY);
Run Code Online (Sandbox Code Playgroud)

但是,StretchBlt api 太慢了。每次执行 StretchBlt 时,我的计算机上大约需要 100 毫秒。有没有其他API或任何方法来提高速度?

egu*_*gur 2

是的,使用硬件加速视频处理:阅读有关IDirectXVideoProcessor::VideoProcessBlt的更多信息

不幸的是,这是一个广泛的主题,但您可以在线阅读并找到有关如何使用它的示例。