dispmanx

package
v3.0.33 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bit

type Bit bool

func (Bit) RGBA

func (c Bit) RGBA() (uint32, uint32, uint32, uint32)

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model represents a way to convert colors and how a bitmap is represented in memory

func ColorModel

func ColorModel(fmt gopi.SurfaceFormat) *Model

func (*Model) Convert

func (this *Model) Convert(src color.Color) color.Color

func (*Model) EGLConfig

func (this *Model) EGLConfig() []uint

EGLConfig returns number of bits for each plane or nil if unsupported

func (*Model) Format

func (this *Model) Format() gopi.SurfaceFormat

Format returns abstract bitmap format

func (*Model) Pitch

func (this *Model) Pitch(pixels uint32) uint32

Pitch returns the number of bytes per for "width" pixels

func (*Model) PixFormat

func (this *Model) PixFormat() dx.PixFormat

PixFormat returns native pixel format

func (*Model) String

func (this *Model) String() string

func (*Model) XOffset

func (this *Model) XOffset(x uint32) (uint32, uint8)

XOffset returns the byte and bit offset for an x value

type RGB16

type RGB16 color.RGBA

func (RGB16) RGBA

func (c RGB16) RGBA() (uint32, uint32, uint32, uint32)

type RGB24

type RGB24 color.RGBA

func (RGB24) RGBA

func (c RGB24) RGBA() (uint32, uint32, uint32, uint32)

type RGBA32

type RGBA32 color.RGBA

Set color types

func (RGBA32) RGBA

func (c RGBA32) RGBA() (uint32, uint32, uint32, uint32)

type RGBX32

type RGBX32 color.RGBA

func (RGBX32) RGBA

func (c RGBX32) RGBA() (uint32, uint32, uint32, uint32)

Jump to

Keyboard shortcuts

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