|
Hermes 0.7.0
Linux game streaming host
|
#include <src/platform/linux/virtual_display.h>
Public Member Functions | |
| void | close () |
| Close all owned fds (dma_buf_fd[] and sync_file_fd). | |
Public Attributes | |
| hermes_kms::color_t | color |
| int | width {0} |
| int | height {0} |
| uint32_t | fourcc {0} |
| uint64_t | modifier {0} |
| uint32_t | plane_count {0} |
| int | dma_buf_fd [4] {-1, -1, -1, -1} |
| uint32_t | pitch [4] {0, 0, 0, 0} |
| uint32_t | offset [4] {0, 0, 0, 0} |
| int | sync_file_fd {-1} |
| uint64_t | sequence {0} |
| long long | acquire_ns {0} |
| Time spent in the ACQUIRE_FRAME ioctl only. | |
Zero-copy capture of a Hermes-KMS virtual display.
The compositor (KWin/GNOME) owns the primary card node and scans out the desktop; this side opens the render node and pulls the current scanout framebuffer as DMA-BUFs via DRM_IOCTL_HERMES_KMS_ACQUIRE_FRAME. No DRM master and no KMS access are required, so it coexists with the compositor.
Definition at line 1201 of file virtual_display.h.
| void VDISPLAY::HermesKmsFrame::close | ( | ) |
Close all owned fds (dma_buf_fd[] and sync_file_fd).
Definition at line 8839 of file virtual_display.cpp.
| long long VDISPLAY::HermesKmsFrame::acquire_ns {0} |
Time spent in the ACQUIRE_FRAME ioctl only.
Definition at line 1213 of file virtual_display.h.
| hermes_kms::color_t VDISPLAY::HermesKmsFrame::color |
Definition at line 1202 of file virtual_display.h.
| int VDISPLAY::HermesKmsFrame::dma_buf_fd[4] {-1, -1, -1, -1} |
Definition at line 1208 of file virtual_display.h.
| uint32_t VDISPLAY::HermesKmsFrame::fourcc {0} |
Definition at line 1205 of file virtual_display.h.
| int VDISPLAY::HermesKmsFrame::height {0} |
Definition at line 1204 of file virtual_display.h.
| uint64_t VDISPLAY::HermesKmsFrame::modifier {0} |
Definition at line 1206 of file virtual_display.h.
| uint32_t VDISPLAY::HermesKmsFrame::offset[4] {0, 0, 0, 0} |
Definition at line 1210 of file virtual_display.h.
| uint32_t VDISPLAY::HermesKmsFrame::pitch[4] {0, 0, 0, 0} |
Definition at line 1209 of file virtual_display.h.
| uint32_t VDISPLAY::HermesKmsFrame::plane_count {0} |
Definition at line 1207 of file virtual_display.h.
| uint64_t VDISPLAY::HermesKmsFrame::sequence {0} |
Definition at line 1212 of file virtual_display.h.
| int VDISPLAY::HermesKmsFrame::sync_file_fd {-1} |
Definition at line 1211 of file virtual_display.h.
| int VDISPLAY::HermesKmsFrame::width {0} |
Definition at line 1203 of file virtual_display.h.