winee
deepin
2025-09-03 16:08 如果你认为ai建议的不错或者有自己的想法,请在 freedesktop.org 的提交里参与讨论
Reply Like 0 View the author
如果你认为ai建议的不错或者有自己的想法,请在 freedesktop.org 的提交里参与讨论
AI设计的思路很清晰,采用的方式方法也不错,不知道符不符合官方的整体设计要求,方案有待验证
你好我是这个MR的作者https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/440。
ext_image_copy_capture_session_v1这时候已经是create_source之后了,此时合成器会有一个事件用来通知客户端attach的wl_buffer size是多大,如果在这里 set_crop_region
时机稍晚,那就意味着 set_crop_region
将会成为一个必须调用的请求(如果设置了区域,那么我的目标是buffer的size会变的更小,从而节省内存和显存)。实际上我的设计目标是想让区域录制它变成可选的而不是必要的。
This object represents an active image copy capture session.
After a capture session is created, buffer constraint events will be
emitted from the compositor to tell the client which buffer types and
formats are supported for reading from the session. The compositor may
re-send buffer constraint events whenever they change.
To advertise buffer constraints, the compositor must send in no
particular order: zero or more shm_format and dmabuf_format events, zero
or one dmabuf_device event, and exactly one buffer_size event. Then the
compositor must send a done event.
When the client has received all the buffer constraints, it can create a
buffer accordingly, attach it to the capture session using the
attach_buffer request, set the buffer damage using the damage_buffer
request and then send the capture request.
ext_image_copy_capture_session_v1
Popular Events
More
Deepin肖工Wayland协议屏幕截图裁剪功能AI给出的优化建议,快去更新代码,截图功能等着你。