|
Hermes 0.7.0
Linux game streaming host
|
Public Types | |
| enum | status_e { WAITING , READY , REINIT } |
Public Member Functions | |
| dmabuf_t (dmabuf_t &&)=delete | |
| dmabuf_t (const dmabuf_t &)=delete | |
| dmabuf_t & | operator= (const dmabuf_t &)=delete |
| dmabuf_t & | operator= (dmabuf_t &&)=delete |
| void | listen (zwlr_screencopy_manager_v1 *screencopy_manager, zwp_linux_dmabuf_v1 *dmabuf_interface, wl_output *output, bool blend_cursor=false) |
| void | set_render_node (std::string node) |
| Name the render node the compositor renders on, so init_gbm() allocates there. See compositor_render_node(). | |
| bool | icc_listen (ext_image_copy_capture_manager_v1 *manager, ext_output_image_capture_source_manager_v1 *source_manager, zwp_linux_dmabuf_v1 *dmabuf_interface, wl_output *output, bool blend_cursor=false) |
| Open an ext-image-copy-capture session on an output. | |
| void | icc_capture (bool blend_cursor=false) |
| Request one frame from an established ICC session. | |
| bool | icc_ready () const |
| Whether an ICC session is open and has finished negotiating. | |
| bool | icc_active () const |
| Whether this object is driving ICC rather than screencopy. | |
| void | icc_buffer_params_created (zwp_linux_buffer_params_v1 *params, struct wl_buffer *buffer) |
| void | icc_buffer_params_failed (zwp_linux_buffer_params_v1 *params) |
| void | icc_session_buffer_size (ext_image_copy_capture_session_v1 *session, std::uint32_t width, std::uint32_t height) |
| void | icc_session_shm_format (ext_image_copy_capture_session_v1 *session, std::uint32_t format) |
| void | icc_session_dmabuf_device (ext_image_copy_capture_session_v1 *session, struct wl_array *device) |
| void | icc_session_dmabuf_format (ext_image_copy_capture_session_v1 *session, std::uint32_t format, struct wl_array *modifiers) |
| void | icc_session_done (ext_image_copy_capture_session_v1 *session) |
| void | icc_session_stopped (ext_image_copy_capture_session_v1 *session) |
| void | icc_frame_transform (ext_image_copy_capture_frame_v1 *frame, std::uint32_t transform) |
| void | icc_frame_damage (ext_image_copy_capture_frame_v1 *frame, std::int32_t x, std::int32_t y, std::int32_t width, std::int32_t height) |
| void | icc_frame_presentation_time (ext_image_copy_capture_frame_v1 *frame, std::uint32_t tv_sec_hi, std::uint32_t tv_sec_lo, std::uint32_t tv_nsec) |
| void | icc_frame_ready (ext_image_copy_capture_frame_v1 *frame) |
| void | icc_frame_failed (ext_image_copy_capture_frame_v1 *frame, std::uint32_t reason) |
| void | buffer (zwlr_screencopy_frame_v1 *frame, std::uint32_t format, std::uint32_t width, std::uint32_t height, std::uint32_t stride) |
| void | linux_dmabuf (zwlr_screencopy_frame_v1 *frame, std::uint32_t format, std::uint32_t width, std::uint32_t height) |
| void | buffer_done (zwlr_screencopy_frame_v1 *frame) |
| void | flags (zwlr_screencopy_frame_v1 *frame, std::uint32_t flags) |
| void | damage (zwlr_screencopy_frame_v1 *frame, std::uint32_t x, std::uint32_t y, std::uint32_t width, std::uint32_t height) |
| void | ready (zwlr_screencopy_frame_v1 *frame, std::uint32_t tv_sec_hi, std::uint32_t tv_sec_lo, std::uint32_t tv_nsec) |
| void | failed (zwlr_screencopy_frame_v1 *frame) |
| frame_t * | get_next_frame () |
Static Public Member Functions | |
| static void | buffer_params_created (void *data, struct zwp_linux_buffer_params_v1 *params, struct wl_buffer *wl_buffer) |
| static void | buffer_params_failed (void *data, struct zwp_linux_buffer_params_v1 *params) |
Public Attributes | |
| status_e | status |
| std::array< frame_t, 2 > | frames |
| frame_t * | current_frame |
| zwlr_screencopy_frame_v1_listener | listener |
| wl::dmabuf_t::dmabuf_t | ( | ) |
Definition at line 979 of file wayland.cpp.
| wl::dmabuf_t::~dmabuf_t | ( | ) |
Definition at line 1022 of file wayland.cpp.
| void wl::dmabuf_t::buffer | ( | zwlr_screencopy_frame_v1 * | frame, |
| std::uint32_t | format, | ||
| std::uint32_t | width, | ||
| std::uint32_t | height, | ||
| std::uint32_t | stride ) |
Definition at line 1045 of file wayland.cpp.
| void wl::dmabuf_t::buffer_done | ( | zwlr_screencopy_frame_v1 * | frame | ) |
Definition at line 1139 of file wayland.cpp.
|
static |
Definition at line 1174 of file wayland.cpp.
|
static |
Definition at line 1190 of file wayland.cpp.
| void wl::dmabuf_t::damage | ( | zwlr_screencopy_frame_v1 * | frame, |
| std::uint32_t | x, | ||
| std::uint32_t | y, | ||
| std::uint32_t | width, | ||
| std::uint32_t | height ) |
Definition at line 1249 of file wayland.cpp.
| void wl::dmabuf_t::failed | ( | zwlr_screencopy_frame_v1 * | frame | ) |
Definition at line 1237 of file wayland.cpp.
| void wl::dmabuf_t::flags | ( | zwlr_screencopy_frame_v1 * | frame, |
| std::uint32_t | flags ) |
Definition at line 1077 of file wayland.cpp.
|
inline |
| void wl::dmabuf_t::icc_buffer_params_created | ( | zwp_linux_buffer_params_v1 * | params, |
| struct wl_buffer * | buffer ) |
Definition at line 1485 of file wayland.cpp.
| void wl::dmabuf_t::icc_buffer_params_failed | ( | zwp_linux_buffer_params_v1 * | params | ) |
Definition at line 1498 of file wayland.cpp.
| void wl::dmabuf_t::icc_capture | ( | bool | blend_cursor = false | ) |
Request one frame from an established ICC session.
Definition at line 1347 of file wayland.cpp.
| void wl::dmabuf_t::icc_frame_damage | ( | ext_image_copy_capture_frame_v1 * | frame, |
| std::int32_t | x, | ||
| std::int32_t | y, | ||
| std::int32_t | width, | ||
| std::int32_t | height ) |
Definition at line 1631 of file wayland.cpp.
| void wl::dmabuf_t::icc_frame_failed | ( | ext_image_copy_capture_frame_v1 * | frame, |
| std::uint32_t | reason ) |
Definition at line 1663 of file wayland.cpp.
| void wl::dmabuf_t::icc_frame_presentation_time | ( | ext_image_copy_capture_frame_v1 * | frame, |
| std::uint32_t | tv_sec_hi, | ||
| std::uint32_t | tv_sec_lo, | ||
| std::uint32_t | tv_nsec ) |
Definition at line 1639 of file wayland.cpp.
| void wl::dmabuf_t::icc_frame_ready | ( | ext_image_copy_capture_frame_v1 * | frame | ) |
Definition at line 1646 of file wayland.cpp.
| void wl::dmabuf_t::icc_frame_transform | ( | ext_image_copy_capture_frame_v1 * | frame, |
| std::uint32_t | transform ) |
Definition at line 1627 of file wayland.cpp.
| bool wl::dmabuf_t::icc_listen | ( | ext_image_copy_capture_manager_v1 * | manager, |
| ext_output_image_capture_source_manager_v1 * | source_manager, | ||
| zwp_linux_dmabuf_v1 * | dmabuf_interface, | ||
| wl_output * | output, | ||
| bool | blend_cursor = false ) |
Open an ext-image-copy-capture session on an output.
Unlike screencopy, which is asked for one frame at a time, this protocol negotiates buffer size, format and modifiers once and then hands out frames from that session - so the session is opened here and outlives every frame taken from it. Returns false when the session could not be created at all; a session that fails later reports through status.
Definition at line 1303 of file wayland.cpp.
|
inline |
| void wl::dmabuf_t::icc_session_buffer_size | ( | ext_image_copy_capture_session_v1 * | session, |
| std::uint32_t | width, | ||
| std::uint32_t | height ) |
Definition at line 1533 of file wayland.cpp.
| void wl::dmabuf_t::icc_session_dmabuf_device | ( | ext_image_copy_capture_session_v1 * | session, |
| struct wl_array * | device ) |
Definition at line 1549 of file wayland.cpp.
| void wl::dmabuf_t::icc_session_dmabuf_format | ( | ext_image_copy_capture_session_v1 * | session, |
| std::uint32_t | format, | ||
| struct wl_array * | modifiers ) |
Definition at line 1566 of file wayland.cpp.
| void wl::dmabuf_t::icc_session_done | ( | ext_image_copy_capture_session_v1 * | session | ) |
Definition at line 1587 of file wayland.cpp.
| void wl::dmabuf_t::icc_session_shm_format | ( | ext_image_copy_capture_session_v1 * | session, |
| std::uint32_t | format ) |
Definition at line 1540 of file wayland.cpp.
| void wl::dmabuf_t::icc_session_stopped | ( | ext_image_copy_capture_session_v1 * | session | ) |
Definition at line 1621 of file wayland.cpp.
| void wl::dmabuf_t::linux_dmabuf | ( | zwlr_screencopy_frame_v1 * | frame, |
| std::uint32_t | format, | ||
| std::uint32_t | width, | ||
| std::uint32_t | height ) |
Definition at line 1062 of file wayland.cpp.
| void wl::dmabuf_t::listen | ( | zwlr_screencopy_manager_v1 * | screencopy_manager, |
| zwp_linux_dmabuf_v1 * | dmabuf_interface, | ||
| wl_output * | output, | ||
| bool | blend_cursor = false ) |
Definition at line 995 of file wayland.cpp.
| void wl::dmabuf_t::ready | ( | zwlr_screencopy_frame_v1 * | frame, |
| std::uint32_t | tv_sec_hi, | ||
| std::uint32_t | tv_sec_lo, | ||
| std::uint32_t | tv_nsec ) |
Definition at line 1209 of file wayland.cpp.
| void wl::dmabuf_t::set_render_node | ( | std::string | node | ) |
Name the render node the compositor renders on, so init_gbm() allocates there. See compositor_render_node().
Definition at line 856 of file wayland.cpp.