Can XCB return an image with an NVIDIA GPU memory address?
Suhail Doshi <[email protected]> Mon, 5 Aug 2019 08:07:13 -0700
| Newsgroups | gmane.comp.freedesktop.xcb |
|---|---|
| Message-ID | <CAKDSyZ7RmERoPkC=_45QAmRqiu6Z5dOnXResZqBEgpmrf+htdQ@mail.gmail.com> |
Hi there, My goal is to try get the frame of a desktop to do low-latency remote desktop. I am interested in using X11 as the window manager. When I run nvidia-smi, I noticed that X11 is a process that interacts the GPU: +-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | 0 3255 G /usr/lib/xorg/Xorg 57MiB | | 0 3286 G /usr/bin/gnome-shell 81MiB | +-----------------------------------------------------------------------------+ My question is: Is there a way to get an image of the desktop that returns a pointer that's GPU memory? For example, in Windows 10, there's an API called the Desktop Duplication API which will allows you to do this. Then, it lets you copy the data in that GPU memory block to another one such that you can encode the frame with H264, for example. I am using NVIDIA GPUs and utilizing their NVENC SDK. I am looking for an equivalent. Just looking for options. Thanks! Suhail -- Founder _______________________________________________ Xcb mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/xcb