Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
VDISPLAY::HermesKmsFrame Struct Reference

#include <src/platform/linux/virtual_display.h>

Collaboration diagram for VDISPLAY::HermesKmsFrame:
[legend]

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.

Detailed Description

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.

Member Function Documentation

◆ close()

void VDISPLAY::HermesKmsFrame::close ( )

Close all owned fds (dma_buf_fd[] and sync_file_fd).

Definition at line 8839 of file virtual_display.cpp.

Member Data Documentation

◆ acquire_ns

long long VDISPLAY::HermesKmsFrame::acquire_ns {0}

Time spent in the ACQUIRE_FRAME ioctl only.

Definition at line 1213 of file virtual_display.h.

◆ color

hermes_kms::color_t VDISPLAY::HermesKmsFrame::color

Definition at line 1202 of file virtual_display.h.

◆ dma_buf_fd

int VDISPLAY::HermesKmsFrame::dma_buf_fd[4] {-1, -1, -1, -1}

Definition at line 1208 of file virtual_display.h.

◆ fourcc

uint32_t VDISPLAY::HermesKmsFrame::fourcc {0}

Definition at line 1205 of file virtual_display.h.

◆ height

int VDISPLAY::HermesKmsFrame::height {0}

Definition at line 1204 of file virtual_display.h.

◆ modifier

uint64_t VDISPLAY::HermesKmsFrame::modifier {0}

Definition at line 1206 of file virtual_display.h.

◆ offset

uint32_t VDISPLAY::HermesKmsFrame::offset[4] {0, 0, 0, 0}

Definition at line 1210 of file virtual_display.h.

◆ pitch

uint32_t VDISPLAY::HermesKmsFrame::pitch[4] {0, 0, 0, 0}

Definition at line 1209 of file virtual_display.h.

◆ plane_count

uint32_t VDISPLAY::HermesKmsFrame::plane_count {0}

Definition at line 1207 of file virtual_display.h.

◆ sequence

uint64_t VDISPLAY::HermesKmsFrame::sequence {0}

Definition at line 1212 of file virtual_display.h.

◆ sync_file_fd

int VDISPLAY::HermesKmsFrame::sync_file_fd {-1}

Definition at line 1211 of file virtual_display.h.

◆ width

int VDISPLAY::HermesKmsFrame::width {0}

Definition at line 1203 of file virtual_display.h.


The documentation for this struct was generated from the following files: