aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xvmc/xvmc.go
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-09-30 16:32:47 +0200
committerPřemysl Janouch <p@janouch.name>2018-09-30 17:34:27 +0200
commite6e4e9443661bab3bb69a6c32dacfaf0e54f32ef (patch)
tree1f81f1a54e9469424463f4fdd17f6d19094d241d /nexgb/xvmc/xvmc.go
parent7051829581b426a410a3817921564d950f839768 (diff)
downloadhaven-e6e4e9443661bab3bb69a6c32dacfaf0e54f32ef.tar.gz
haven-e6e4e9443661bab3bb69a6c32dacfaf0e54f32ef.tar.xz
haven-e6e4e9443661bab3bb69a6c32dacfaf0e54f32ef.zip
nexgb: regenerate from xcb-proto 1.12
To refresh documentation.
Diffstat (limited to 'nexgb/xvmc/xvmc.go')
-rw-r--r--nexgb/xvmc/xvmc.go57
1 files changed, 24 insertions, 33 deletions
diff --git a/nexgb/xvmc/xvmc.go b/nexgb/xvmc/xvmc.go
index ca4c831..24fd46c 100644
--- a/nexgb/xvmc/xvmc.go
+++ b/nexgb/xvmc/xvmc.go
@@ -205,8 +205,8 @@ type CreateContextCookie struct {
}
// CreateContext sends a checked request.
-// If an error occurs, it will be returned with the reply by calling CreateContextCookie.Reply()
-func CreateContext(c *xgb.Conn, ContextId Context, PortId xv.Port, SurfaceId Surface, Width uint16, Height uint16, Flags uint32) CreateContextCookie {
+// If an error occurs, it will be returned with the reply by calling CreateContextCookie.Reply.
+func CreateContext(c *xgb.Conn, ContextId Context, PortId xv.Port, SurfaceId Surface, Width, Height uint16, Flags uint32) CreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
@@ -219,7 +219,7 @@ func CreateContext(c *xgb.Conn, ContextId Context, PortId xv.Port, SurfaceId Sur
// CreateContextUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
-func CreateContextUnchecked(c *xgb.Conn, ContextId Context, PortId xv.Port, SurfaceId Surface, Width uint16, Height uint16, Flags uint32) CreateContextCookie {
+func CreateContextUnchecked(c *xgb.Conn, ContextId Context, PortId xv.Port, SurfaceId Surface, Width, Height uint16, Flags uint32) CreateContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
@@ -287,9 +287,8 @@ func createContextReply(buf []byte) *CreateContextReply {
return v
}
-// Write request to wire for CreateContext
-// createContextRequest writes a CreateContext request to a byte slice.
-func createContextRequest(c *xgb.Conn, ContextId Context, PortId xv.Port, SurfaceId Surface, Width uint16, Height uint16, Flags uint32) []byte {
+// createContextRequest writes a CreateContext request to a byte slice for transfer.
+func createContextRequest(c *xgb.Conn, ContextId Context, PortId xv.Port, SurfaceId Surface, Width, Height uint16, Flags uint32) []byte {
size := 24
b := 0
buf := make([]byte, size)
@@ -332,8 +331,8 @@ type CreateSubpictureCookie struct {
}
// CreateSubpicture sends a checked request.
-// If an error occurs, it will be returned with the reply by calling CreateSubpictureCookie.Reply()
-func CreateSubpicture(c *xgb.Conn, SubpictureId Subpicture, Context Context, XvimageId uint32, Width uint16, Height uint16) CreateSubpictureCookie {
+// If an error occurs, it will be returned with the reply by calling CreateSubpictureCookie.Reply.
+func CreateSubpicture(c *xgb.Conn, SubpictureId Subpicture, Context Context, XvimageId uint32, Width, Height uint16) CreateSubpictureCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
@@ -346,7 +345,7 @@ func CreateSubpicture(c *xgb.Conn, SubpictureId Subpicture, Context Context, Xvi
// CreateSubpictureUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
-func CreateSubpictureUnchecked(c *xgb.Conn, SubpictureId Subpicture, Context Context, XvimageId uint32, Width uint16, Height uint16) CreateSubpictureCookie {
+func CreateSubpictureUnchecked(c *xgb.Conn, SubpictureId Subpicture, Context Context, XvimageId uint32, Width, Height uint16) CreateSubpictureCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
@@ -423,9 +422,8 @@ func createSubpictureReply(buf []byte) *CreateSubpictureReply {
return v
}
-// Write request to wire for CreateSubpicture
-// createSubpictureRequest writes a CreateSubpicture request to a byte slice.
-func createSubpictureRequest(c *xgb.Conn, SubpictureId Subpicture, Context Context, XvimageId uint32, Width uint16, Height uint16) []byte {
+// createSubpictureRequest writes a CreateSubpicture request to a byte slice for transfer.
+func createSubpictureRequest(c *xgb.Conn, SubpictureId Subpicture, Context Context, XvimageId uint32, Width, Height uint16) []byte {
size := 20
b := 0
buf := make([]byte, size)
@@ -465,7 +463,7 @@ type CreateSurfaceCookie struct {
}
// CreateSurface sends a checked request.
-// If an error occurs, it will be returned with the reply by calling CreateSurfaceCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling CreateSurfaceCookie.Reply.
func CreateSurface(c *xgb.Conn, SurfaceId Surface, ContextId Context) CreateSurfaceCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -535,8 +533,7 @@ func createSurfaceReply(buf []byte) *CreateSurfaceReply {
return v
}
-// Write request to wire for CreateSurface
-// createSurfaceRequest writes a CreateSurface request to a byte slice.
+// createSurfaceRequest writes a CreateSurface request to a byte slice for transfer.
func createSurfaceRequest(c *xgb.Conn, SurfaceId Surface, ContextId Context) []byte {
size := 12
b := 0
@@ -581,7 +578,7 @@ func DestroyContext(c *xgb.Conn, ContextId Context) DestroyContextCookie {
}
// DestroyContextChecked sends a checked request.
-// If an error occurs, it can be retrieved using DestroyContextCookie.Check()
+// If an error occurs, it can be retrieved using DestroyContextCookie.Check.
func DestroyContextChecked(c *xgb.Conn, ContextId Context) DestroyContextCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -599,8 +596,7 @@ func (cook DestroyContextCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for DestroyContext
-// destroyContextRequest writes a DestroyContext request to a byte slice.
+// destroyContextRequest writes a DestroyContext request to a byte slice for transfer.
func destroyContextRequest(c *xgb.Conn, ContextId Context) []byte {
size := 8
b := 0
@@ -642,7 +638,7 @@ func DestroySubpicture(c *xgb.Conn, SubpictureId Subpicture) DestroySubpictureCo
}
// DestroySubpictureChecked sends a checked request.
-// If an error occurs, it can be retrieved using DestroySubpictureCookie.Check()
+// If an error occurs, it can be retrieved using DestroySubpictureCookie.Check.
func DestroySubpictureChecked(c *xgb.Conn, SubpictureId Subpicture) DestroySubpictureCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -660,8 +656,7 @@ func (cook DestroySubpictureCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for DestroySubpicture
-// destroySubpictureRequest writes a DestroySubpicture request to a byte slice.
+// destroySubpictureRequest writes a DestroySubpicture request to a byte slice for transfer.
func destroySubpictureRequest(c *xgb.Conn, SubpictureId Subpicture) []byte {
size := 8
b := 0
@@ -703,7 +698,7 @@ func DestroySurface(c *xgb.Conn, SurfaceId Surface) DestroySurfaceCookie {
}
// DestroySurfaceChecked sends a checked request.
-// If an error occurs, it can be retrieved using DestroySurfaceCookie.Check()
+// If an error occurs, it can be retrieved using DestroySurfaceCookie.Check.
func DestroySurfaceChecked(c *xgb.Conn, SurfaceId Surface) DestroySurfaceCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -721,8 +716,7 @@ func (cook DestroySurfaceCookie) Check() error {
return cook.Cookie.Check()
}
-// Write request to wire for DestroySurface
-// destroySurfaceRequest writes a DestroySurface request to a byte slice.
+// destroySurfaceRequest writes a DestroySurface request to a byte slice for transfer.
func destroySurfaceRequest(c *xgb.Conn, SurfaceId Surface) []byte {
size := 8
b := 0
@@ -751,7 +745,7 @@ type ListSubpictureTypesCookie struct {
}
// ListSubpictureTypes sends a checked request.
-// If an error occurs, it will be returned with the reply by calling ListSubpictureTypesCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling ListSubpictureTypesCookie.Reply.
func ListSubpictureTypes(c *xgb.Conn, PortId xv.Port, SurfaceId Surface) ListSubpictureTypesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -822,8 +816,7 @@ func listSubpictureTypesReply(buf []byte) *ListSubpictureTypesReply {
return v
}
-// Write request to wire for ListSubpictureTypes
-// listSubpictureTypesRequest writes a ListSubpictureTypes request to a byte slice.
+// listSubpictureTypesRequest writes a ListSubpictureTypes request to a byte slice for transfer.
func listSubpictureTypesRequest(c *xgb.Conn, PortId xv.Port, SurfaceId Surface) []byte {
size := 12
b := 0
@@ -855,7 +848,7 @@ type ListSurfaceTypesCookie struct {
}
// ListSurfaceTypes sends a checked request.
-// If an error occurs, it will be returned with the reply by calling ListSurfaceTypesCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling ListSurfaceTypesCookie.Reply.
func ListSurfaceTypes(c *xgb.Conn, PortId xv.Port) ListSurfaceTypesCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -926,8 +919,7 @@ func listSurfaceTypesReply(buf []byte) *ListSurfaceTypesReply {
return v
}
-// Write request to wire for ListSurfaceTypes
-// listSurfaceTypesRequest writes a ListSurfaceTypes request to a byte slice.
+// listSurfaceTypesRequest writes a ListSurfaceTypes request to a byte slice for transfer.
func listSurfaceTypesRequest(c *xgb.Conn, PortId xv.Port) []byte {
size := 8
b := 0
@@ -956,7 +948,7 @@ type QueryVersionCookie struct {
}
// QueryVersion sends a checked request.
-// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
+// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply.
func QueryVersion(c *xgb.Conn) QueryVersionCookie {
c.ExtLock.RLock()
defer c.ExtLock.RUnlock()
@@ -1024,8 +1016,7 @@ func queryVersionReply(buf []byte) *QueryVersionReply {
return v
}
-// Write request to wire for QueryVersion
-// queryVersionRequest writes a QueryVersion request to a byte slice.
+// queryVersionRequest writes a QueryVersion request to a byte slice for transfer.
func queryVersionRequest(c *xgb.Conn) []byte {
size := 4
b := 0