Comments (1)
I'm glad you've found the repo useful!
As for your questions:
- It is OK to use an MTA thread.
- Closing the Direct3D11CaptureFrame on another thread should also be OK.
- The issue with using your own lock/mutex is that other components using your device context can't synchronize using it. I would recommend using the ID3D11Multithread interface instead to guard access to the device context. This way other components can synchronize using the same mechanism (e.g. Media Foundation).
Having said all that, there were some bug fixes related to synchronization and the frame pool. I believe Windows 10 19045 should have them, but for sure Windows 11 will. Unfortunately my memory is a bit fuzzy with what released/shipped when.
from win32capturesample.
Related Issues (20)
- WinSta0\\winlogon failed HOT 1
- Graphics Capture doesn't work when running as different user? HOT 6
- Help: Clarification HOT 2
- Simple recorder is giving error in WinUI3 HOT 2
- The quality of the captured picture is worse than that of the window HOT 4
- how to capture child window? HOT 2
- The effect of Borderless will be reset when desktop resolution changed HOT 1
- The performance overhead of capturing the desktop is too high. HOT 1
- How reliable is Windows Graphics Desktop Capture in replicating the monitor frames ? HOT 9
- Possible Problem With Some Apps HOT 1
- How to convert Bgra to Rgba HOT 1
- Windows 11 22H2 OS build 10.0.22621.2428: CreateCaptureSession(item) does not return and hangs HOT 28
- winrt::windows::Graphics::Capture::GraphicsCaptureSession.Close() hangs on Windows 10 HOT 8
- C++ docs for winrt HOT 1
- no callable 'await_resume' function found for type 'winrt::Windows::System::DispatcherQueue' HOT 2
- check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Graphics::Capture::IDirect3D11CaptureFramePoolStatics)->Create(*(void**)(&device), static_cast<int32_t>(pixelFormat), numberOfBuffers, impl::bind_in(size), &result)); HOT 4
- How to copy the captured frame data to CUDA directly without copy to CPU first? HOT 1
- How to convert captured frames to opencv matrix? HOT 2
- additional requirement HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from win32capturesample.