|
Hermes 0.7.0
Linux game streaming host
|
Definitions for Wayland capture. More...
#include <algorithm>#include <atomic>#include <cerrno>#include <chrono>#include <climits>#include <cmath>#include <cstdint>#include <cstdlib>#include <cstring>#include <map>#include <memory>#include <string>#include <thread>#include <utility>#include <vector>#include <drm_fourcc.h>#include <fcntl.h>#include <gbm.h>#include <poll.h>#include <sys/stat.h>#include <sys/sysmacros.h>#include <unistd.h>#include <wayland-client.h>#include <wayland-util.h>#include <xf86drm.h>#include "graphics.h"#include "misc.h"#include "src/config.h"#include "src/logging.h"#include "src/platform/common.h"#include "src/round_robin.h"#include "src/utility.h"#include "wayland.h"Go to the source code of this file.
Namespaces | |
| namespace | wl |
Macros | |
| #define | CLASS_CALL(c, m) |
Functions | |
| void | wl::logical_size (int mode_width, int mode_height, int transform, wl_fixed_t scale, int &width, int &height) |
| Size of a head in the compositor's logical coordinates, the wlr counterpart of mutter::state_t::logical_size. | |
| output_rect_t | wl::desktop_envelope (const std::vector< output_rect_t > &outputs) |
| The desktop envelope: the bounding box of every output in logical coordinates, origin included. wlroots-style compositors (Hyprland, sway) spread an absolute input device across exactly this box. | |
| input_geometry_t | wl::input_geometry (const output_rect_t &envelope, const output_rect_t &output, int mode_width, int mode_height) |
| Express an output's offset within the envelope, and the envelope, in that output's own capture pixels. | |
| bool | wl::dmabuf_capture_exhausted () |
| Whether the dmabuf capture path has failed too often to be retried. | |
| std::string | wl::compositor_render_node (display_t &display, zwp_linux_dmabuf_v1 *dmabuf_interface) |
| Ask the compositor which GPU it renders on. | |
| std::vector< std::unique_ptr< monitor_t > > | wl::monitors (const char *display_name) |
| bool | wl::render_node_can_allocate (const char *node) |
| Whether GBM can actually allocate a buffer on this render node. | |
| bool | wl::configure_virtual_output (const std::string &output_name, int width, int height, int refresh_rate, bool exclusive) |
| bool | wl::restore_virtual_output_layout () |
| bool | wl::output_management_supported () |
| session_protocols_t | wl::probe_protocols () |
| Probe the session's globals in a single registry roundtrip. | |
| int | wl::init () |
Variables | |
| const wl_interface | wl_output_interface |
Definitions for Wayland capture.
Definition in file wayland.cpp.
| #define CLASS_CALL | ( | c, | |
| m ) |
Definition at line 104 of file wayland.cpp.