framebuffer

package
v0.0.0-...-ed65726 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2017 License: CC0-1.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const FBIOGET_FSCREENINFO = 0x4602
View Source
const FBIOGET_VSCREENINFO = 0x4600
View Source
const FBIOPUT_VSCREENINFO = 0x4601
View Source
const FB_TYPE_PACKED_PIXELS = 0
View Source
const FB_VISUAL_TRUECOLOR = 2

Variables

This section is empty.

Functions

func Open

func Open(name string) (draw.Image, error)

Types

type BGR

type BGR struct {
	Pix    []uint8
	Stride int
	Rect   image.Rectangle
}

func (*BGR) At

func (p *BGR) At(x, y int) color.Color

func (*BGR) Bounds

func (p *BGR) Bounds() image.Rectangle

func (*BGR) ColorModel

func (p *BGR) ColorModel() color.Model

func (*BGR) PixOffset

func (p *BGR) PixOffset(x, y int) int

func (*BGR) Set

func (p *BGR) Set(x, y int, c color.Color)

type BGR32

type BGR32 struct {
	Pix    []uint8
	Stride int
	Rect   image.Rectangle
}

func (*BGR32) At

func (p *BGR32) At(x, y int) color.Color

func (*BGR32) Bounds

func (p *BGR32) Bounds() image.Rectangle

func (*BGR32) ColorModel

func (p *BGR32) ColorModel() color.Model

func (*BGR32) PixOffset

func (p *BGR32) PixOffset(x, y int) int

func (*BGR32) Set

func (p *BGR32) Set(x, y int, c color.Color)

type BGR565

type BGR565 struct {
	Pix    []uint8
	Stride int
	Rect   image.Rectangle
}

func (*BGR565) At

func (p *BGR565) At(x, y int) color.Color

func (*BGR565) Bounds

func (p *BGR565) Bounds() image.Rectangle

func (*BGR565) ColorModel

func (p *BGR565) ColorModel() color.Model

func (*BGR565) PixOffset

func (p *BGR565) PixOffset(x, y int) int

func (*BGR565) Set

func (p *BGR565) Set(x, y int, c color.Color)

type BitField

type BitField struct {
	Offset, Length, Msb_right uint32
}

type FixScreenInfo

type FixScreenInfo struct {
	Id                               [16]byte
	Smem_start                       uintptr
	Smem_len, Type, Type_aux, Visual uint32
	Xpanstep, Ypanstep, Ywrapstep    uint16
	Line_length                      uint32
	Mmio_start                       uintptr
	Mmio_len, Accel                  uint32
	Capabilities                     uint16
	Reserved                         [2]uint16
}

dont worry about uintptr .. there is compatibility code in the kernel :(

type NBGRA

type NBGRA struct {
	Pix    []uint8
	Stride int
	Rect   image.Rectangle
}

func (*NBGRA) At

func (p *NBGRA) At(x, y int) color.Color

func (*NBGRA) Bounds

func (p *NBGRA) Bounds() image.Rectangle

func (*NBGRA) ColorModel

func (p *NBGRA) ColorModel() color.Model

func (*NBGRA) PixOffset

func (p *NBGRA) PixOffset(x, y int) int

func (*NBGRA) Set

func (p *NBGRA) Set(x, y int, c color.Color)

type UnsupportedError

type UnsupportedError string

func (UnsupportedError) Error

func (e UnsupportedError) Error() string

type VarScreenInfo

type VarScreenInfo struct {
	Xres, Yres,
	Xres_virtual, Yres_virtual,
	Xoffset, Yoffset,
	Bits_per_pixel, Grayscale uint32
	Red, Green, Blue, Transp BitField
	Nonstd, Activate,
	Height, Width,
	Accel_flags, Pixclock,
	Left_margin, Right_margin, Upper_margin, Lower_margin,
	Hsync_len, Vsync_len, Sync,
	Vmode, Rotate, Colorspace uint32
	Reserved [4]uint32
}

Jump to

Keyboard shortcuts

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