Sat Sep 20 18:17:56 2008 UTC ()
Add UYVY support.


(jmcneill)
diff -r1.14 -r1.15 src/sys/dev/usb/uvideo.c
diff -r1.1 -r1.2 src/sys/dev/usb/uvideoreg.h

cvs diff -r1.14 -r1.15 src/sys/dev/usb/uvideo.c (expand / switch to context diff)
--- src/sys/dev/usb/uvideo.c 2008/09/20 15:55:38 1.14
+++ src/sys/dev/usb/uvideo.c 2008/09/20 18:17:56 1.15
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvideo.c,v 1.14 2008/09/20 15:55:38 jmcneill Exp $	*/
+/*	$NetBSD: uvideo.c,v 1.15 2008/09/20 18:17:56 jmcneill Exp $	*/
 
 /*
  * Copyright (c) 2008 Patrick Mahoney
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvideo.c,v 1.14 2008/09/20 15:55:38 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvideo.c,v 1.15 2008/09/20 18:17:56 jmcneill Exp $");
 
 #ifdef _MODULE
 #include <sys/module.h>
@@ -1255,6 +1255,8 @@
 			pixel_format = VIDEO_FORMAT_YUY2;
 		else if (usb_guid_cmp(guid, &uvideo_guid_format_nv12) == 0)
 			pixel_format = VIDEO_FORMAT_NV12;
+		else if (usb_guid_cmp(guid, &uvideo_guid_format_uyvy) == 0)
+			pixel_format = VIDEO_FORMAT_UYVY;
 		break;
 	case UDESC_VS_FORMAT_FRAME_BASED:
 		subtype = UDESC_VS_FRAME_FRAME_BASED;

cvs diff -r1.1 -r1.2 src/sys/dev/usb/uvideoreg.h (expand / switch to context diff)
--- src/sys/dev/usb/uvideoreg.h 2008/09/09 01:13:42 1.1
+++ src/sys/dev/usb/uvideoreg.h 2008/09/20 18:17:56 1.2
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvideoreg.h,v 1.1 2008/09/09 01:13:42 jmcneill Exp $	*/
+/*	$NetBSD: uvideoreg.h,v 1.2 2008/09/20 18:17:56 jmcneill Exp $	*/
 
 /*
  * Copyright (c) 2008 Patrick Mahoney
@@ -395,6 +395,13 @@
 
 static const guid_t uvideo_guid_format_nv12 = {
 	0x3231564E,
+	0x0000,
+	0x0010,
+	{0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71}
+};
+
+static const guid_t uvideo_guid_format_uyvy = {
+	0x59565955,
 	0x0000,
 	0x0010,
 	{0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71}