I have a program to capture the desktop screen using DXGI Desktop Duplication API.
I get frames with IDXGIOutputDuplication::AcquireNextFrame
and I am able to capture my desktop frame by frame fine.
To move forward, I try to optimize my program and try to manage dirty and moved rectangle. The API provides both IDXGIOutputDuplication::GetFrameDirtyRects
and IDXGIOutputDuplication::GetFrameMoveRects
to obtain these informations.
However, it seems like there are never any rectangles identified as being moved. The documentation says moved rectangle are :
rectangles of pixels in the desktop image that the operating system moved to another location within the same image
What does this mean exactly ? Can DXGI identify arbitrary portion of the screen to have been moved ? Or maybe this only applies to desktop window being moved ?