diff options
author | Benjamin M. Schwartz <bens@alum.mit.edu> | 2010-07-25 22:06:39 (GMT) |
---|---|---|
committer | Benjamin M. Schwartz <bens@alum.mit.edu> | 2010-07-25 22:06:39 (GMT) |
commit | 7f9d48128c900be759843e3ebdca12fadecf87fd (patch) | |
tree | 571d4f6d1f0774a77dadcaf4af8ae8309ebd94a3 | |
parent | 5d2722997b4af2dba0055a5dbc0fe5253561e94d (diff) |
Capture Bayer-format data
-rw-r--r-- | capture.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -525,7 +525,7 @@ init_device (void) fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; fmt.fmt.pix.width = 640; fmt.fmt.pix.height = 480; - fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV; + fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_SBGGR8; fmt.fmt.pix.field = V4L2_FIELD_INTERLACED; if (-1 == xioctl (fd, VIDIOC_S_FMT, &fmt)) |