xgb: github.com/BurntSushi/xgb/xvmc Index | Files

package xvmc

import "github.com/BurntSushi/xgb/xvmc"

Package xvmc is the X client API for the XVideo-MotionCompensation extension.

Index

Package Files

xvmc.go

func Init Uses

func Init(c *xgb.Conn) error

Init must be called before using the XVideo-MotionCompensation extension.

func SurfaceInfoListBytes Uses

func SurfaceInfoListBytes(buf []byte, list []SurfaceInfo) int

SurfaceInfoListBytes writes a list of SurfaceInfo values to a byte slice.

func SurfaceInfoRead Uses

func SurfaceInfoRead(buf []byte, v *SurfaceInfo) int

SurfaceInfoRead reads a byte slice into a SurfaceInfo value.

func SurfaceInfoReadList Uses

func SurfaceInfoReadList(buf []byte, dest []SurfaceInfo) int

SurfaceInfoReadList reads a byte slice into a list of SurfaceInfo values.

type Context Uses

type Context uint32

func NewContextId Uses

func NewContextId(c *xgb.Conn) (Context, error)

type CreateContextCookie Uses

type CreateContextCookie struct {
    *xgb.Cookie
}

CreateContextCookie is a cookie used only for CreateContext requests.

func CreateContext Uses

func CreateContext(c *xgb.Conn, ContextId Context, PortId xv.Port, SurfaceId Surface, Width uint16, Height uint16, Flags uint32) CreateContextCookie

CreateContext sends a checked request. If an error occurs, it will be returned with the reply by calling CreateContextCookie.Reply()

func CreateContextUnchecked Uses

func CreateContextUnchecked(c *xgb.Conn, ContextId Context, PortId xv.Port, SurfaceId Surface, Width uint16, Height uint16, Flags uint32) CreateContextCookie

CreateContextUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (CreateContextCookie) Reply Uses

func (cook CreateContextCookie) Reply() (*CreateContextReply, error)

Reply blocks and returns the reply data for a CreateContext request.

type CreateContextReply Uses

type CreateContextReply struct {
    Sequence uint16 // sequence number of the request for this reply
    Length   uint32 // number of bytes in this reply
    // padding: 1 bytes
    WidthActual  uint16
    HeightActual uint16
    FlagsReturn  uint32
    // padding: 20 bytes
    PrivData []uint32 // size: xgb.Pad((int(Length) * 4))
}

CreateContextReply represents the data returned from a CreateContext request.

type CreateSubpictureCookie Uses

type CreateSubpictureCookie struct {
    *xgb.Cookie
}

CreateSubpictureCookie is a cookie used only for CreateSubpicture requests.

func CreateSubpicture Uses

func CreateSubpicture(c *xgb.Conn, SubpictureId Subpicture, Context Context, XvimageId uint32, Width uint16, Height uint16) CreateSubpictureCookie

CreateSubpicture sends a checked request. If an error occurs, it will be returned with the reply by calling CreateSubpictureCookie.Reply()

func CreateSubpictureUnchecked Uses

func CreateSubpictureUnchecked(c *xgb.Conn, SubpictureId Subpicture, Context Context, XvimageId uint32, Width uint16, Height uint16) CreateSubpictureCookie

CreateSubpictureUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (CreateSubpictureCookie) Reply Uses

func (cook CreateSubpictureCookie) Reply() (*CreateSubpictureReply, error)

Reply blocks and returns the reply data for a CreateSubpicture request.

type CreateSubpictureReply Uses

type CreateSubpictureReply struct {
    Sequence uint16 // sequence number of the request for this reply
    Length   uint32 // number of bytes in this reply
    // padding: 1 bytes
    WidthActual       uint16
    HeightActual      uint16
    NumPaletteEntries uint16
    EntryBytes        uint16
    ComponentOrder    []byte // size: 4
    // padding: 12 bytes
    PrivData []uint32 // size: xgb.Pad((int(Length) * 4))
}

CreateSubpictureReply represents the data returned from a CreateSubpicture request.

type CreateSurfaceCookie Uses

type CreateSurfaceCookie struct {
    *xgb.Cookie
}

CreateSurfaceCookie is a cookie used only for CreateSurface requests.

func CreateSurface Uses

func CreateSurface(c *xgb.Conn, SurfaceId Surface, ContextId Context) CreateSurfaceCookie

CreateSurface sends a checked request. If an error occurs, it will be returned with the reply by calling CreateSurfaceCookie.Reply()

func CreateSurfaceUnchecked Uses

func CreateSurfaceUnchecked(c *xgb.Conn, SurfaceId Surface, ContextId Context) CreateSurfaceCookie

CreateSurfaceUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (CreateSurfaceCookie) Reply Uses

func (cook CreateSurfaceCookie) Reply() (*CreateSurfaceReply, error)

Reply blocks and returns the reply data for a CreateSurface request.

type CreateSurfaceReply Uses

type CreateSurfaceReply struct {
    Sequence uint16 // sequence number of the request for this reply
    Length   uint32 // number of bytes in this reply
    // padding: 1 bytes
    // padding: 24 bytes
    PrivData []uint32 // size: xgb.Pad((int(Length) * 4))
}

CreateSurfaceReply represents the data returned from a CreateSurface request.

type DestroyContextCookie Uses

type DestroyContextCookie struct {
    *xgb.Cookie
}

DestroyContextCookie is a cookie used only for DestroyContext requests.

func DestroyContext Uses

func DestroyContext(c *xgb.Conn, ContextId Context) DestroyContextCookie

DestroyContext sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func DestroyContextChecked Uses

func DestroyContextChecked(c *xgb.Conn, ContextId Context) DestroyContextCookie

DestroyContextChecked sends a checked request. If an error occurs, it can be retrieved using DestroyContextCookie.Check()

func (DestroyContextCookie) Check Uses

func (cook DestroyContextCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type DestroySubpictureCookie Uses

type DestroySubpictureCookie struct {
    *xgb.Cookie
}

DestroySubpictureCookie is a cookie used only for DestroySubpicture requests.

func DestroySubpicture Uses

func DestroySubpicture(c *xgb.Conn, SubpictureId Subpicture) DestroySubpictureCookie

DestroySubpicture sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func DestroySubpictureChecked Uses

func DestroySubpictureChecked(c *xgb.Conn, SubpictureId Subpicture) DestroySubpictureCookie

DestroySubpictureChecked sends a checked request. If an error occurs, it can be retrieved using DestroySubpictureCookie.Check()

func (DestroySubpictureCookie) Check Uses

func (cook DestroySubpictureCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type DestroySurfaceCookie Uses

type DestroySurfaceCookie struct {
    *xgb.Cookie
}

DestroySurfaceCookie is a cookie used only for DestroySurface requests.

func DestroySurface Uses

func DestroySurface(c *xgb.Conn, SurfaceId Surface) DestroySurfaceCookie

DestroySurface sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func DestroySurfaceChecked Uses

func DestroySurfaceChecked(c *xgb.Conn, SurfaceId Surface) DestroySurfaceCookie

DestroySurfaceChecked sends a checked request. If an error occurs, it can be retrieved using DestroySurfaceCookie.Check()

func (DestroySurfaceCookie) Check Uses

func (cook DestroySurfaceCookie) Check() error

Check returns an error if one occurred for checked requests that are not expecting a reply. This cannot be called for requests expecting a reply, nor for unchecked requests.

type ListSubpictureTypesCookie Uses

type ListSubpictureTypesCookie struct {
    *xgb.Cookie
}

ListSubpictureTypesCookie is a cookie used only for ListSubpictureTypes requests.

func ListSubpictureTypes Uses

func ListSubpictureTypes(c *xgb.Conn, PortId xv.Port, SurfaceId Surface) ListSubpictureTypesCookie

ListSubpictureTypes sends a checked request. If an error occurs, it will be returned with the reply by calling ListSubpictureTypesCookie.Reply()

func ListSubpictureTypesUnchecked Uses

func ListSubpictureTypesUnchecked(c *xgb.Conn, PortId xv.Port, SurfaceId Surface) ListSubpictureTypesCookie

ListSubpictureTypesUnchecked sends an unchecked request. If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent.

func (ListSubpictureTypesCookie) Reply Uses

func (cook ListSubpictureTypesCookie) Reply() (*ListSubpictureTypesReply, error)

Reply blocks and returns the reply data for a ListSubpictureTypes request.

type ListSubpictureTypesReply Uses

type ListSubpictureTypesReply struct {
    Sequence uint16 // sequence number of the request for this reply
    Length   uint32 // number of bytes in this reply
    // padding: 1 bytes
    Num uint32
    // padding: 20 bytes
    Types []xv.ImageFormatInfo // size: xv.ImageFormatInfoListSize(Types)
}

ListSubpictureTypesReply represents the data returned from a ListSubpictureTypes request.

type ListSurfaceTypesCookie Uses

type ListSurfaceTypesCookie struct {
    *xgb.Cookie
}

ListSurfaceTypesCookie is a cookie used only for ListSurfaceTypes requests.

func ListSurfaceTypes Uses

func ListSurfaceTypes(c *xgb.Conn, PortId xv.Port) ListSurfaceTypesCookie

ListSurfaceTypes sends a checked request. If an error occurs, it will be returned with the reply by calling ListSurfaceTypesCookie.Reply()

func ListSurfaceTypesUnchecked Uses

func ListSurfaceTypesUnchecked(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 (ListSurfaceTypesCookie) Reply Uses

func (cook ListSurfaceTypesCookie) Reply() (*ListSurfaceTypesReply, error)

Reply blocks and returns the reply data for a ListSurfaceTypes request.

type ListSurfaceTypesReply Uses

type ListSurfaceTypesReply struct {
    Sequence uint16 // sequence number of the request for this reply
    Length   uint32 // number of bytes in this reply
    // padding: 1 bytes
    Num uint32
    // padding: 20 bytes
    Surfaces []SurfaceInfo // size: xgb.Pad((int(Num) * 24))
}

ListSurfaceTypesReply represents the data returned from a ListSurfaceTypes request.

type QueryVersionCookie Uses

type QueryVersionCookie struct {
    *xgb.Cookie
}

QueryVersionCookie is a cookie used only for QueryVersion requests.

func QueryVersion Uses

func QueryVersion(c *xgb.Conn) QueryVersionCookie

QueryVersion sends a checked request. If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply()

func QueryVersionUnchecked Uses

func QueryVersionUnchecked(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 (QueryVersionCookie) Reply Uses

func (cook QueryVersionCookie) Reply() (*QueryVersionReply, error)

Reply blocks and returns the reply data for a QueryVersion request.

type QueryVersionReply Uses

type QueryVersionReply struct {
    Sequence uint16 // sequence number of the request for this reply
    Length   uint32 // number of bytes in this reply
    // padding: 1 bytes
    Major uint32
    Minor uint32
}

QueryVersionReply represents the data returned from a QueryVersion request.

type Subpicture Uses

type Subpicture uint32

func NewSubpictureId Uses

func NewSubpictureId(c *xgb.Conn) (Subpicture, error)

type Surface Uses

type Surface uint32

func NewSurfaceId Uses

func NewSurfaceId(c *xgb.Conn) (Surface, error)

type SurfaceInfo Uses

type SurfaceInfo struct {
    Id                  Surface
    ChromaFormat        uint16
    Pad0                uint16
    MaxWidth            uint16
    MaxHeight           uint16
    SubpictureMaxWidth  uint16
    SubpictureMaxHeight uint16
    McType              uint32
    Flags               uint32
}

func (SurfaceInfo) Bytes Uses

func (v SurfaceInfo) Bytes() []byte

Bytes writes a SurfaceInfo value to a byte slice.

Package xvmc imports 3 packages (graph). Updated 2016-11-06. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).