Documentation
¶
Overview ¶
Package v4l2 streams a V4L2 capture node in pure Go (mmap buffers over golang.org/x/sys/unix ioctls), delivering each frame as an RGBA picture letterboxed to a requested aspect, and names the capture nodes a system has.
Index ¶
Constants ¶
const MinWidth = 640
MinWidth is the least width asked of a camera, so a small picture still gets one worth scaling.
Variables ¶
This section is empty.
Functions ¶
func CaptureCard ¶
CaptureCard is the card name of a node that captures video, else false.
Types ¶
type Camera ¶
type Camera struct {
// contains filtered or unexported fields
}
Camera streams a V4L2 capture node, letterboxing each frame on its own goroutine.
func Open ¶
Open starts streaming device (YUYV, else MJPEG, about frame's width, at least MinWidth), its pictures letterboxed to frame's aspect, converting at most maxFPS of them a second.