Wayland's Weston Gets A Surface-Shooting API
One of the early additions past the recent Wayland 1.7 release to the Weston reference compositor is a surface-shooting API to be used for debugging.
The Wayland surface-shooting API is an optional feature of the Weston renderers to fetch the current contents of a surface, or basically the buffer contents in RGBA format. This surface-shooting is just intended for debugging and to dump the contents of a particular surface/buffer. For end-users, Weston already has its screenshooter and the ability to video capture from the compositor.
This surface-shooting work was done by the Collabora and the optional API landed in Weston Git this morning. In later commits the necessary support was added to the Pixman and OpenGL renderer back-ends of Weston.
There's also now the surface-screenshot Weston plug-in for triggering surface screenshots from the surface that has the pointer focus after hitting the keybind. This Weston module dumps the screenshot into the PAM format due to its simplicity and RGBA format support.
The Wayland surface-shooting API is an optional feature of the Weston renderers to fetch the current contents of a surface, or basically the buffer contents in RGBA format. This surface-shooting is just intended for debugging and to dump the contents of a particular surface/buffer. For end-users, Weston already has its screenshooter and the ability to video capture from the compositor.
This surface-shooting work was done by the Collabora and the optional API landed in Weston Git this morning. In later commits the necessary support was added to the Pixman and OpenGL renderer back-ends of Weston.
There's also now the surface-screenshot Weston plug-in for triggering surface screenshots from the surface that has the pointer focus after hitting the keybind. This Weston module dumps the screenshot into the PAM format due to its simplicity and RGBA format support.
5 Comments