aboutsummaryrefslogtreecommitdiff
path: root/nexgb/auto_xv.go
diff options
context:
space:
mode:
Diffstat (limited to 'nexgb/auto_xv.go')
-rw-r--r--nexgb/auto_xv.go184
1 files changed, 99 insertions, 85 deletions
diff --git a/nexgb/auto_xv.go b/nexgb/auto_xv.go
index 615c540..25f0491 100644
--- a/nexgb/auto_xv.go
+++ b/nexgb/auto_xv.go
@@ -1,7 +1,7 @@
package xgb
/*
- This file was generated by xv.xml on May 8 2012 11:03:25pm EDT.
+ This file was generated by xv.xml on May 10 2012 12:39:35pm EDT.
This file is automatically generated. Edit at your peril!
*/
@@ -38,18 +38,8 @@ func init() {
newExtErrorFuncs["XVideo"] = make(map[int]newErrorFun)
}
-// Skipping definition for base type 'Char'
-
-// Skipping definition for base type 'Card32'
-
-// Skipping definition for base type 'Double'
-
-// Skipping definition for base type 'Bool'
-
// Skipping definition for base type 'Float'
-// Skipping definition for base type 'Id'
-
// Skipping definition for base type 'Card8'
// Skipping definition for base type 'Int16'
@@ -64,6 +54,14 @@ func init() {
// Skipping definition for base type 'Card16'
+// Skipping definition for base type 'Char'
+
+// Skipping definition for base type 'Card32'
+
+// Skipping definition for base type 'Double'
+
+// Skipping definition for base type 'Bool'
+
const (
XvTypeInputMask = 1
XvTypeOutputMask = 2
@@ -109,9 +107,25 @@ const (
XvGrabPortStatusBadAlloc = 5
)
-// Skipping resource definition of 'Port'
+type XvPort uint32
+
+func (c *Conn) NewXvPortId() (XvPort, error) {
+ id, err := c.NewId()
+ if err != nil {
+ return 0, err
+ }
+ return XvPort(id), nil
+}
+
+type XvEncoding uint32
-// Skipping resource definition of 'Encoding'
+func (c *Conn) NewXvEncodingId() (XvEncoding, error) {
+ id, err := c.NewId()
+ if err != nil {
+ return 0, err
+ }
+ return XvEncoding(id), nil
+}
// 'XvRational' struct definition
// Size: 8
@@ -233,7 +247,7 @@ func XvFormatListBytes(buf []byte, list []XvFormat) int {
// 'XvAdaptorInfo' struct definition
// Size: ((12 + pad((int(NameSize) * 1))) + pad((int(NumFormats) * 8)))
type XvAdaptorInfo struct {
- BaseId Id
+ BaseId XvPort
NameSize uint16
NumPorts uint16
NumFormats uint16
@@ -247,7 +261,7 @@ type XvAdaptorInfo struct {
func ReadXvAdaptorInfo(buf []byte, v *XvAdaptorInfo) int {
b := 0
- v.BaseId = Id(Get32(buf[b:]))
+ v.BaseId = XvPort(Get32(buf[b:]))
b += 4
v.NameSize = Get16(buf[b:])
@@ -341,7 +355,7 @@ func XvAdaptorInfoListSize(list []XvAdaptorInfo) int {
// 'XvEncodingInfo' struct definition
// Size: (20 + pad((int(NameSize) * 1)))
type XvEncodingInfo struct {
- Encoding Id
+ Encoding XvEncoding
NameSize uint16
Width uint16
Height uint16
@@ -354,7 +368,7 @@ type XvEncodingInfo struct {
func ReadXvEncodingInfo(buf []byte, v *XvEncodingInfo) int {
b := 0
- v.Encoding = Id(Get32(buf[b:]))
+ v.Encoding = XvEncoding(Get32(buf[b:]))
b += 4
v.NameSize = Get16(buf[b:])
@@ -896,8 +910,8 @@ type XvVideoNotifyEvent struct {
Sequence uint16
Reason byte
Time Timestamp
- Drawable Id
- Port Id
+ Drawable Drawable
+ Port XvPort
}
// Event read XvVideoNotify
@@ -914,10 +928,10 @@ func NewXvVideoNotifyEvent(buf []byte) Event {
v.Time = Timestamp(Get32(buf[b:]))
b += 4
- v.Drawable = Id(Get32(buf[b:]))
+ v.Drawable = Drawable(Get32(buf[b:]))
b += 4
- v.Port = Id(Get32(buf[b:]))
+ v.Port = XvPort(Get32(buf[b:]))
b += 4
return v
@@ -978,8 +992,8 @@ type XvPortNotifyEvent struct {
Sequence uint16
// padding: 1 bytes
Time Timestamp
- Port Id
- Attribute Id
+ Port XvPort
+ Attribute Atom
Value int32
}
@@ -996,10 +1010,10 @@ func NewXvPortNotifyEvent(buf []byte) Event {
v.Time = Timestamp(Get32(buf[b:]))
b += 4
- v.Port = Id(Get32(buf[b:]))
+ v.Port = XvPort(Get32(buf[b:]))
b += 4
- v.Attribute = Id(Get32(buf[b:]))
+ v.Attribute = Atom(Get32(buf[b:]))
b += 4
v.Value = int32(Get32(buf[b:]))
@@ -1086,7 +1100,7 @@ func (err XvBadPortError) SequenceId() uint16 {
return err.Sequence
}
-func (err XvBadPortError) BadId() Id {
+func (err XvBadPortError) BadId() uint32 {
return 0
}
@@ -1131,7 +1145,7 @@ func (err XvBadEncodingError) SequenceId() uint16 {
return err.Sequence
}
-func (err XvBadEncodingError) BadId() Id {
+func (err XvBadEncodingError) BadId() uint32 {
return 0
}
@@ -1176,7 +1190,7 @@ func (err XvBadControlError) SequenceId() uint16 {
return err.Sequence
}
-func (err XvBadControlError) BadId() Id {
+func (err XvBadControlError) BadId() uint32 {
return 0
}
@@ -1281,13 +1295,13 @@ type XvQueryAdaptorsCookie struct {
*cookie
}
-func (c *Conn) XvQueryAdaptors(Window Id) XvQueryAdaptorsCookie {
+func (c *Conn) XvQueryAdaptors(Window Window) XvQueryAdaptorsCookie {
cookie := c.newCookie(true, true)
c.newRequest(c.xvQueryAdaptorsRequest(Window), cookie)
return XvQueryAdaptorsCookie{cookie}
}
-func (c *Conn) XvQueryAdaptorsUnchecked(Window Id) XvQueryAdaptorsCookie {
+func (c *Conn) XvQueryAdaptorsUnchecked(Window Window) XvQueryAdaptorsCookie {
cookie := c.newCookie(false, true)
c.newRequest(c.xvQueryAdaptorsRequest(Window), cookie)
return XvQueryAdaptorsCookie{cookie}
@@ -1345,7 +1359,7 @@ func (cook XvQueryAdaptorsCookie) Check() error {
}
// Write request to wire for XvQueryAdaptors
-func (c *Conn) xvQueryAdaptorsRequest(Window Id) []byte {
+func (c *Conn) xvQueryAdaptorsRequest(Window Window) []byte {
size := 8
b := 0
buf := make([]byte, size)
@@ -1371,13 +1385,13 @@ type XvQueryEncodingsCookie struct {
*cookie
}
-func (c *Conn) XvQueryEncodings(Port Id) XvQueryEncodingsCookie {
+func (c *Conn) XvQueryEncodings(Port XvPort) XvQueryEncodingsCookie {
cookie := c.newCookie(true, true)
c.newRequest(c.xvQueryEncodingsRequest(Port), cookie)
return XvQueryEncodingsCookie{cookie}
}
-func (c *Conn) XvQueryEncodingsUnchecked(Port Id) XvQueryEncodingsCookie {
+func (c *Conn) XvQueryEncodingsUnchecked(Port XvPort) XvQueryEncodingsCookie {
cookie := c.newCookie(false, true)
c.newRequest(c.xvQueryEncodingsRequest(Port), cookie)
return XvQueryEncodingsCookie{cookie}
@@ -1435,7 +1449,7 @@ func (cook XvQueryEncodingsCookie) Check() error {
}
// Write request to wire for XvQueryEncodings
-func (c *Conn) xvQueryEncodingsRequest(Port Id) []byte {
+func (c *Conn) xvQueryEncodingsRequest(Port XvPort) []byte {
size := 8
b := 0
buf := make([]byte, size)
@@ -1461,13 +1475,13 @@ type XvGrabPortCookie struct {
*cookie
}
-func (c *Conn) XvGrabPort(Port Id, Time Timestamp) XvGrabPortCookie {
+func (c *Conn) XvGrabPort(Port XvPort, Time Timestamp) XvGrabPortCookie {
cookie := c.newCookie(true, true)
c.newRequest(c.xvGrabPortRequest(Port, Time), cookie)
return XvGrabPortCookie{cookie}
}
-func (c *Conn) XvGrabPortUnchecked(Port Id, Time Timestamp) XvGrabPortCookie {
+func (c *Conn) XvGrabPortUnchecked(Port XvPort, Time Timestamp) XvGrabPortCookie {
cookie := c.newCookie(false, true)
c.newRequest(c.xvGrabPortRequest(Port, Time), cookie)
return XvGrabPortCookie{cookie}
@@ -1515,7 +1529,7 @@ func (cook XvGrabPortCookie) Check() error {
}
// Write request to wire for XvGrabPort
-func (c *Conn) xvGrabPortRequest(Port Id, Time Timestamp) []byte {
+func (c *Conn) xvGrabPortRequest(Port XvPort, Time Timestamp) []byte {
size := 12
b := 0
buf := make([]byte, size)
@@ -1545,13 +1559,13 @@ type XvUngrabPortCookie struct {
}
// Write request to wire for XvUngrabPort
-func (c *Conn) XvUngrabPort(Port Id, Time Timestamp) XvUngrabPortCookie {
+func (c *Conn) XvUngrabPort(Port XvPort, Time Timestamp) XvUngrabPortCookie {
cookie := c.newCookie(false, false)
c.newRequest(c.xvUngrabPortRequest(Port, Time), cookie)
return XvUngrabPortCookie{cookie}
}
-func (c *Conn) XvUngrabPortChecked(Port Id, Time Timestamp) XvUngrabPortCookie {
+func (c *Conn) XvUngrabPortChecked(Port XvPort, Time Timestamp) XvUngrabPortCookie {
cookie := c.newCookie(true, false)
c.newRequest(c.xvUngrabPortRequest(Port, Time), cookie)
return XvUngrabPortCookie{cookie}
@@ -1562,7 +1576,7 @@ func (cook XvUngrabPortCookie) Check() error {
}
// Write request to wire for XvUngrabPort
-func (c *Conn) xvUngrabPortRequest(Port Id, Time Timestamp) []byte {
+func (c *Conn) xvUngrabPortRequest(Port XvPort, Time Timestamp) []byte {
size := 12
b := 0
buf := make([]byte, size)
@@ -1592,13 +1606,13 @@ type XvPutVideoCookie struct {
}
// Write request to wire for XvPutVideo
-func (c *Conn) XvPutVideo(Port Id, Drawable Id, Gc Id, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) XvPutVideoCookie {
+func (c *Conn) XvPutVideo(Port XvPort, Drawable Drawable, Gc Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) XvPutVideoCookie {
cookie := c.newCookie(false, false)
c.newRequest(c.xvPutVideoRequest(Port, Drawable, Gc, VidX, VidY, VidW, VidH, DrwX, DrwY, DrwW, DrwH), cookie)
return XvPutVideoCookie{cookie}
}
-func (c *Conn) XvPutVideoChecked(Port Id, Drawable Id, Gc Id, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) XvPutVideoCookie {
+func (c *Conn) XvPutVideoChecked(Port XvPort, Drawable Drawable, Gc Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) XvPutVideoCookie {
cookie := c.newCookie(true, false)
c.newRequest(c.xvPutVideoRequest(Port, Drawable, Gc, VidX, VidY, VidW, VidH, DrwX, DrwY, DrwW, DrwH), cookie)
return XvPutVideoCookie{cookie}
@@ -1609,7 +1623,7 @@ func (cook XvPutVideoCookie) Check() error {
}
// Write request to wire for XvPutVideo
-func (c *Conn) xvPutVideoRequest(Port Id, Drawable Id, Gc Id, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) []byte {
+func (c *Conn) xvPutVideoRequest(Port XvPort, Drawable Drawable, Gc Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) []byte {
size := 32
b := 0
buf := make([]byte, size)
@@ -1666,13 +1680,13 @@ type XvPutStillCookie struct {
}
// Write request to wire for XvPutStill
-func (c *Conn) XvPutStill(Port Id, Drawable Id, Gc Id, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) XvPutStillCookie {
+func (c *Conn) XvPutStill(Port XvPort, Drawable Drawable, Gc Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) XvPutStillCookie {
cookie := c.newCookie(false, false)
c.newRequest(c.xvPutStillRequest(Port, Drawable, Gc, VidX, VidY, VidW, VidH, DrwX, DrwY, DrwW, DrwH), cookie)
return XvPutStillCookie{cookie}
}
-func (c *Conn) XvPutStillChecked(Port Id, Drawable Id, Gc Id, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) XvPutStillCookie {
+func (c *Conn) XvPutStillChecked(Port XvPort, Drawable Drawable, Gc Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) XvPutStillCookie {
cookie := c.newCookie(true, false)
c.newRequest(c.xvPutStillRequest(Port, Drawable, Gc, VidX, VidY, VidW, VidH, DrwX, DrwY, DrwW, DrwH), cookie)
return XvPutStillCookie{cookie}
@@ -1683,7 +1697,7 @@ func (cook XvPutStillCookie) Check() error {
}
// Write request to wire for XvPutStill
-func (c *Conn) xvPutStillRequest(Port Id, Drawable Id, Gc Id, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) []byte {
+func (c *Conn) xvPutStillRequest(Port XvPort, Drawable Drawable, Gc Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) []byte {
size := 32
b := 0
buf := make([]byte, size)
@@ -1740,13 +1754,13 @@ type XvGetVideoCookie struct {
}
// Write request to wire for XvGetVideo
-func (c *Conn) XvGetVideo(Port Id, Drawable Id, Gc Id, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) XvGetVideoCookie {
+func (c *Conn) XvGetVideo(Port XvPort, Drawable Drawable, Gc Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) XvGetVideoCookie {
cookie := c.newCookie(false, false)
c.newRequest(c.xvGetVideoRequest(Port, Drawable, Gc, VidX, VidY, VidW, VidH, DrwX, DrwY, DrwW, DrwH), cookie)
return XvGetVideoCookie{cookie}
}
-func (c *Conn) XvGetVideoChecked(Port Id, Drawable Id, Gc Id, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) XvGetVideoCookie {
+func (c *Conn) XvGetVideoChecked(Port XvPort, Drawable Drawable, Gc Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) XvGetVideoCookie {
cookie := c.newCookie(true, false)
c.newRequest(c.xvGetVideoRequest(Port, Drawable, Gc, VidX, VidY, VidW, VidH, DrwX, DrwY, DrwW, DrwH), cookie)
return XvGetVideoCookie{cookie}
@@ -1757,7 +1771,7 @@ func (cook XvGetVideoCookie) Check() error {
}
// Write request to wire for XvGetVideo
-func (c *Conn) xvGetVideoRequest(Port Id, Drawable Id, Gc Id, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) []byte {
+func (c *Conn) xvGetVideoRequest(Port XvPort, Drawable Drawable, Gc Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) []byte {
size := 32
b := 0
buf := make([]byte, size)
@@ -1814,13 +1828,13 @@ type XvGetStillCookie struct {
}
// Write request to wire for XvGetStill
-func (c *Conn) XvGetStill(Port Id, Drawable Id, Gc Id, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) XvGetStillCookie {
+func (c *Conn) XvGetStill(Port XvPort, Drawable Drawable, Gc Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) XvGetStillCookie {
cookie := c.newCookie(false, false)
c.newRequest(c.xvGetStillRequest(Port, Drawable, Gc, VidX, VidY, VidW, VidH, DrwX, DrwY, DrwW, DrwH), cookie)
return XvGetStillCookie{cookie}
}
-func (c *Conn) XvGetStillChecked(Port Id, Drawable Id, Gc Id, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) XvGetStillCookie {
+func (c *Conn) XvGetStillChecked(Port XvPort, Drawable Drawable, Gc Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) XvGetStillCookie {
cookie := c.newCookie(true, false)
c.newRequest(c.xvGetStillRequest(Port, Drawable, Gc, VidX, VidY, VidW, VidH, DrwX, DrwY, DrwW, DrwH), cookie)
return XvGetStillCookie{cookie}
@@ -1831,7 +1845,7 @@ func (cook XvGetStillCookie) Check() error {
}
// Write request to wire for XvGetStill
-func (c *Conn) xvGetStillRequest(Port Id, Drawable Id, Gc Id, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) []byte {
+func (c *Conn) xvGetStillRequest(Port XvPort, Drawable Drawable, Gc Gcontext, VidX int16, VidY int16, VidW uint16, VidH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16) []byte {
size := 32
b := 0
buf := make([]byte, size)
@@ -1888,13 +1902,13 @@ type XvStopVideoCookie struct {
}
// Write request to wire for XvStopVideo
-func (c *Conn) XvStopVideo(Port Id, Drawable Id) XvStopVideoCookie {
+func (c *Conn) XvStopVideo(Port XvPort, Drawable Drawable) XvStopVideoCookie {
cookie := c.newCookie(false, false)
c.newRequest(c.xvStopVideoRequest(Port, Drawable), cookie)
return XvStopVideoCookie{cookie}
}
-func (c *Conn) XvStopVideoChecked(Port Id, Drawable Id) XvStopVideoCookie {
+func (c *Conn) XvStopVideoChecked(Port XvPort, Drawable Drawable) XvStopVideoCookie {
cookie := c.newCookie(true, false)
c.newRequest(c.xvStopVideoRequest(Port, Drawable), cookie)
return XvStopVideoCookie{cookie}
@@ -1905,7 +1919,7 @@ func (cook XvStopVideoCookie) Check() error {
}
// Write request to wire for XvStopVideo
-func (c *Conn) xvStopVideoRequest(Port Id, Drawable Id) []byte {
+func (c *Conn) xvStopVideoRequest(Port XvPort, Drawable Drawable) []byte {
size := 12
b := 0
buf := make([]byte, size)
@@ -1935,13 +1949,13 @@ type XvSelectVideoNotifyCookie struct {
}
// Write request to wire for XvSelectVideoNotify
-func (c *Conn) XvSelectVideoNotify(Drawable Id, Onoff bool) XvSelectVideoNotifyCookie {
+func (c *Conn) XvSelectVideoNotify(Drawable Drawable, Onoff bool) XvSelectVideoNotifyCookie {
cookie := c.newCookie(false, false)
c.newRequest(c.xvSelectVideoNotifyRequest(Drawable, Onoff), cookie)
return XvSelectVideoNotifyCookie{cookie}
}
-func (c *Conn) XvSelectVideoNotifyChecked(Drawable Id, Onoff bool) XvSelectVideoNotifyCookie {
+func (c *Conn) XvSelectVideoNotifyChecked(Drawable Drawable, Onoff bool) XvSelectVideoNotifyCookie {
cookie := c.newCookie(true, false)
c.newRequest(c.xvSelectVideoNotifyRequest(Drawable, Onoff), cookie)
return XvSelectVideoNotifyCookie{cookie}
@@ -1952,7 +1966,7 @@ func (cook XvSelectVideoNotifyCookie) Check() error {
}
// Write request to wire for XvSelectVideoNotify
-func (c *Conn) xvSelectVideoNotifyRequest(Drawable Id, Onoff bool) []byte {
+func (c *Conn) xvSelectVideoNotifyRequest(Drawable Drawable, Onoff bool) []byte {
size := 12
b := 0
buf := make([]byte, size)
@@ -1988,13 +2002,13 @@ type XvSelectPortNotifyCookie struct {
}
// Write request to wire for XvSelectPortNotify
-func (c *Conn) XvSelectPortNotify(Port Id, Onoff bool) XvSelectPortNotifyCookie {
+func (c *Conn) XvSelectPortNotify(Port XvPort, Onoff bool) XvSelectPortNotifyCookie {
cookie := c.newCookie(false, false)
c.newRequest(c.xvSelectPortNotifyRequest(Port, Onoff), cookie)
return XvSelectPortNotifyCookie{cookie}
}
-func (c *Conn) XvSelectPortNotifyChecked(Port Id, Onoff bool) XvSelectPortNotifyCookie {
+func (c *Conn) XvSelectPortNotifyChecked(Port XvPort, Onoff bool) XvSelectPortNotifyCookie {
cookie := c.newCookie(true, false)
c.newRequest(c.xvSelectPortNotifyRequest(Port, Onoff), cookie)
return XvSelectPortNotifyCookie{cookie}
@@ -2005,7 +2019,7 @@ func (cook XvSelectPortNotifyCookie) Check() error {
}
// Write request to wire for XvSelectPortNotify
-func (c *Conn) xvSelectPortNotifyRequest(Port Id, Onoff bool) []byte {
+func (c *Conn) xvSelectPortNotifyRequest(Port XvPort, Onoff bool) []byte {
size := 12
b := 0
buf := make([]byte, size)
@@ -2040,13 +2054,13 @@ type XvQueryBestSizeCookie struct {
*cookie
}
-func (c *Conn) XvQueryBestSize(Port Id, VidW uint16, VidH uint16, DrwW uint16, DrwH uint16, Motion bool) XvQueryBestSizeCookie {
+func (c *Conn) XvQueryBestSize(Port XvPort, VidW uint16, VidH uint16, DrwW uint16, DrwH uint16, Motion bool) XvQueryBestSizeCookie {
cookie := c.newCookie(true, true)
c.newRequest(c.xvQueryBestSizeRequest(Port, VidW, VidH, DrwW, DrwH, Motion), cookie)
return XvQueryBestSizeCookie{cookie}
}
-func (c *Conn) XvQueryBestSizeUnchecked(Port Id, VidW uint16, VidH uint16, DrwW uint16, DrwH uint16, Motion bool) XvQueryBestSizeCookie {
+func (c *Conn) XvQueryBestSizeUnchecked(Port XvPort, VidW uint16, VidH uint16, DrwW uint16, DrwH uint16, Motion bool) XvQueryBestSizeCookie {
cookie := c.newCookie(false, true)
c.newRequest(c.xvQueryBestSizeRequest(Port, VidW, VidH, DrwW, DrwH, Motion), cookie)
return XvQueryBestSizeCookie{cookie}
@@ -2101,7 +2115,7 @@ func (cook XvQueryBestSizeCookie) Check() error {
}
// Write request to wire for XvQueryBestSize
-func (c *Conn) xvQueryBestSizeRequest(Port Id, VidW uint16, VidH uint16, DrwW uint16, DrwH uint16, Motion bool) []byte {
+func (c *Conn) xvQueryBestSizeRequest(Port XvPort, VidW uint16, VidH uint16, DrwW uint16, DrwH uint16, Motion bool) []byte {
size := 20
b := 0
buf := make([]byte, size)
@@ -2149,13 +2163,13 @@ type XvSetPortAttributeCookie struct {
}
// Write request to wire for XvSetPortAttribute
-func (c *Conn) XvSetPortAttribute(Port Id, Attribute Id, Value int32) XvSetPortAttributeCookie {
+func (c *Conn) XvSetPortAttribute(Port XvPort, Attribute Atom, Value int32) XvSetPortAttributeCookie {
cookie := c.newCookie(false, false)
c.newRequest(c.xvSetPortAttributeRequest(Port, Attribute, Value), cookie)
return XvSetPortAttributeCookie{cookie}
}
-func (c *Conn) XvSetPortAttributeChecked(Port Id, Attribute Id, Value int32) XvSetPortAttributeCookie {
+func (c *Conn) XvSetPortAttributeChecked(Port XvPort, Attribute Atom, Value int32) XvSetPortAttributeCookie {
cookie := c.newCookie(true, false)
c.newRequest(c.xvSetPortAttributeRequest(Port, Attribute, Value), cookie)
return XvSetPortAttributeCookie{cookie}
@@ -2166,7 +2180,7 @@ func (cook XvSetPortAttributeCookie) Check() error {
}
// Write request to wire for XvSetPortAttribute
-func (c *Conn) xvSetPortAttributeRequest(Port Id, Attribute Id, Value int32) []byte {
+func (c *Conn) xvSetPortAttributeRequest(Port XvPort, Attribute Atom, Value int32) []byte {
size := 16
b := 0
buf := make([]byte, size)
@@ -2198,13 +2212,13 @@ type XvGetPortAttributeCookie struct {
*cookie
}
-func (c *Conn) XvGetPortAttribute(Port Id, Attribute Id) XvGetPortAttributeCookie {
+func (c *Conn) XvGetPortAttribute(Port XvPort, Attribute Atom) XvGetPortAttributeCookie {
cookie := c.newCookie(true, true)
c.newRequest(c.xvGetPortAttributeRequest(Port, Attribute), cookie)
return XvGetPortAttributeCookie{cookie}
}
-func (c *Conn) XvGetPortAttributeUnchecked(Port Id, Attribute Id) XvGetPortAttributeCookie {
+func (c *Conn) XvGetPortAttributeUnchecked(Port XvPort, Attribute Atom) XvGetPortAttributeCookie {
cookie := c.newCookie(false, true)
c.newRequest(c.xvGetPortAttributeRequest(Port, Attribute), cookie)
return XvGetPortAttributeCookie{cookie}
@@ -2255,7 +2269,7 @@ func (cook XvGetPortAttributeCookie) Check() error {
}
// Write request to wire for XvGetPortAttribute
-func (c *Conn) xvGetPortAttributeRequest(Port Id, Attribute Id) []byte {
+func (c *Conn) xvGetPortAttributeRequest(Port XvPort, Attribute Atom) []byte {
size := 12
b := 0
buf := make([]byte, size)
@@ -2284,13 +2298,13 @@ type XvQueryPortAttributesCookie struct {
*cookie
}
-func (c *Conn) XvQueryPortAttributes(Port Id) XvQueryPortAttributesCookie {
+func (c *Conn) XvQueryPortAttributes(Port XvPort) XvQueryPortAttributesCookie {
cookie := c.newCookie(true, true)
c.newRequest(c.xvQueryPortAttributesRequest(Port), cookie)
return XvQueryPortAttributesCookie{cookie}
}
-func (c *Conn) XvQueryPortAttributesUnchecked(Port Id) XvQueryPortAttributesCookie {
+func (c *Conn) XvQueryPortAttributesUnchecked(Port XvPort) XvQueryPortAttributesCookie {
cookie := c.newCookie(false, true)
c.newRequest(c.xvQueryPortAttributesRequest(Port), cookie)
return XvQueryPortAttributesCookie{cookie}
@@ -2352,7 +2366,7 @@ func (cook XvQueryPortAttributesCookie) Check() error {
}
// Write request to wire for XvQueryPortAttributes
-func (c *Conn) xvQueryPortAttributesRequest(Port Id) []byte {
+func (c *Conn) xvQueryPortAttributesRequest(Port XvPort) []byte {
size := 8
b := 0
buf := make([]byte, size)
@@ -2378,13 +2392,13 @@ type XvListImageFormatsCookie struct {
*cookie
}
-func (c *Conn) XvListImageFormats(Port Id) XvListImageFormatsCookie {
+func (c *Conn) XvListImageFormats(Port XvPort) XvListImageFormatsCookie {
cookie := c.newCookie(true, true)
c.newRequest(c.xvListImageFormatsRequest(Port), cookie)
return XvListImageFormatsCookie{cookie}
}
-func (c *Conn) XvListImageFormatsUnchecked(Port Id) XvListImageFormatsCookie {
+func (c *Conn) XvListImageFormatsUnchecked(Port XvPort) XvListImageFormatsCookie {
cookie := c.newCookie(false, true)
c.newRequest(c.xvListImageFormatsRequest(Port), cookie)
return XvListImageFormatsCookie{cookie}
@@ -2442,7 +2456,7 @@ func (cook XvListImageFormatsCookie) Check() error {
}
// Write request to wire for XvListImageFormats
-func (c *Conn) xvListImageFormatsRequest(Port Id) []byte {
+func (c *Conn) xvListImageFormatsRequest(Port XvPort) []byte {
size := 8
b := 0
buf := make([]byte, size)
@@ -2468,13 +2482,13 @@ type XvQueryImageAttributesCookie struct {
*cookie
}
-func (c *Conn) XvQueryImageAttributes(Port Id, Id uint32, Width uint16, Height uint16) XvQueryImageAttributesCookie {
+func (c *Conn) XvQueryImageAttributes(Port XvPort, Id uint32, Width uint16, Height uint16) XvQueryImageAttributesCookie {
cookie := c.newCookie(true, true)
c.newRequest(c.xvQueryImageAttributesRequest(Port, Id, Width, Height), cookie)
return XvQueryImageAttributesCookie{cookie}
}
-func (c *Conn) XvQueryImageAttributesUnchecked(Port Id, Id uint32, Width uint16, Height uint16) XvQueryImageAttributesCookie {
+func (c *Conn) XvQueryImageAttributesUnchecked(Port XvPort, Id uint32, Width uint16, Height uint16) XvQueryImageAttributesCookie {
cookie := c.newCookie(false, true)
c.newRequest(c.xvQueryImageAttributesRequest(Port, Id, Width, Height), cookie)
return XvQueryImageAttributesCookie{cookie}
@@ -2556,7 +2570,7 @@ func (cook XvQueryImageAttributesCookie) Check() error {
}
// Write request to wire for XvQueryImageAttributes
-func (c *Conn) xvQueryImageAttributesRequest(Port Id, Id uint32, Width uint16, Height uint16) []byte {
+func (c *Conn) xvQueryImageAttributesRequest(Port XvPort, Id uint32, Width uint16, Height uint16) []byte {
size := 16
b := 0
buf := make([]byte, size)
@@ -2592,13 +2606,13 @@ type XvPutImageCookie struct {
}
// Write request to wire for XvPutImage
-func (c *Conn) XvPutImage(Port Id, Drawable Id, Gc Id, Id uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, Data []byte) XvPutImageCookie {
+func (c *Conn) XvPutImage(Port XvPort, Drawable Drawable, Gc Gcontext, Id uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, Data []byte) XvPutImageCookie {
cookie := c.newCookie(false, false)
c.newRequest(c.xvPutImageRequest(Port, Drawable, Gc, Id, SrcX, SrcY, SrcW, SrcH, DrwX, DrwY, DrwW, DrwH, Width, Height, Data), cookie)
return XvPutImageCookie{cookie}
}
-func (c *Conn) XvPutImageChecked(Port Id, Drawable Id, Gc Id, Id uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, Data []byte) XvPutImageCookie {
+func (c *Conn) XvPutImageChecked(Port XvPort, Drawable Drawable, Gc Gcontext, Id uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, Data []byte) XvPutImageCookie {
cookie := c.newCookie(true, false)
c.newRequest(c.xvPutImageRequest(Port, Drawable, Gc, Id, SrcX, SrcY, SrcW, SrcH, DrwX, DrwY, DrwW, DrwH, Width, Height, Data), cookie)
return XvPutImageCookie{cookie}
@@ -2609,7 +2623,7 @@ func (cook XvPutImageCookie) Check() error {
}
// Write request to wire for XvPutImage
-func (c *Conn) xvPutImageRequest(Port Id, Drawable Id, Gc Id, Id uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, Data []byte) []byte {
+func (c *Conn) xvPutImageRequest(Port XvPort, Drawable Drawable, Gc Gcontext, Id uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, Data []byte) []byte {
size := pad((40 + pad((len(Data) * 1))))
b := 0
buf := make([]byte, size)
@@ -2678,13 +2692,13 @@ type XvShmPutImageCookie struct {
}
// Write request to wire for XvShmPutImage
-func (c *Conn) XvShmPutImage(Port Id, Drawable Id, Gc Id, Shmseg Id, Id uint32, Offset uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, SendEvent byte) XvShmPutImageCookie {
+func (c *Conn) XvShmPutImage(Port XvPort, Drawable Drawable, Gc Gcontext, Shmseg ShmSeg, Id uint32, Offset uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, SendEvent byte) XvShmPutImageCookie {
cookie := c.newCookie(false, false)
c.newRequest(c.xvShmPutImageRequest(Port, Drawable, Gc, Shmseg, Id, Offset, SrcX, SrcY, SrcW, SrcH, DrwX, DrwY, DrwW, DrwH, Width, Height, SendEvent), cookie)
return XvShmPutImageCookie{cookie}
}
-func (c *Conn) XvShmPutImageChecked(Port Id, Drawable Id, Gc Id, Shmseg Id, Id uint32, Offset uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, SendEvent byte) XvShmPutImageCookie {
+func (c *Conn) XvShmPutImageChecked(Port XvPort, Drawable Drawable, Gc Gcontext, Shmseg ShmSeg, Id uint32, Offset uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, SendEvent byte) XvShmPutImageCookie {
cookie := c.newCookie(true, false)
c.newRequest(c.xvShmPutImageRequest(Port, Drawable, Gc, Shmseg, Id, Offset, SrcX, SrcY, SrcW, SrcH, DrwX, DrwY, DrwW, DrwH, Width, Height, SendEvent), cookie)
return XvShmPutImageCookie{cookie}
@@ -2695,7 +2709,7 @@ func (cook XvShmPutImageCookie) Check() error {
}
// Write request to wire for XvShmPutImage
-func (c *Conn) xvShmPutImageRequest(Port Id, Drawable Id, Gc Id, Shmseg Id, Id uint32, Offset uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, SendEvent byte) []byte {
+func (c *Conn) xvShmPutImageRequest(Port XvPort, Drawable Drawable, Gc Gcontext, Shmseg ShmSeg, Id uint32, Offset uint32, SrcX int16, SrcY int16, SrcW uint16, SrcH uint16, DrwX int16, DrwY int16, DrwW uint16, DrwH uint16, Width uint16, Height uint16, SendEvent byte) []byte {
size := 52
b := 0
buf := make([]byte, size)