kirides / go-d3d Goto Github PK
View Code? Open in Web Editor NEWImplements some d3d11 and dxgi interfaces for use with e.g. IDXGIOutputDuplication
License: Other
Implements some d3d11 and dxgi interfaces for use with e.g. IDXGIOutputDuplication
License: Other
I just wanted to thank you for making this library, that is all :)
I have 2 monitors in extended mode.
Context: I'm running the mjpegstream example
If I just use any one of these then its fine but the program just fails when I have both connected and I try to record from the primary (index 0) monitor! This is the failure output -
Registering stream 0
Registering stream 1
Enabled PerMonitorAwareV2 DPI awareness.
Enabled PerMonitorAwareV2 DPI awareness.
panic: runtime error: slice bounds out of range [8304640:8294400]
goroutine 8 [running, locked to thread]:
github.com/kirides/go-d3d/outputduplication.(*OutputDuplicator).GetImage(0xc000132000, 0xc00007e280, 0x10afca0?)
C:/Users/.../go/pkg/mod/github.com/kirides/[email protected]/outputduplication/output_duplication.go:253 +0x25e
main.streamDisplayDXGI({0x10b1fe8, 0xc00007e240}, 0x0, 0x19, 0x0?)
I:/code/...go:157 +0x579
created by main.main in goroutine 1
I:/code/...go:63 +0x2d1
exit status 2
But on non-primary monitor I get output like this -
The error occurs here ->
May I ask how to capture the specified window, through the window handle or the specified area
I have no idea for this,please help me,thanks.
When encoding with e.g. ffmpeg, ffmpeg can handle the conversion, right? It'd be great if we could disable the conversion to RGBA.
Maybe it'd make sense to remove it from the library completely, because if someone wants to convert BGRA -> RGBA, it's just one line to add?
Just throwing around a couple ideas :)
Many thanks for building this lib!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.