camera

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCameraNotFound = errors.New("camera not found")

Functions

func ExecutableNames

func ExecutableNames(processes []ps.Process) []string

Types

type Camera

type Camera struct {
	Path  string // /dev/videoX
	Procs []ps.Process
	// contains filtered or unexported fields
}

func Cameras

func Cameras() ([]Camera, error)

func FilterCameras

func FilterCameras(cameras []Camera, filterFn func(c *Camera) bool) []Camera

func OpenCamera

func OpenCamera(path string) (*Camera, error)

func (Camera) Configure

func (c Camera) Configure(fn func(camera *v4l2.Device) error) error

func (Camera) IsActive

func (c Camera) IsActive() bool

func (Camera) Name

func (c Camera) Name() string

Jump to

Keyboard shortcuts

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