mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-10-29 23:20:57 +00:00
c87ab6465d
Enable scene-tree direct scanout of a single buffer with various options for scaling and source crop. This is intended to support direct scanout for fullscreen video with/without scaling, letterboxing/pillarboxing (e.g. 4:3 content on a 16:9 display), and source crop (e.g. when 1920x1088 planes are used for 1920x1080 video). This works by explicitly specifying the source crop and destination box for the primary buffer in the output state. DRM atomic and libliftoff backends will turn this into a crop and scale of the plane (assuming the hardware supports that). For the Wayland/X11/DRM-legacy backends I just reject this so scanout will be disabled. The previous behaviour is preserved if buffer_src_box and buffer_dst_box are unset: the buffer is displayed at native size at the top-left of the output with no crop. The change to `struct wlr_output_state` makes this a binary breaking change (but this works transparently for scene-tree compositors like labwc after a recompile). |
||
---|---|---|
.. | ||
wlr_buffer.h | ||
wlr_data_device.h | ||
wlr_keyboard.h | ||
wlr_matrix.h | ||
wlr_output.h | ||
wlr_region.h | ||
wlr_scene.h | ||
wlr_seat.h | ||
wlr_subcompositor.h | ||
wlr_tablet_v2.h | ||
wlr_xdg_shell.h |