Open aaman-git opened 9 months ago
@aaman-git Sorry, I forgot about the project because it was 2 years ago. That time, I trying a HoloLens2 App development, encountered a problem. The project was create for question to stack overflow. Problem was solve by answer. Probably, I fix it and applied to the Git project. But, I don't remember run it or not.
Direct3DSurfaceAccess.cpp, line 39: I commented below.
// Returns E_INVALIDARG when 2nd arg is "DXGI_MAP_READ" or "DXGI_MAP_READ | DXGI_MAP_DISCARD".
// Should research.
E_INVALIDARG is 80070057.
Probably, need to change nativeSurface->Map
's 2nd argment but I forgot that how.
Sorry.
I receive the same issue. I don't have issues accessing the native surface from the FrameArrived call, but after casting it to the native IDXGISurface, trying to map it so I can pull the data out refuses. Switching over to the CPU-based capture works, so somewhere deeper the data is pulled. I assume it starts as a DirectX object in memory from the webcam directly, already, and therefore it Is technically accessible?
Hi Uyawag,
Thanks for the sample project. Very helpful. I tried it out and unfortunately I am stuck with this error from the dll: nativeSurface->Map failed. hr: 80070057
Are you familiar what can cause this and how to resolve it? From what I understood is that you succeeded in reading the pixel data from the dll.
Best, Aman