5 ms·
As I remember, generic DRM interface allows only writing to a framebuffer and not reading from someone's else framebuffer. Do they use some vendor-specific APIs
by codedokode 1mo ago
As I remember, generic DRM interface allows only writing to a framebuffer and not reading from someone's else framebuffer. Do they use some vendor-specific APIs?
- jchw 1mo agoNot that I'm aware of. I'm on my phone right now but any KMS driver that supports KMS and dma-bufs should work. The basic idea is to enumerate the CRTCs to get the relevant framebuffer plane resources and then use dma-buf exports to pass them to an encoder. Reality can be a bit more complex due to the existence of overlay planes but that's the idea. https://github.com/LizardByte/Sunshine/blob/master/src/platform/linux/kmsgrab.cpp https://github.com/LizardByte/Sunshine/blob/master/src/platf...