diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-04-07 05:15:40 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-07 05:15:40 -0400 |
commit | 5e34437840d33554f69380584311743b39e8fbeb (patch) | |
tree | e081135619ee146af5efb9ee883afca950df5757 /include/linux/videodev2.h | |
parent | 77d05632baee21b1cef8730d7c06aa69601e4dca (diff) | |
parent | d508afb437daee7cf07da085b635c44a4ebf9b38 (diff) |
Merge branch 'linus' into core/softlockup
Conflicts:
kernel/sysctl.c
Diffstat (limited to 'include/linux/videodev2.h')
-rw-r--r-- | include/linux/videodev2.h | 69 |
1 files changed, 58 insertions, 11 deletions
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index 5571dbe1c0ad..139d234923cd 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h | |||
@@ -344,6 +344,8 @@ struct v4l2_pix_format { | |||
344 | #define V4L2_PIX_FMT_SPCA508 v4l2_fourcc('S', '5', '0', '8') /* YUVY per line */ | 344 | #define V4L2_PIX_FMT_SPCA508 v4l2_fourcc('S', '5', '0', '8') /* YUVY per line */ |
345 | #define V4L2_PIX_FMT_SPCA561 v4l2_fourcc('S', '5', '6', '1') /* compressed GBRG bayer */ | 345 | #define V4L2_PIX_FMT_SPCA561 v4l2_fourcc('S', '5', '6', '1') /* compressed GBRG bayer */ |
346 | #define V4L2_PIX_FMT_PAC207 v4l2_fourcc('P', '2', '0', '7') /* compressed BGGR bayer */ | 346 | #define V4L2_PIX_FMT_PAC207 v4l2_fourcc('P', '2', '0', '7') /* compressed BGGR bayer */ |
347 | #define V4L2_PIX_FMT_MR97310A v4l2_fourcc('M', '3', '1', '0') /* compressed BGGR bayer */ | ||
348 | #define V4L2_PIX_FMT_SQ905C v4l2_fourcc('9', '0', '5', 'C') /* compressed RGGB bayer */ | ||
347 | #define V4L2_PIX_FMT_PJPG v4l2_fourcc('P', 'J', 'P', 'G') /* Pixart 73xx JPEG */ | 349 | #define V4L2_PIX_FMT_PJPG v4l2_fourcc('P', 'J', 'P', 'G') /* Pixart 73xx JPEG */ |
348 | #define V4L2_PIX_FMT_YVYU v4l2_fourcc('Y', 'V', 'Y', 'U') /* 16 YVU 4:2:2 */ | 350 | #define V4L2_PIX_FMT_YVYU v4l2_fourcc('Y', 'V', 'Y', 'U') /* 16 YVU 4:2:2 */ |
349 | 351 | ||
@@ -829,6 +831,7 @@ struct v4l2_querymenu { | |||
829 | #define V4L2_CTRL_FLAG_UPDATE 0x0008 | 831 | #define V4L2_CTRL_FLAG_UPDATE 0x0008 |
830 | #define V4L2_CTRL_FLAG_INACTIVE 0x0010 | 832 | #define V4L2_CTRL_FLAG_INACTIVE 0x0010 |
831 | #define V4L2_CTRL_FLAG_SLIDER 0x0020 | 833 | #define V4L2_CTRL_FLAG_SLIDER 0x0020 |
834 | #define V4L2_CTRL_FLAG_WRITE_ONLY 0x0040 | ||
832 | 835 | ||
833 | /* Query flag, to be ORed with the control ID */ | 836 | /* Query flag, to be ORed with the control ID */ |
834 | #define V4L2_CTRL_FLAG_NEXT_CTRL 0x80000000 | 837 | #define V4L2_CTRL_FLAG_NEXT_CTRL 0x80000000 |
@@ -879,8 +882,15 @@ enum v4l2_power_line_frequency { | |||
879 | #define V4L2_CID_BACKLIGHT_COMPENSATION (V4L2_CID_BASE+28) | 882 | #define V4L2_CID_BACKLIGHT_COMPENSATION (V4L2_CID_BASE+28) |
880 | #define V4L2_CID_CHROMA_AGC (V4L2_CID_BASE+29) | 883 | #define V4L2_CID_CHROMA_AGC (V4L2_CID_BASE+29) |
881 | #define V4L2_CID_COLOR_KILLER (V4L2_CID_BASE+30) | 884 | #define V4L2_CID_COLOR_KILLER (V4L2_CID_BASE+30) |
885 | #define V4L2_CID_COLORFX (V4L2_CID_BASE+31) | ||
886 | enum v4l2_colorfx { | ||
887 | V4L2_COLORFX_NONE = 0, | ||
888 | V4L2_COLORFX_BW = 1, | ||
889 | V4L2_COLORFX_SEPIA = 2, | ||
890 | }; | ||
891 | |||
882 | /* last CID + 1 */ | 892 | /* last CID + 1 */ |
883 | #define V4L2_CID_LASTP1 (V4L2_CID_BASE+31) | 893 | #define V4L2_CID_LASTP1 (V4L2_CID_BASE+32) |
884 | 894 | ||
885 | /* MPEG-class control IDs defined by V4L2 */ | 895 | /* MPEG-class control IDs defined by V4L2 */ |
886 | #define V4L2_CID_MPEG_BASE (V4L2_CTRL_CLASS_MPEG | 0x900) | 896 | #define V4L2_CID_MPEG_BASE (V4L2_CTRL_CLASS_MPEG | 0x900) |
@@ -1339,6 +1349,53 @@ struct v4l2_sliced_vbi_data { | |||
1339 | }; | 1349 | }; |
1340 | 1350 | ||
1341 | /* | 1351 | /* |
1352 | * Sliced VBI data inserted into MPEG Streams | ||
1353 | */ | ||
1354 | |||
1355 | /* | ||
1356 | * V4L2_MPEG_STREAM_VBI_FMT_IVTV: | ||
1357 | * | ||
1358 | * Structure of payload contained in an MPEG 2 Private Stream 1 PES Packet in an | ||
1359 | * MPEG-2 Program Pack that contains V4L2_MPEG_STREAM_VBI_FMT_IVTV Sliced VBI | ||
1360 | * data | ||
1361 | * | ||
1362 | * Note, the MPEG-2 Program Pack and Private Stream 1 PES packet header | ||
1363 | * definitions are not included here. See the MPEG-2 specifications for details | ||
1364 | * on these headers. | ||
1365 | */ | ||
1366 | |||
1367 | /* Line type IDs */ | ||
1368 | #define V4L2_MPEG_VBI_IVTV_TELETEXT_B (1) | ||
1369 | #define V4L2_MPEG_VBI_IVTV_CAPTION_525 (4) | ||
1370 | #define V4L2_MPEG_VBI_IVTV_WSS_625 (5) | ||
1371 | #define V4L2_MPEG_VBI_IVTV_VPS (7) | ||
1372 | |||
1373 | struct v4l2_mpeg_vbi_itv0_line { | ||
1374 | __u8 id; /* One of V4L2_MPEG_VBI_IVTV_* above */ | ||
1375 | __u8 data[42]; /* Sliced VBI data for the line */ | ||
1376 | } __attribute__ ((packed)); | ||
1377 | |||
1378 | struct v4l2_mpeg_vbi_itv0 { | ||
1379 | __le32 linemask[2]; /* Bitmasks of VBI service lines present */ | ||
1380 | struct v4l2_mpeg_vbi_itv0_line line[35]; | ||
1381 | } __attribute__ ((packed)); | ||
1382 | |||
1383 | struct v4l2_mpeg_vbi_ITV0 { | ||
1384 | struct v4l2_mpeg_vbi_itv0_line line[36]; | ||
1385 | } __attribute__ ((packed)); | ||
1386 | |||
1387 | #define V4L2_MPEG_VBI_IVTV_MAGIC0 "itv0" | ||
1388 | #define V4L2_MPEG_VBI_IVTV_MAGIC1 "ITV0" | ||
1389 | |||
1390 | struct v4l2_mpeg_vbi_fmt_ivtv { | ||
1391 | __u8 magic[4]; | ||
1392 | union { | ||
1393 | struct v4l2_mpeg_vbi_itv0 itv0; | ||
1394 | struct v4l2_mpeg_vbi_ITV0 ITV0; | ||
1395 | }; | ||
1396 | } __attribute__ ((packed)); | ||
1397 | |||
1398 | /* | ||
1342 | * A G G R E G A T E S T R U C T U R E S | 1399 | * A G G R E G A T E S T R U C T U R E S |
1343 | */ | 1400 | */ |
1344 | 1401 | ||
@@ -1403,14 +1460,6 @@ struct v4l2_dbg_chip_ident { | |||
1403 | __u32 revision; /* chip revision, chip specific */ | 1460 | __u32 revision; /* chip revision, chip specific */ |
1404 | } __attribute__ ((packed)); | 1461 | } __attribute__ ((packed)); |
1405 | 1462 | ||
1406 | /* VIDIOC_G_CHIP_IDENT_OLD: Deprecated, do not use */ | ||
1407 | struct v4l2_chip_ident_old { | ||
1408 | __u32 match_type; /* Match type */ | ||
1409 | __u32 match_chip; /* Match this chip, meaning determined by match_type */ | ||
1410 | __u32 ident; /* chip identifier as specified in <media/v4l2-chip-ident.h> */ | ||
1411 | __u32 revision; /* chip revision, chip specific */ | ||
1412 | }; | ||
1413 | |||
1414 | /* | 1463 | /* |
1415 | * I O C T L C O D E S F O R V I D E O D E V I C E S | 1464 | * I O C T L C O D E S F O R V I D E O D E V I C E S |
1416 | * | 1465 | * |
@@ -1488,8 +1537,6 @@ struct v4l2_chip_ident_old { | |||
1488 | /* Experimental, meant for debugging, testing and internal use. | 1537 | /* Experimental, meant for debugging, testing and internal use. |
1489 | Never use this ioctl in applications! */ | 1538 | Never use this ioctl in applications! */ |
1490 | #define VIDIOC_DBG_G_CHIP_IDENT _IOWR('V', 81, struct v4l2_dbg_chip_ident) | 1539 | #define VIDIOC_DBG_G_CHIP_IDENT _IOWR('V', 81, struct v4l2_dbg_chip_ident) |
1491 | /* This is deprecated and will go away in 2.6.30 */ | ||
1492 | #define VIDIOC_G_CHIP_IDENT_OLD _IOWR('V', 81, struct v4l2_chip_ident_old) | ||
1493 | #endif | 1540 | #endif |
1494 | 1541 | ||
1495 | #define VIDIOC_S_HW_FREQ_SEEK _IOW('V', 82, struct v4l2_hw_freq_seek) | 1542 | #define VIDIOC_S_HW_FREQ_SEEK _IOW('V', 82, struct v4l2_hw_freq_seek) |