jca
cdd4bf21cb
Make video -i work ootb.
...
video(1) uses mmap and ioctls by default, those ioctls only work on
video(4) devices. If -i is passed, use read(2) instead of the mmap(2)
routines, instead of requiring the user to pass also pass the -g flag.
2016-09-16 20:29:03 +00:00
mglocker
13dfb063f0
Comparing maximum frame buffer size after VIDIOC_DQBUF ioctl against
...
'buf.bytesused' instead of 'buf.length' makes more sense.
From Patrick Keshish
2016-06-06 19:31:22 +00:00
mglocker
58b259de1a
To match the encoding type, compare against 'pixelformat' instead of
...
'description' which could contain any value. Fixes VIDIOC_ENUM_FMT ioctl
for utvfu(4).
Spotted by Patrick Keshish.
ok mpi
2016-06-06 11:55:38 +00:00
mglocker
75f41efb37
Add 'q' option to just display the device properties and quit.
...
Tested and ok czarkoff
2016-06-04 07:44:32 +00:00
tb
9df5e43bd2
mmap(2) failure is indicated by MAP_FAILED, not NULL.
...
ok mglocker
2016-06-02 08:53:32 +00:00
mglocker
9d46737716
Just try to unmap a buffer when something has been mapped before.
...
ok semarie tb
2016-06-02 07:47:25 +00:00
tb
7d6f19381b
Guard against using tp_start uninitialized in case no frame was
...
grabbed in verbose mode.
ok mglocker
2016-05-31 08:45:14 +00:00
mglocker
b1a7299baa
Add mmap(2) support for frame grabbing and make it default over read(2).
...
The introduced '-g' option still allows to fallback to read(2).
With input from tb, jmc, and Patrick Keshishian.
ok tb
2016-05-31 06:47:12 +00:00
schwarze
87e21f736d
Escape "Rv" when passed as an argument to a macro in order to avoid
...
confusion whether this is supposed to be a call to the .Rv macro.
Found by a warning issued by the the groff_mdoc(7) macros.
2014-11-30 01:40:26 +00:00
brad
fef33097b9
Now that gcc2 is gone revert the removal of anonymous unions.
...
"I think this is the right thing to do" miod@
"Fine with me." sthen@
2014-10-23 07:36:06 +00:00
matthieu
3e0a91b35c
Typo in warn() argument. Reported by Artturi Alm. Thanks.
2012-08-14 12:09:33 +00:00
matthieu
484812f429
Typo. From Pappe Kaugummi via jmc@.
2012-08-05 20:59:03 +00:00
naddy
2e88a2b0e8
switch to installing source manuals:
...
* cope with new bsd.man.mk
* update imake configuration
ports use of imake remains unchanged
2011-06-23 22:48:59 +00:00
jakemsr
95e3242529
add the -R option to usage()
...
spotted by sobrado@
2011-04-11 17:23:18 +00:00
jakemsr
53483e36a8
* use VIDIOC_ENUM_FRAMEINTERVALS to get the supported frame intervals
...
and display the frame rates if at least on -v is used.
* set/get the video(4) device's frame rate using VIDIOC_{S,G}_PARM.
* add new option -R which dsables frame rate adjustment. only really
useful for video(4) devices, to see the difference between the frame
rate the device generates and what it says it's configured for ...
many devices don't generate the rate they are configured if they
aren't getting enough light ...
* poll(2) input with INFTIM instead of 0 timeout, and handle the poll(2)
call being interrupted by the frame timer.
* only use usleep(3) to wait for frames if the input is a file, and
in that case, sleep for a full frame interval or until interrupted
by the frame timer.
* update the manual to describe the new -R option, that -r now sets
video(4) frame rate, and that at least one -v will display supported
properties of the hardware.
2011-04-11 02:58:49 +00:00
sobrado
056292656a
lexicographically sort keys.
...
ok jakemsr@, jmc@
2011-03-18 20:08:58 +00:00
matthieu
7ae39052df
xcb is no longer optional.
2011-03-08 20:48:59 +00:00
matthieu
66473b7fbe
Explicitely link libxcb when needed for static arches.
2010-11-27 14:25:47 +00:00
jakemsr
335814b337
typo spotted by espie
2010-10-26 16:04:13 +00:00
jakemsr
66fbac58e1
typos. "ouput" typos spotted by Jan Stary.
2010-10-15 14:24:23 +00:00
jakemsr
622e7bac0c
oops. start with an undefined encoding instead of yuy2. lets the code
...
figure out what encoding to use, based on what the hardware supports.
still uses yuy2 by default if the hardware supports it.
2010-10-15 14:21:20 +00:00
jakemsr
29306fc0e4
declare the global vars as static to not conflict with symbols from
...
libraries
2010-10-15 09:27:26 +00:00
schwarze
be7005d8cf
s/\.Xx/.Xr/ such that "Xv(3)" doesn't get lost;
...
found by mandoc -Tlint
2010-09-26 23:58:18 +00:00
jakemsr
52f69c164d
support for gamma and sharpness/acutance controls.
...
also from Martin Pieuchot, thanks!
2010-09-26 23:47:17 +00:00
jakemsr
6704c2a7ac
list all libraries needed and in the correct order so this builds
...
on static archs
from todd@
2010-09-25 02:58:00 +00:00
jakemsr
02e1414c42
no more anonymous unions in video(4)
2010-09-13 01:35:50 +00:00
jakemsr
bdc0c150f3
$OpenBSD$ and compare width to width, not width to height
2010-07-26 23:02:06 +00:00
sobrado
9e6242225e
sort options as usual in our operating system; `usage:' is lower case;
...
improve usage()'s output; better indentation in usage() function.
ok jakemsr@
2010-07-26 08:09:33 +00:00
jakemsr
63de478659
do not add the same size twice, and do not fall of the end of
...
the frame sizes array.
reported/tested mglocker
2010-07-24 22:09:08 +00:00
ckuethe
e8d40eb136
allow "make build" to work, ok matthieu@
2010-07-23 19:46:00 +00:00
jakemsr
3838c3aada
import video(1), an application for recording and/or displaying
...
images from a video(4) device
ok matthieu, todd; prodding from deraadt
2010-07-23 11:33:52 +00:00