Definitions for Wayland capture. More...
#include <drm_fourcc.h>#include <fcntl.h>#include <gbm.h>#include <poll.h>#include <unistd.h>#include <wayland-client.h>#include <wayland-util.h>#include <xf86drm.h>#include <lizardbyte/common/env.h>#include "graphics.h"#include "src/logging.h"#include "src/platform/common.h"#include "src/round_robin.h"#include "src/utility.h"#include "wayland.h"Macros | |
| #define | CLASS_CALL(c, m) |
| Macro for CLASS CALL. | |
Functions | |
| std::optional< std::uint32_t > | wl::export_gbm_bo_planes (gbm_bo *bo, frame_t &frame, const gbm_bo_accessors_t &accessors) |
| Export every GBM buffer plane into a captured frame descriptor. | |
| int | wl::init () |
| Initialize Wayland registry interfaces required for capture. | |
| std::map< std::uint32_t, std::vector< std::uint64_t > > | wl::intersect_modifiers (const std::map< std::uint32_t, std::vector< std::uint64_t > > &compositor_modifiers, const std::map< std::uint32_t, std::vector< std::uint64_t > > &encoder_modifiers) |
| Intersect compositor and encoder modifiers to find common formats. | |
| std::vector< std::unique_ptr< monitor_t > > | wl::monitors (const char *display_name) |
| Refresh the monitor list reported by the display server. | |
Variables | |
| const wl_interface | wl_output_interface |
| Wayland output interface. | |
Definitions for Wayland capture.
| #define CLASS_CALL | ( | c, | |
| m ) |
Macro for CLASS CALL.
| std::optional< std::uint32_t > wl::export_gbm_bo_planes | ( | gbm_bo * | bo, |
| frame_t & | frame, | ||
| const gbm_bo_accessors_t & | accessors ) |
Export every GBM buffer plane into a captured frame descriptor.
| bo | GBM buffer whose DMA-BUF planes will be exported. |
| frame | Frame that takes ownership of the exported file descriptors. |
| accessors | GBM accessors used to query the buffer. |
| int wl::init | ( | ) |
Initialize Wayland registry interfaces required for capture.
| std::map< std::uint32_t, std::vector< std::uint64_t > > wl::intersect_modifiers | ( | const std::map< std::uint32_t, std::vector< std::uint64_t > > & | compositor_modifiers, |
| const std::map< std::uint32_t, std::vector< std::uint64_t > > & | encoder_modifiers ) |
Intersect compositor and encoder modifiers to find common formats.
| compositor_modifiers | Modifiers supported by the compositor for each format. |
| encoder_modifiers | Modifiers supported by the encoder for each format. |
| std::vector< std::unique_ptr< monitor_t > > wl::monitors | ( | const char * | display_name = nullptr | ) |
Refresh the monitor list reported by the display server.
| display_name | Display name. |