Top 4.2% dependent packages on proxy.golang.org
Top 2.5% dependent repos on proxy.golang.org
Top 6.7% forks on proxy.golang.org
proxy.golang.org : github.com/reiver/go-v4l2
Package v4l2 exposes the V4L2 (Video4Linux version 2) API to Golang. Example: That example opens up the V4L2 device at "/dev/video0" on the file system, and displays some basic information about the device. (Of course, we could have opened one of the other V4L2 devices. Such as: v4l2.Video1, v4l2.Video2, ..., or v4l2.Video63.) Continuing this same example: Here we have iterating through the formats that are supported for this device. Extending that last code block, to fill in that "//@TODO", we can iterate through the frame sizes, for each format, we the following: One thing to be cognisant of, is that on Linux systems, V4L2 (Video4Linux version 2) will create a (special) file in the /dev/ directory for every V4L2 device. These devices will name path names such as: • /dev/video0 • /dev/video1 • /dev/video2 … • /dev/video63 You would call Open using these names directly. For example: However, this package also provides constants that can be used. For example:
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/reiver/go-v4l2
License: MIT
Latest release: over 7 years ago
First release: over 7 years ago
Namespace: github.com/reiver
Dependent packages: 2
Dependent repositories: 4
Stars: 26 on GitHub
Forks: 9 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 6 days ago