[Xcb] Can XCB return an image with an NVIDIA GPU memory address?
Suhail Doshi
suhail at mightycomputing.com
Mon Aug 5 15:07:13 UTC 2019
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/xcb/attachments/20190805/38c74015/attachment.html>
More information about the Xcb
mailing list