Dear all, the zoran driver uses a capture format, for which I've just used a separate fourcc (fourcc('J','P','E','G')). This one is not intended to be driver-specific. Rather' it's meant to be used by all JPEG devices out there (the ones supported by our driver, but also the ones supported by the linuxmedialabs' own LML33 driver and the Marvel driver). Could this one be added to videodev2.h? Also, Gerd Knorr has suggested to add a separate entry to videodev2.h for VIDEO_COLOR_STD_AUTO, which can be used for autodetected norm (like VIDEO_MODE_AUTO in video4linux1). I've added this one as well, with a number of 4 so that 'norm = std->colorstandard - 1;' creates a valid v4l1 norm our of a v4l2 colorstandard. This could become 0 as well if anyone cares. Gerd, could this patch please be applied? Thanks, Ronald -- - .-. - /V\ | Ronald Bultje <rbultje@xxxxxxxxxxxxxxxxxxx> - // \\ | Running: Linux 2.4.18-XFS and OpenBSD 3.0 - /( )\ | http://ronald.bitfreak.net/ - ^^-^^
--- /usr/include/linux/videodev2-old.h Sun Aug 4 14:44:24 2002 +++ /usr/include/linux/videodev2.h Wed Aug 7 22:10:40 2002 @@ -127,6 +127,9 @@ /* Vendor-specific formats */ #define V4L2_PIX_FMT_WNVA v4l2_fourcc('W','N','V','A') /* Winnov hw compres */ +/* compressed formats */ +#define V4L2_PIX_FMT_JPEG v4l2_fourcc('J','P','E','G') /* (Motion-)JPEG */ + /* Flags */ #define V4L2_FMT_FLAG_COMPRESSED 0x0001 /* Compressed format */ @@ -479,6 +482,7 @@ #define V4L2_COLOR_STD_PAL 1 #define V4L2_COLOR_STD_NTSC 2 #define V4L2_COLOR_STD_SECAM 3 +#define V4L2_COLOR_STD_AUTO 4 /* Values for the color subcarrier fields */ #define V4L2_COLOR_SUBC_PAL 4433619 /* PAL BGHI, NTSC-44 */