dmabuf

package
v0.0.0-...-9ebd843 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2020 License: BSD-2-Clause Imports: 2 Imported by: 0

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

View Source
const (
	ZwpLinuxBufferParamsV1ErrorAlreadyUsed       = 0
	ZwpLinuxBufferParamsV1ErrorPlaneIdx          = 1
	ZwpLinuxBufferParamsV1ErrorPlaneSet          = 2
	ZwpLinuxBufferParamsV1ErrorIncomplete        = 3
	ZwpLinuxBufferParamsV1ErrorInvalidFormat     = 4
	ZwpLinuxBufferParamsV1ErrorInvalidDimensions = 5
	ZwpLinuxBufferParamsV1ErrorOutOfBounds       = 6
	ZwpLinuxBufferParamsV1ErrorInvalidWlBuffer   = 7
)
View Source
const (
	ZwpLinuxBufferParamsV1FlagsYInvert     = 1
	ZwpLinuxBufferParamsV1FlagsInterlaced  = 2
	ZwpLinuxBufferParamsV1FlagsBottomFirst = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ZwpLinuxBufferParamsV1

type ZwpLinuxBufferParamsV1 struct {
	wl.BaseProxy
	// contains filtered or unexported fields
}

func NewZwpLinuxBufferParamsV1

func NewZwpLinuxBufferParamsV1(ctx *wl.Context, id int) *ZwpLinuxBufferParamsV1

func (*ZwpLinuxBufferParamsV1) AddAddHandler

func (*ZwpLinuxBufferParamsV1) AddCreateHandler

func (*ZwpLinuxBufferParamsV1) AddCreateImmedHandler

func (*ZwpLinuxBufferParamsV1) AddDestroyHandler

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 (*ZwpLinuxBufferParamsV1) RemoveCreateHandler

func (*ZwpLinuxBufferParamsV1) RemoveCreateImmedHandler

func (*ZwpLinuxBufferParamsV1) RemoveDestroyHandler

type ZwpLinuxBufferParamsV1AddEvent

type ZwpLinuxBufferParamsV1AddEvent struct {
	Fd         uintptr
	PlaneIdx   uint32
	Offset     uint32
	Stride     uint32
	ModifierHi uint32
	ModifierLo uint32
}

type ZwpLinuxBufferParamsV1AddHandler

type ZwpLinuxBufferParamsV1AddHandler interface {
	HandleZwpLinuxBufferParamsV1Add(ZwpLinuxBufferParamsV1AddEvent)
}

type ZwpLinuxBufferParamsV1CreateEvent

type ZwpLinuxBufferParamsV1CreateEvent struct {
	Width  int32
	Height int32
	Format uint32
	Flags  uint32
}

type ZwpLinuxBufferParamsV1CreateHandler

type ZwpLinuxBufferParamsV1CreateHandler interface {
	HandleZwpLinuxBufferParamsV1Create(ZwpLinuxBufferParamsV1CreateEvent)
}

type ZwpLinuxBufferParamsV1CreateImmedEvent

type ZwpLinuxBufferParamsV1CreateImmedEvent struct {
	BufferId *wl.Buffer
	Width    int32
	Height   int32
	Format   uint32
	Flags    uint32
}

type ZwpLinuxBufferParamsV1CreateImmedHandler

type ZwpLinuxBufferParamsV1CreateImmedHandler interface {
	HandleZwpLinuxBufferParamsV1CreateImmed(ZwpLinuxBufferParamsV1CreateImmedEvent)
}

type ZwpLinuxBufferParamsV1DestroyEvent

type ZwpLinuxBufferParamsV1DestroyEvent struct {
}

type ZwpLinuxBufferParamsV1DestroyHandler

type ZwpLinuxBufferParamsV1DestroyHandler interface {
	HandleZwpLinuxBufferParamsV1Destroy(ZwpLinuxBufferParamsV1DestroyEvent)
}

type ZwpLinuxDmabufV1

type ZwpLinuxDmabufV1 struct {
	wl.BaseProxy
	// contains filtered or unexported fields
}

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL