Documentation ¶
Overview ¶
generated by wl-scanner https://github.com/malcolmstill/wl-scanner from: /usr/share/wayland-protocols/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml on 2020-04-17 01:02:10 +0100
Index ¶
- Constants
- type ZwpLinuxBufferParamsV1
- func (p *ZwpLinuxBufferParamsV1) AddAddHandler(h ZwpLinuxBufferParamsV1AddHandler)
- func (p *ZwpLinuxBufferParamsV1) AddCreateHandler(h ZwpLinuxBufferParamsV1CreateHandler)
- func (p *ZwpLinuxBufferParamsV1) AddCreateImmedHandler(h ZwpLinuxBufferParamsV1CreateImmedHandler)
- func (p *ZwpLinuxBufferParamsV1) AddDestroyHandler(h ZwpLinuxBufferParamsV1DestroyHandler)
- func (p *ZwpLinuxBufferParamsV1) Created(id int) (*wl.Buffer, error)
- func (p *ZwpLinuxBufferParamsV1) Dispatch(event *wl.Event)
- func (p *ZwpLinuxBufferParamsV1) Failed() error
- func (p *ZwpLinuxBufferParamsV1) RemoveAddHandler(h ZwpLinuxBufferParamsV1AddHandler)
- func (p *ZwpLinuxBufferParamsV1) RemoveCreateHandler(h ZwpLinuxBufferParamsV1CreateHandler)
- func (p *ZwpLinuxBufferParamsV1) RemoveCreateImmedHandler(h ZwpLinuxBufferParamsV1CreateImmedHandler)
- func (p *ZwpLinuxBufferParamsV1) RemoveDestroyHandler(h ZwpLinuxBufferParamsV1DestroyHandler)
- type ZwpLinuxBufferParamsV1AddEvent
- type ZwpLinuxBufferParamsV1AddHandler
- type ZwpLinuxBufferParamsV1CreateEvent
- type ZwpLinuxBufferParamsV1CreateHandler
- type ZwpLinuxBufferParamsV1CreateImmedEvent
- type ZwpLinuxBufferParamsV1CreateImmedHandler
- type ZwpLinuxBufferParamsV1DestroyEvent
- type ZwpLinuxBufferParamsV1DestroyHandler
- type ZwpLinuxDmabufV1
- func (p *ZwpLinuxDmabufV1) AddCreateParamsHandler(h ZwpLinuxDmabufV1CreateParamsHandler)
- func (p *ZwpLinuxDmabufV1) AddDestroyHandler(h ZwpLinuxDmabufV1DestroyHandler)
- func (p *ZwpLinuxDmabufV1) Dispatch(event *wl.Event)
- func (p *ZwpLinuxDmabufV1) Format(format uint32) error
- func (p *ZwpLinuxDmabufV1) Modifier(format uint32, modifier_hi uint32, modifier_lo uint32) error
- func (p *ZwpLinuxDmabufV1) RemoveCreateParamsHandler(h ZwpLinuxDmabufV1CreateParamsHandler)
- func (p *ZwpLinuxDmabufV1) RemoveDestroyHandler(h ZwpLinuxDmabufV1DestroyHandler)
- type ZwpLinuxDmabufV1CreateParamsEvent
- type ZwpLinuxDmabufV1CreateParamsHandler
- type ZwpLinuxDmabufV1DestroyEvent
- type ZwpLinuxDmabufV1DestroyHandler
Constants ¶
const ( ZwpLinuxBufferParamsV1ErrorAlreadyUsed = 0 ZwpLinuxBufferParamsV1ErrorPlaneIdx = 1 ZwpLinuxBufferParamsV1ErrorPlaneSet = 2 ZwpLinuxBufferParamsV1ErrorIncomplete = 3 ZwpLinuxBufferParamsV1ErrorInvalidFormat = 4 ZwpLinuxBufferParamsV1ErrorInvalidDimensions = 5 ZwpLinuxBufferParamsV1ErrorOutOfBounds = 6 ZwpLinuxBufferParamsV1ErrorInvalidWlBuffer = 7 )
const ( ZwpLinuxBufferParamsV1FlagsYInvert = 1 ZwpLinuxBufferParamsV1FlagsInterlaced = 2 ZwpLinuxBufferParamsV1FlagsBottomFirst = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZwpLinuxBufferParamsV1 ¶
func NewZwpLinuxBufferParamsV1 ¶
func NewZwpLinuxBufferParamsV1(ctx *wl.Context, id int) *ZwpLinuxBufferParamsV1
func (*ZwpLinuxBufferParamsV1) AddAddHandler ¶
func (p *ZwpLinuxBufferParamsV1) AddAddHandler(h ZwpLinuxBufferParamsV1AddHandler)
func (*ZwpLinuxBufferParamsV1) AddCreateHandler ¶
func (p *ZwpLinuxBufferParamsV1) AddCreateHandler(h ZwpLinuxBufferParamsV1CreateHandler)
func (*ZwpLinuxBufferParamsV1) AddCreateImmedHandler ¶
func (p *ZwpLinuxBufferParamsV1) AddCreateImmedHandler(h ZwpLinuxBufferParamsV1CreateImmedHandler)
func (*ZwpLinuxBufferParamsV1) AddDestroyHandler ¶
func (p *ZwpLinuxBufferParamsV1) AddDestroyHandler(h ZwpLinuxBufferParamsV1DestroyHandler)
func (*ZwpLinuxBufferParamsV1) Created ¶
func (p *ZwpLinuxBufferParamsV1) Created(id int) (*wl.Buffer, error)
Created will buffer creation succeeded.
This event indicates that the attempted buffer creation was successful. It provides the new wl_buffer referencing the dmabuf(s).
Upon receiving this event, the client should destroy the zlinux_dmabuf_params object.
func (*ZwpLinuxBufferParamsV1) Dispatch ¶
func (p *ZwpLinuxBufferParamsV1) Dispatch(event *wl.Event)
func (*ZwpLinuxBufferParamsV1) Failed ¶
func (p *ZwpLinuxBufferParamsV1) Failed() error
Failed will buffer creation failed.
This event indicates that the attempted buffer creation has failed. It usually means that one of the dmabuf constraints has not been fulfilled.
Upon receiving this event, the client should destroy the zlinux_buffer_params object.
func (*ZwpLinuxBufferParamsV1) RemoveAddHandler ¶
func (p *ZwpLinuxBufferParamsV1) RemoveAddHandler(h ZwpLinuxBufferParamsV1AddHandler)
func (*ZwpLinuxBufferParamsV1) RemoveCreateHandler ¶
func (p *ZwpLinuxBufferParamsV1) RemoveCreateHandler(h ZwpLinuxBufferParamsV1CreateHandler)
func (*ZwpLinuxBufferParamsV1) RemoveCreateImmedHandler ¶
func (p *ZwpLinuxBufferParamsV1) RemoveCreateImmedHandler(h ZwpLinuxBufferParamsV1CreateImmedHandler)
func (*ZwpLinuxBufferParamsV1) RemoveDestroyHandler ¶
func (p *ZwpLinuxBufferParamsV1) RemoveDestroyHandler(h ZwpLinuxBufferParamsV1DestroyHandler)
type ZwpLinuxBufferParamsV1AddHandler ¶
type ZwpLinuxBufferParamsV1AddHandler interface {
HandleZwpLinuxBufferParamsV1Add(ZwpLinuxBufferParamsV1AddEvent)
}
type ZwpLinuxBufferParamsV1CreateHandler ¶
type ZwpLinuxBufferParamsV1CreateHandler interface {
HandleZwpLinuxBufferParamsV1Create(ZwpLinuxBufferParamsV1CreateEvent)
}
type ZwpLinuxBufferParamsV1CreateImmedHandler ¶
type ZwpLinuxBufferParamsV1CreateImmedHandler interface {
HandleZwpLinuxBufferParamsV1CreateImmed(ZwpLinuxBufferParamsV1CreateImmedEvent)
}
type ZwpLinuxBufferParamsV1DestroyEvent ¶
type ZwpLinuxBufferParamsV1DestroyEvent struct { }
type ZwpLinuxBufferParamsV1DestroyHandler ¶
type ZwpLinuxBufferParamsV1DestroyHandler interface {
HandleZwpLinuxBufferParamsV1Destroy(ZwpLinuxBufferParamsV1DestroyEvent)
}
type ZwpLinuxDmabufV1 ¶
func NewZwpLinuxDmabufV1 ¶
func NewZwpLinuxDmabufV1(ctx *wl.Context, id int) *ZwpLinuxDmabufV1
func (*ZwpLinuxDmabufV1) AddCreateParamsHandler ¶
func (p *ZwpLinuxDmabufV1) AddCreateParamsHandler(h ZwpLinuxDmabufV1CreateParamsHandler)
func (*ZwpLinuxDmabufV1) AddDestroyHandler ¶
func (p *ZwpLinuxDmabufV1) AddDestroyHandler(h ZwpLinuxDmabufV1DestroyHandler)
func (*ZwpLinuxDmabufV1) Dispatch ¶
func (p *ZwpLinuxDmabufV1) Dispatch(event *wl.Event)
func (*ZwpLinuxDmabufV1) Format ¶
func (p *ZwpLinuxDmabufV1) Format(format uint32) error
Format will supported buffer format.
This event advertises one buffer format that the server supports. All the supported formats are advertised once when the client binds to this interface. A roundtrip after binding guarantees that the client has received all supported formats.
For the definition of the format codes, see the zwp_linux_buffer_params_v1::create request.
Warning: the 'format' event is likely to be deprecated and replaced with the 'modifier' event introduced in zwp_linux_dmabuf_v1 version 3, described below. Please refrain from using the information received from this event.
func (*ZwpLinuxDmabufV1) Modifier ¶
func (p *ZwpLinuxDmabufV1) Modifier(format uint32, modifier_hi uint32, modifier_lo uint32) error
Modifier will supported buffer format modifier.
This event advertises the formats that the server supports, along with the modifiers supported for each format. All the supported modifiers for all the supported formats are advertised once when the client binds to this interface. A roundtrip after binding guarantees that the client has received all supported format-modifier pairs.
For legacy support, DRM_FORMAT_MOD_INVALID (that is, modifier_hi == 0x00ffffff and modifier_lo == 0xffffffff) is allowed in this event. It indicates that the server can support the format with an implicit modifier. When a plane has DRM_FORMAT_MOD_INVALID as its modifier, it is as if no explicit modifier is specified. The effective modifier will be derived from the dmabuf.
For the definition of the format and modifier codes, see the zwp_linux_buffer_params_v1::create and zwp_linux_buffer_params_v1::add requests.
func (*ZwpLinuxDmabufV1) RemoveCreateParamsHandler ¶
func (p *ZwpLinuxDmabufV1) RemoveCreateParamsHandler(h ZwpLinuxDmabufV1CreateParamsHandler)
func (*ZwpLinuxDmabufV1) RemoveDestroyHandler ¶
func (p *ZwpLinuxDmabufV1) RemoveDestroyHandler(h ZwpLinuxDmabufV1DestroyHandler)
type ZwpLinuxDmabufV1CreateParamsEvent ¶
type ZwpLinuxDmabufV1CreateParamsEvent struct {
ParamsId *ZwpLinuxBufferParamsV1
}
type ZwpLinuxDmabufV1CreateParamsHandler ¶
type ZwpLinuxDmabufV1CreateParamsHandler interface {
HandleZwpLinuxDmabufV1CreateParams(ZwpLinuxDmabufV1CreateParamsEvent)
}
type ZwpLinuxDmabufV1DestroyEvent ¶
type ZwpLinuxDmabufV1DestroyEvent struct { }
type ZwpLinuxDmabufV1DestroyHandler ¶
type ZwpLinuxDmabufV1DestroyHandler interface {
HandleZwpLinuxDmabufV1Destroy(ZwpLinuxDmabufV1DestroyEvent)
}