aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xvmc/xvmc.go
diff options
context:
space:
mode:
Diffstat (limited to 'nexgb/xvmc/xvmc.go')
-rw-r--r--nexgb/xvmc/xvmc.go54
1 files changed, 27 insertions, 27 deletions
diff --git a/nexgb/xvmc/xvmc.go b/nexgb/xvmc/xvmc.go
index 5ab7108..cd82b33 100644
--- a/nexgb/xvmc/xvmc.go
+++ b/nexgb/xvmc/xvmc.go
@@ -203,7 +203,7 @@ 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 _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
+ if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'CreateContext' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@@ -214,7 +214,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 {
- if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
+ if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'CreateContext' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@@ -287,7 +287,7 @@ func createContextRequest(c *xgb.Conn, ContextId Context, PortId xv.Port, Surfac
b := 0
buf := make([]byte, size)
- buf[b] = c.Extensions["XVIDEO-MOTIONCOMPENSATION"]
+ buf[b] = c.Extensions["XVideo-MotionCompensation"]
b += 1
buf[b] = 2 // request opcode
@@ -325,7 +325,7 @@ 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 _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
+ if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'CreateSubpicture' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@@ -336,7 +336,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 {
- if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
+ if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'CreateSubpicture' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@@ -418,7 +418,7 @@ func createSubpictureRequest(c *xgb.Conn, SubpictureId Subpicture, Context Conte
b := 0
buf := make([]byte, size)
- buf[b] = c.Extensions["XVIDEO-MOTIONCOMPENSATION"]
+ buf[b] = c.Extensions["XVideo-MotionCompensation"]
b += 1
buf[b] = 6 // request opcode
@@ -453,7 +453,7 @@ type CreateSurfaceCookie struct {
// CreateSurface sends a checked request.
// 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 {
- if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
+ if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'CreateSurface' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@@ -464,7 +464,7 @@ func CreateSurface(c *xgb.Conn, SurfaceId Surface, ContextId Context) CreateSurf
// CreateSurfaceUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func CreateSurfaceUnchecked(c *xgb.Conn, SurfaceId Surface, ContextId Context) CreateSurfaceCookie {
- if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
+ if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'CreateSurface' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@@ -525,7 +525,7 @@ func createSurfaceRequest(c *xgb.Conn, SurfaceId Surface, ContextId Context) []b
b := 0
buf := make([]byte, size)
- buf[b] = c.Extensions["XVIDEO-MOTIONCOMPENSATION"]
+ buf[b] = c.Extensions["XVideo-MotionCompensation"]
b += 1
buf[b] = 4 // request opcode
@@ -551,7 +551,7 @@ type DestroyContextCookie struct {
// DestroyContext sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DestroyContext(c *xgb.Conn, ContextId Context) DestroyContextCookie {
- if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
+ if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'DestroyContext' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@@ -562,7 +562,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()
func DestroyContextChecked(c *xgb.Conn, ContextId Context) DestroyContextCookie {
- if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
+ if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'DestroyContext' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@@ -583,7 +583,7 @@ func destroyContextRequest(c *xgb.Conn, ContextId Context) []byte {
b := 0
buf := make([]byte, size)
- buf[b] = c.Extensions["XVIDEO-MOTIONCOMPENSATION"]
+ buf[b] = c.Extensions["XVideo-MotionCompensation"]
b += 1
buf[b] = 3 // request opcode
@@ -606,7 +606,7 @@ type DestroySubpictureCookie struct {
// DestroySubpicture sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DestroySubpicture(c *xgb.Conn, SubpictureId Subpicture) DestroySubpictureCookie {
- if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
+ if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'DestroySubpicture' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@@ -617,7 +617,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()
func DestroySubpictureChecked(c *xgb.Conn, SubpictureId Subpicture) DestroySubpictureCookie {
- if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
+ if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'DestroySubpicture' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@@ -638,7 +638,7 @@ func destroySubpictureRequest(c *xgb.Conn, SubpictureId Subpicture) []byte {
b := 0
buf := make([]byte, size)
- buf[b] = c.Extensions["XVIDEO-MOTIONCOMPENSATION"]
+ buf[b] = c.Extensions["XVideo-MotionCompensation"]
b += 1
buf[b] = 7 // request opcode
@@ -661,7 +661,7 @@ type DestroySurfaceCookie struct {
// DestroySurface sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func DestroySurface(c *xgb.Conn, SurfaceId Surface) DestroySurfaceCookie {
- if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
+ if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'DestroySurface' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, false)
@@ -672,7 +672,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()
func DestroySurfaceChecked(c *xgb.Conn, SurfaceId Surface) DestroySurfaceCookie {
- if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
+ if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'DestroySurface' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, false)
@@ -693,7 +693,7 @@ func destroySurfaceRequest(c *xgb.Conn, SurfaceId Surface) []byte {
b := 0
buf := make([]byte, size)
- buf[b] = c.Extensions["XVIDEO-MOTIONCOMPENSATION"]
+ buf[b] = c.Extensions["XVideo-MotionCompensation"]
b += 1
buf[b] = 5 // request opcode
@@ -716,7 +716,7 @@ type ListSubpictureTypesCookie struct {
// ListSubpictureTypes sends a checked request.
// 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 {
- if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
+ if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'ListSubpictureTypes' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@@ -727,7 +727,7 @@ func ListSubpictureTypes(c *xgb.Conn, PortId xv.Port, SurfaceId Surface) ListSub
// ListSubpictureTypesUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ListSubpictureTypesUnchecked(c *xgb.Conn, PortId xv.Port, SurfaceId Surface) ListSubpictureTypesCookie {
- if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
+ if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'ListSubpictureTypes' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@@ -788,7 +788,7 @@ func listSubpictureTypesRequest(c *xgb.Conn, PortId xv.Port, SurfaceId Surface)
b := 0
buf := make([]byte, size)
- buf[b] = c.Extensions["XVIDEO-MOTIONCOMPENSATION"]
+ buf[b] = c.Extensions["XVideo-MotionCompensation"]
b += 1
buf[b] = 8 // request opcode
@@ -814,7 +814,7 @@ type ListSurfaceTypesCookie struct {
// ListSurfaceTypes sends a checked request.
// If an error occurs, it will be returned with the reply by calling ListSurfaceTypesCookie.Reply()
func ListSurfaceTypes(c *xgb.Conn, PortId xv.Port) ListSurfaceTypesCookie {
- if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
+ if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'ListSurfaceTypes' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@@ -825,7 +825,7 @@ func ListSurfaceTypes(c *xgb.Conn, PortId xv.Port) ListSurfaceTypesCookie {
// ListSurfaceTypesUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func ListSurfaceTypesUnchecked(c *xgb.Conn, PortId xv.Port) ListSurfaceTypesCookie {
- if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
+ if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'ListSurfaceTypes' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@@ -886,7 +886,7 @@ func listSurfaceTypesRequest(c *xgb.Conn, PortId xv.Port) []byte {
b := 0
buf := make([]byte, size)
- buf[b] = c.Extensions["XVIDEO-MOTIONCOMPENSATION"]
+ buf[b] = c.Extensions["XVideo-MotionCompensation"]
b += 1
buf[b] = 1 // request opcode
@@ -909,7 +909,7 @@ type QueryVersionCookie struct {
// QueryVersion sends a checked request.
// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()
func QueryVersion(c *xgb.Conn) QueryVersionCookie {
- if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
+ if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(true, true)
@@ -920,7 +920,7 @@ func QueryVersion(c *xgb.Conn) QueryVersionCookie {
// QueryVersionUnchecked sends an unchecked request.
// If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.
func QueryVersionUnchecked(c *xgb.Conn) QueryVersionCookie {
- if _, ok := c.Extensions["XVIDEO-MOTIONCOMPENSATION"]; !ok {
+ if _, ok := c.Extensions["XVideo-MotionCompensation"]; !ok {
panic("Cannot issue request 'QueryVersion' using the uninitialized extension 'XVideo-MotionCompensation'. xvmc.Init(connObj) must be called first.")
}
cookie := c.NewCookie(false, true)
@@ -978,7 +978,7 @@ func queryVersionRequest(c *xgb.Conn) []byte {
b := 0
buf := make([]byte, size)
- buf[b] = c.Extensions["XVIDEO-MOTIONCOMPENSATION"]
+ buf[b] = c.Extensions["XVideo-MotionCompensation"]
b += 1
buf[b] = 0 // request opcode