Categorygithub.com/reiver/go-v4l2
modulepackage
0.0.0-20180319083212-80a687e4e796
Repository: https://github.com/reiver/go-v4l2.git
Documentation: pkg.go.dev

# README

go-v4l2

Package v4l2 exposes the V4L2 (Video4Linux version 2) API to Golang.

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-v4l2

GoDoc

Example

	device, err := v4l2.Open(v4l2.Video0)
	if nil != err {
		//@TODO
		return err
	}
	defer device.Close()

	fmt.Printf("Driver:  %q\n", device.MustDriver())
	fmt.Printf("Card:    %q\n", device.MustCard())
	fmt.Printf("BusInfo: %q\n", device.MustBusInfo())
	fmt.Printf("Version: %q\n", device.MustVersion())
	fmt.Println()
	fmt.Printf("Has Video Capture: %v\n", device.MustHasCapability(v4l2.CapabilityVideoCapture))
	fmt.Printf("Has Streaming I/O: %v\n", device.MustHasCapability(v4l2.CapabilityStreaming))

# Packages

Package v4l2_buftype provides a type used to represents a V4L2 (Video4Linux version 2) buffer type.
Package v4l2_format provides a type used to represents a V4L2 (Video4Linux version 2) format.
Package v4l2_framesize provides a type used to represents a V4L2 (Video4Linux version 2) frame size.
Package v4l2_pixelformat provides a type used to represents a V4L2 (Video4Linux version 2) pixel format.

# Functions

MustOpen is like Open, except it panic()s if there is an error.
Open opens a V4L2 device.

# Constants

(V4L2_CAP_ASYNCIO) async I/O.
(V4L2_CAP_AUDIO) has audio support.
(V4L2_CAP_DEVICE_CAPS) sets device capabilities field.
(V4L2_CAP_HW_FREQ_SEEK) Can do hardware frequency seek.
(V4L2_CAP_MODULATOR) has a modulator.
(V4L2_CAP_RADIO) is a radio device.
(V4L2_CAP_RDS_CAPTURE) RDS data capture.
(V4L2_CAP_RDS_OUTPUT) Is an RDS encoder.
(V4L2_CAP_READWRITE) read/write systemcalls.
(V4L2_CAP_SLICED_VBI_CAPTURE) Is a sliced VBI capture device.
(V4L2_CAP_SLICED_VBI_OUTPUT) Is a sliced VBI output device.
(V4L2_CAP_STREAMING) streaming I/O ioctls.
(V4L2_CAP_TUNER) has a tuner.
(V4L2_CAP_VBI_CAPTURE) Is a raw VBI capture device.
(V4L2_CAP_VBI_OUTPUT) Is a raw VBI output device.
(V4L2_CAP_VIDEO_CAPTURE) Is a video capture device.
(V4L2_CAP_VIDEO_CAPTURE_MPLANE) Is a video capture device that supports multiplanar formats.
(V4L2_CAP_VIDEO_M2M) Is a video mem-to-mem device.
(V4L2_CAP_VIDEO_M2M_MPLANE) Is a video mem-to-mem device that supports multiplanar formats.
(V4L2_CAP_VIDEO_OUTPUT) Is a video output device.
(V4L2_CAP_VIDEO_OUTPUT_MPLANE) Is a video output device that supports multiplanar formats.
(V4L2_CAP_VIDEO_OUTPUT_OVERLAY) Can do video output overlay.
(V4L2_CAP_VIDEO_OVERLAY) Can do video overlay.
V4L2_FMT_FLAG_COMPRESSED.
V4L2_FMT_FLAG_EMULATED.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.
Someone claimed that the V4L2 documentation says that there can only be (a maximum of) 64 allowed devices with the prefix "/dev/video", and starting with "/dev/video0" Thus, these constants represent the paths to these devices.

# Structs

Device represents a V4L2 (Video4Linux version 2) device.
FormatFamilies is an interator that enables you to list out all the supported formats by the device.
FormatFamily is a format family.
FrameSizes is an interator that enables you to list out all the supported formats by the format family.