diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2008-12-09 06:01:42 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2008-12-09 06:01:42 +0000 |
commit | 01112856e9a2f05e347ff208e42af33d8f8f0087 (patch) | |
tree | 22cee369cccabc45e33e4c3023e3046437414ac8 /sys/dev | |
parent | 3a891d9f092a98531f53941521332c47753dea91 (diff) |
Also allow V4L2 apps to recognize the UYVY support.
ok mglocker@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/uvideo.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c index 450206e6635..354f3a672a7 100644 --- a/sys/dev/usb/uvideo.c +++ b/sys/dev/usb/uvideo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvideo.c,v 1.103 2008/12/08 22:02:39 deraadt Exp $ */ +/* $OpenBSD: uvideo.c,v 1.104 2008/12/09 06:01:41 brad Exp $ */ /* * Copyright (c) 2008 Robert Nagy <robert@openbsd.org> @@ -2481,6 +2481,11 @@ uvideo_enum_fmt(void *v, struct v4l2_fmtdesc *fmtdesc) (void)strlcpy(fmtdesc->description, "NV12", sizeof(fmtdesc->description)); fmtdesc->pixelformat = V4L2_PIX_FMT_NV12; + } else if (sc->sc_fmtgrp[idx].pixelformat == + V4L2_PIX_FMT_UYVY) { + (void)strlcpy(fmtdesc->description, "UYVY", + sizeof(fmtdesc->description)); + fmtdesc->pixelformat = V4L2_PIX_FMT_UYVY; } else { (void)strlcpy(fmtdesc->description, "Unknown UC Format", sizeof(fmtdesc->description)); |