diff options
author | qwx <qwx@sciops.net> | 2022-10-02 03:30:43 +0000 |
---|---|---|
committer | qwx <qwx@sciops.net> | 2022-10-02 03:30:43 +0000 |
commit | 8237f8c583281e8575c7f67f4d044b43aef82920 (patch) | |
tree | 0eca58fbd8f432d709637670b1270f1fa24f0254 /sys/man/4 | |
parent | 00d06ac617f27e7e63f70612698a7ff5dc7a9a1a (diff) |
camv(1), nusb(4): add more details on camera operation
Diffstat (limited to 'sys/man/4')
-rw-r--r-- | sys/man/4/nusb | 43 |
1 files changed, 38 insertions, 5 deletions
diff --git a/sys/man/4/nusb b/sys/man/4/nusb index 72ba89cd3..4453cbc6a 100644 --- a/sys/man/4/nusb +++ b/sys/man/4/nusb @@ -271,11 +271,34 @@ compatible with .IR audio (3). .SS Camera devices .I Cam -configures and manages a USB camera device. -It implements a file system (normally seen under -.BR /dev ), -compatible with -.IR camv (1). +configures and exposes a USB camera device's capabilities, +implementing a file system compatible with +.IR camv (1), +under a directory named +.BI cam N [. M ]. +It provides the following files: +.BR desc , +showing all of the device's internal descriptors and their values; +.BR format , +listing admissible image resolutions and framerates; +.BR ctl , +the picture settings control file; +.BR frame , +which captures and outputs a single video frame as an +.IR image (6) +file; +and +.IR video , +streaming video in a preset format, resolution and framerate. +In particular, reading from the +.B ctl +file yields a space-separated list of parameter settings, +where the second and third columns correspond to key-value pairs, +and an optional fourth column corresponds to the range of possible numerical values +(formatted as +.IR minimum / increment / maximum ). +The same pairs can be written to the file to configure the camera. +Currently, only the YUY2 video format is supported. .SH SOURCE .B /sys/src/cmd/nusb .SH "SEE ALSO" @@ -288,11 +311,15 @@ compatible with .IR uart (3), .IR usb (3), .IR shr (3), +.IR image (6), .IR nusbrc (8), .IR kbdfs (8) .SH HISTORY .I Joy first appeared in 9front (March, 2014). +.br +.I Cam +first appeared in 9front (March, 2018). .SH BUGS The various device drivers are generic USB drivers and may work only for certain devices of each class. @@ -307,3 +334,9 @@ and signals and some of the extra features are not implemented. For Ftdi, only the Sheevaplug and Guruplug have been tried. There is support for the EHCI debug port, but it loses bytes. +.PP +USB video format settings cannot be changed while +.IR camv (1) +is running, and must be set manually by writing them to +.IR cam (4)'s ctl +file before starting the viewer. |