OpenBSD CVS

CVS log for src/sys/dev/video_if.h


[BACK] Up to [local] / src / sys / dev

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.19 / (download) - annotate - [select for diffs], Mon Mar 21 19:22:40 2022 UTC (2 years, 2 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, HEAD
Changes since 1.18: +4 -3 lines
Diff to previous 1.18 (colored)

Constify struct {audio,midi,radio,video}_hw_if. No functional change.

ok mpi@ ratchov@ "More const is good" deraadt@

Revision 1.18 / (download) - annotate - [select for diffs], Sat Oct 18 08:01:34 2014 UTC (9 years, 7 months ago) by armani
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored)

Add VIDIOC_G_INPUT ioctl, some ports need it (at least ffmpeg)

ok ratchov@, sthen@, mpi@

Revision 1.17 / (download) - annotate - [select for diffs], Sat Mar 26 08:13:05 2011 UTC (13 years, 2 months ago) by jakemsr
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.16: +3 -1 lines
Diff to previous 1.16 (colored)

support VIDIOC_S_PARM and VIDIOC_G_PARM.  these ioctls are used for
setting and and getting the frame interval.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Aug 24 11:05:02 2008 UTC (15 years, 9 months ago) by mglocker
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.15: +3 -1 lines
Diff to previous 1.15 (colored)

Add support for processing unit (e.g. brightness) controls.  New V4L2
ioctls therefore are VIDIOC_QUERYCTRL, VIDIOC_G_CTRL, and VIDIOC_S_CTRL.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Aug 13 20:29:34 2008 UTC (15 years, 10 months ago) by mglocker
Branch: MAIN
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored)

Add VIDIOC_ENUM_FRAMESIZES ioctl.  This permits applications to query the
available formats and resolutions of a device (e.g. "luvcview -L").

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jul 31 15:26:25 2008 UTC (15 years, 10 months ago) by mglocker
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

- Don't relay on bFormatIndex as an internal array index, since this
field is unreliable and can start with any number.  Use an own internal
array index instead.

- If the read buffer is too small, return a propper error to the calling
functions.  Just check the buffer size if we use the read(2) method since
it doesn't affect mmap(2).

Fixes kernel crashes seen with the M$ LifeCam NX-6000 and internal
(laptop) Sonix chipsets.

Tested by jcs@ (Sonix) and myself (NX-6000).

OK deraadt@

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jun 13 05:00:32 2008 UTC (16 years ago) by mglocker
Branch: MAIN
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

Add myself to the copyright since i fumbled around in those files, too.

OK robert@

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jun 11 01:27:30 2008 UTC (16 years ago) by robert
Branch: MAIN
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

implement the VIDIOC_STREAMOFF ioctl and remove some unused code

Revision 1.11 / (download) - annotate - [select for diffs], Tue Jun 10 23:39:01 2008 UTC (16 years ago) by robert
Branch: MAIN
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored)

add VIDIOC_QUERYCTRL to the supported ioctls

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jun 9 20:51:31 2008 UTC (16 years ago) by mglocker
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

Let the driver switch between read() and mmap() depending on what
the userland application wants.

OK robert@

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jun 9 05:49:10 2008 UTC (16 years ago) by robert
Branch: MAIN
Changes since 1.8: +4 -2 lines
Diff to previous 1.8 (colored)

Allocate the video buffer based on the maximum frame size that's reported
by the device instead of using the statically set VIDEO_BUF_SIZE.

ok mglocker@

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jun 7 22:14:57 2008 UTC (16 years ago) by mglocker
Branch: MAIN
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (colored)

Start to queue mmap frames.  Add VIDIOC_QBUF, VIDIOC_DQBUF,
VIDIOC_STREAMON for that purpose, too.

OK robert@

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jun 7 19:26:25 2008 UTC (16 years ago) by robert
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

double the static video buffer size, because
the current one is not going to be enough for
some cams

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jun 5 20:50:28 2008 UTC (16 years ago) by mglocker
Branch: MAIN
Changes since 1.5: +4 -3 lines
Diff to previous 1.5 (colored)

Add some first mmap bits.

Help by miod@

Revision 1.5 / (download) - annotate - [select for diffs], Fri May 30 06:37:38 2008 UTC (16 years ago) by mglocker
Branch: MAIN
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored)

Allocate static buffer for software frame buffer and make sure to not
overflow it.

Revision 1.4 / (download) - annotate - [select for diffs], Mon May 26 17:51:18 2008 UTC (16 years ago) by mglocker
Branch: MAIN
Changes since 1.3: +5 -1 lines
Diff to previous 1.3 (colored)

Add more ioctl's (still unfinished);  VIDIOC_ENUM_FMT, VIDIOC_ENUMINPUT,
VIDIOC_S_INPUT, VIDIOC_TRY_FMT.  Allows me at least to use a small V4L2
compatible webcam application to capture some images.

Revision 1.3 / (download) - annotate - [select for diffs], Sun May 25 07:47:47 2008 UTC (16 years ago) by mglocker
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

Spacing.  Comments.  strncpy() -> strlcpy().

Revision 1.2 / (download) - annotate - [select for diffs], Sat May 24 19:37:34 2008 UTC (16 years ago) by mglocker
Branch: MAIN
Changes since 1.1: +3 -2 lines
Diff to previous 1.1 (colored)

- Enable userland to read(2) video stream from /dev/video.
- Prepare for mmap(2).

Revision 1.1 / (download) - annotate - [select for diffs], Wed Apr 9 19:49:55 2008 UTC (16 years, 2 months ago) by robert
Branch: MAIN

Initial import for uvideo(4) and video(4):

uvideo(4) is a driver for USB video device class devices including webcams,
camcorders and other cameras.

video(4) is a device-independent layer that implements the V4L2 (Video for Linux Two)
API.

These drivers are *really* work in progress so don't even try to use them just yet,
because the driver still has some issues, even if it can be used to capture simple
MJPEG videos.

ok mglocker@, deraadt@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.