-/* $OpenBSD: uvideo.c,v 1.133 2010/07/15 04:46:33 mglocker Exp $ */
+/* $OpenBSD: uvideo.c,v 1.134 2010/07/26 07:01:08 mglocker Exp $ */
/*
* Copyright (c) 2008 Robert Nagy <robert@openbsd.org>
NULL,
UVIDEO_FLAG_FIX_MAX_VIDEO_FRAME_SIZE
},
+ {
+ /* Needs to fix dwMaxVideoFrameSize */
+ { USB_VENDOR_MICRODIA, USB_PRODUCT_MICRODIA_CAM_1 },
+ NULL,
+ NULL,
+ UVIDEO_FLAG_FIX_MAX_VIDEO_FRAME_SIZE
+ },
};
#define uvideo_lookup(v, p) \
((struct uvideo_devs *)usb_lookup(uvideo_devs, v, p))
sc->sc_fmtgrp[fmtidx].pixelformat == V4L2_PIX_FMT_YUYV) {
fd = (struct usb_video_frame_uncompressed_desc *)
sc->sc_fmtgrp[fmtidx].frame[d->bFrameIndex];
- fbuf_size = UGETW(fd->wWidth) * UGETW(fd->wHeight) * 2;
+ fbuf_size = UGETW(fd->wWidth) * UGETW(fd->wHeight) * 4;
DPRINTF(1, "wWidth = %d, wHeight = %d\n",
UGETW(fd->wWidth), UGETW(fd->wHeight));
} else
sc->sc_fmtgrp_cur->pixelformat == V4L2_PIX_FMT_YUYV) {
USETDW(pc->dwMaxVideoFrameSize,
UGETW(sc->sc_fmtgrp_cur->frame_cur->wWidth) *
- UGETW(sc->sc_fmtgrp_cur->frame_cur->wHeight) * 2);
+ UGETW(sc->sc_fmtgrp_cur->frame_cur->wHeight) * 4);
}
}