Documentation
¶
Overview ¶
Package dmabufwl builds zwp_linux_buffer_params_v1 objects from dmabuf descriptions, the step every linux-dmabuf import shares.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Device ¶
Device decodes a dev_t sent as a wl_array, the shape of linux-dmabuf feedback's main_device and ext-image-copy-capture's dmabuf_device.
func Modifiers ¶
Modifiers decodes a wl_array of DRM format modifiers, such as ext-image-copy-capture's dmabuf_format sends, into the explicit ones in their order: implicit layouts and repeats left out.
func Params ¶
func Params(mgr *wlr.ZwpDmabufV1, b dmabuf.Buffer) (*wlr.ZwpBufferParamsV1, error)
Params validates b and returns params carrying its planes, ready for create or create_immed.
Types ¶
type Feedback ¶
Feedback is a compositor's linux-dmabuf default feedback (version 4): the device it wants buffers allocated on (main_device, a dev_t) and, per DRM format, the explicit modifiers it imports, in its preference order (tranche by tranche).
func DefaultFeedback ¶
func DefaultFeedback(mgr *wlr.ZwpDmabufV1, version uint32, roundtrip func() error) (Feedback, error)
DefaultFeedback asks mgr, bound at version, for its default feedback and dispatches through roundtrip until the compositor has sent it whole. A version below 4, which has no feedback, and a compositor that names no main device are errors.