Harvey3141
New member
Hi,
I'm using the DestkopDuplication API https://msdn.microsoft.com/en-gb/library/windows/desktop/hh404487(v=vs.85).aspx to capture a destkop and would like to then send this using NDI. I've tried to keep it simple to start with and have added the desktop duplication code to the Send Video example included in the NDI SDK, I'm trying to read the data from a DirectX texture which has the desktop backbuffer however currently all I can see in the Video Monitor app is grey, I believe the sender is being created, however the data is not correct.
Do you have any examples of copying from a DirectX texture, specifically with DXGI_FORMAT_B8G8R8A8_UNORM format, into a byte array for use with NDI?
Thanks,
Harvey
I'm using the DestkopDuplication API https://msdn.microsoft.com/en-gb/library/windows/desktop/hh404487(v=vs.85).aspx to capture a destkop and would like to then send this using NDI. I've tried to keep it simple to start with and have added the desktop duplication code to the Send Video example included in the NDI SDK, I'm trying to read the data from a DirectX texture which has the desktop backbuffer however currently all I can see in the Video Monitor app is grey, I believe the sender is being created, however the data is not correct.
Do you have any examples of copying from a DirectX texture, specifically with DXGI_FORMAT_B8G8R8A8_UNORM format, into a byte array for use with NDI?
Thanks,
Harvey