summaryrefslogtreecommitdiff
path: root/sys/man/1
diff options
context:
space:
mode:
authorqwx <qwx@sciops.net>2022-10-02 03:30:43 +0000
committerqwx <qwx@sciops.net>2022-10-02 03:30:43 +0000
commit8237f8c583281e8575c7f67f4d044b43aef82920 (patch)
tree0eca58fbd8f432d709637670b1270f1fa24f0254 /sys/man/1
parent00d06ac617f27e7e63f70612698a7ff5dc7a9a1a (diff)
camv(1), nusb(4): add more details on camera operation
Diffstat (limited to 'sys/man/1')
-rw-r--r--sys/man/1/camv51
1 files changed, 45 insertions, 6 deletions
diff --git a/sys/man/1/camv b/sys/man/1/camv
index 3587d712b..ec6ab4eba 100644
--- a/sys/man/1/camv
+++ b/sys/man/1/camv
@@ -1,16 +1,55 @@
.TH CAMV 1
.SH NAME
-camv, camera display
+camv \- USB camera display
.SH SYNOPSIS
-.B camv cam-device
+.B camv
+.I cam-device
.SH DESCRIPTION
.I Camv
-uses the underlying
+uses the
.I cam-device
-file system to start a graphical camera display stream.
+file tree provided by
+.IR nusb (4)
+to use and control a USB camera.
+It opens the tree's
+.I video
+file to play the video stream directly in the window.
.PP
-The file system is initialized using nusb/cam (see nusb(4)).
+The middle mouse button menu shows and allows editing the current picture settings.
+While it lists resolution, format and framerate per second,
+those must be set manually before starting
+.IR camv (1).
+One can quit the program from the right mouse button menu.
+.SH EXAMPLES
+Initialize and configure a camera before starting
+.I camv
+in its own window.
+.IP
+.EX
+% nusb/cam 5
+% window -dx 320 -dy 240 \\
+ 'label cam
+ cat <<EOF >/dev/cam5.1/ctl
+format 320x240
+fps 30
+backlight-compensation 1
+brightness 20
+contrast 95
+saturation 40
+sharpness 7
+gamma 200
+EOF
+ camv /dev/cam5.1
+\'
+.EE
.SH SOURCE
.B /sys/src/cmd/camv.c
-.SH SEE ALSO
+.SH "SEE ALSO"
.IR nusb (4)
+.SH HISTORY
+.I Camv
+first appeared in 9front (March, 2018).
+.SH BUGS
+Not all available picture settings can be set while
+.IR camv (1)
+is running, some possibly not at all.