I am trying to write a high-performance program to capture screen video in Go on windows. And after some research I think I should use the dxgi APIs of windows, AcquireNextFrame
, specifically.
However, the API is for C++, which I don’t know how to bind to Go. I mean, I am aware of cgo and tools like swig
but as it is a system dll and huge in size, I doubt if I really should generate a wraper of that. I am also aware of syscall
package(s) but I don’t think there is a way to convert the whole COM thing into Go.
I am running out of ideas, any helps would be appreciated. Thanks in advance.
P.S.: Yes I know there is Bitblt
, but I hear terrible performance of it.