shithub: riscv

Download patch

ref: 3986186c3109665b7e188e1b961a74288197f7ec
parent: f42f1f2dbdc59b8b065e9740ca51eddd2f5ae698
author: Chris A. Frschl <chris@chrisfroeschl.de>
date: Fri Sep 16 07:29:42 EDT 2022

nusb(4), camv(1): add nusb/cam description, introduce camv manpage

--- /dev/null
+++ b/sys/man/1/camv
@@ -1,0 +1,16 @@
+.TH CAMV 1
+.SH NAME
+camv, camera display
+.SH SYNOPSIS
+.B camv cam-device
+.SH DESCRIPTION
+.I Camv
+uses the underlying
+.I cam-device
+file system to start a graphical camera display stream.
+.PP
+The file system is initialized using nusb/cam (see nusb(4)).
+.SH SOURCE
+.B /sys/src/cmd/camv.c
+.SH SEE ALSO
+.IR nusb (4)
--- a/sys/man/4/nusb
+++ b/sys/man/4/nusb
@@ -11,6 +11,12 @@
 .B nusb/audio
 .I devid
 .PP
+.B nusb/cam
+[
+.B -d
+]
+.I devid
+.PP
 .B nusb/disk
 [
 .B -d
@@ -263,9 +269,17 @@
 .BR /dev ),
 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).
 .SH SOURCE
 .B /sys/src/cmd/nusb
 .SH "SEE ALSO"
+.IR camv (1),
 .IR joy (1),
 .IR audio (3),
 .IR ether (3),