diff options
| author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2013-05-15 10:36:56 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-03 00:04:18 -0400 |
| commit | a5562f65b1371a0988b707c10c44fcc2bba56990 (patch) | |
| tree | 4c5638cbbab1f8f298c77be9192066afccf69e7b /include/uapi/linux | |
| parent | 40ac9b196d07813132e2d5a14aae40d5812f131e (diff) | |
[media] v4l: xilinx: Add Test Pattern Generator driver
The TPG generates multiple static or dynamic test patterns. The driver
currently hardcodes the pattern to the moving box pattern.
Signed-off-by: Christian Kohn <christian.kohn@xilinx.com>
Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/Kbuild | 1 | ||||
| -rw-r--r-- | include/uapi/linux/xilinx-v4l2-controls.h | 73 |
2 files changed, 74 insertions, 0 deletions
diff --git a/include/uapi/linux/Kbuild b/include/uapi/linux/Kbuild index 68ceb97c458c..d4cfc17cc414 100644 --- a/include/uapi/linux/Kbuild +++ b/include/uapi/linux/Kbuild | |||
| @@ -446,5 +446,6 @@ header-y += wireless.h | |||
| 446 | header-y += x25.h | 446 | header-y += x25.h |
| 447 | header-y += xattr.h | 447 | header-y += xattr.h |
| 448 | header-y += xfrm.h | 448 | header-y += xfrm.h |
| 449 | header-y += xilinx-v4l2-controls.h | ||
| 449 | header-y += zorro.h | 450 | header-y += zorro.h |
| 450 | header-y += zorro_ids.h | 451 | header-y += zorro_ids.h |
diff --git a/include/uapi/linux/xilinx-v4l2-controls.h b/include/uapi/linux/xilinx-v4l2-controls.h new file mode 100644 index 000000000000..fb495b91e800 --- /dev/null +++ b/include/uapi/linux/xilinx-v4l2-controls.h | |||
| @@ -0,0 +1,73 @@ | |||
| 1 | /* | ||
| 2 | * Xilinx Controls Header | ||
| 3 | * | ||
| 4 | * Copyright (C) 2013-2015 Ideas on Board | ||
| 5 | * Copyright (C) 2013-2015 Xilinx, Inc. | ||
| 6 | * | ||
| 7 | * Contacts: Hyun Kwon <hyun.kwon@xilinx.com> | ||
| 8 | * Laurent Pinchart <laurent.pinchart@ideasonboard.com> | ||
| 9 | * | ||
| 10 | * This software is licensed under the terms of the GNU General Public | ||
| 11 | * License version 2, as published by the Free Software Foundation, and | ||
| 12 | * may be copied, distributed, and modified under those terms. | ||
| 13 | * | ||
| 14 | * This program is distributed in the hope that it will be useful, | ||
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 17 | * GNU General Public License for more details. | ||
| 18 | */ | ||
| 19 | |||
| 20 | #ifndef __UAPI_XILINX_V4L2_CONTROLS_H__ | ||
| 21 | #define __UAPI_XILINX_V4L2_CONTROLS_H__ | ||
| 22 | |||
| 23 | #include <linux/v4l2-controls.h> | ||
| 24 | |||
| 25 | #define V4L2_CID_XILINX_OFFSET 0xc000 | ||
| 26 | #define V4L2_CID_XILINX_BASE (V4L2_CID_USER_BASE + V4L2_CID_XILINX_OFFSET) | ||
| 27 | |||
| 28 | /* | ||
| 29 | * Private Controls for Xilinx Video IPs | ||
| 30 | */ | ||
| 31 | |||
| 32 | /* | ||
| 33 | * Xilinx TPG Video IP | ||
| 34 | */ | ||
| 35 | |||
| 36 | #define V4L2_CID_XILINX_TPG (V4L2_CID_USER_BASE + 0xc000) | ||
| 37 | |||
| 38 | /* Draw cross hairs */ | ||
| 39 | #define V4L2_CID_XILINX_TPG_CROSS_HAIRS (V4L2_CID_XILINX_TPG + 1) | ||
| 40 | /* Enable a moving box */ | ||
| 41 | #define V4L2_CID_XILINX_TPG_MOVING_BOX (V4L2_CID_XILINX_TPG + 2) | ||
| 42 | /* Mask out a color component */ | ||
| 43 | #define V4L2_CID_XILINX_TPG_COLOR_MASK (V4L2_CID_XILINX_TPG + 3) | ||
| 44 | /* Enable a stuck pixel feature */ | ||
| 45 | #define V4L2_CID_XILINX_TPG_STUCK_PIXEL (V4L2_CID_XILINX_TPG + 4) | ||
| 46 | /* Enable a noisy output */ | ||
| 47 | #define V4L2_CID_XILINX_TPG_NOISE (V4L2_CID_XILINX_TPG + 5) | ||
| 48 | /* Enable the motion feature */ | ||
| 49 | #define V4L2_CID_XILINX_TPG_MOTION (V4L2_CID_XILINX_TPG + 6) | ||
| 50 | /* Configure the motion speed of moving patterns */ | ||
| 51 | #define V4L2_CID_XILINX_TPG_MOTION_SPEED (V4L2_CID_XILINX_TPG + 7) | ||
| 52 | /* The row of horizontal cross hair location */ | ||
| 53 | #define V4L2_CID_XILINX_TPG_CROSS_HAIR_ROW (V4L2_CID_XILINX_TPG + 8) | ||
| 54 | /* The colum of vertical cross hair location */ | ||
| 55 | #define V4L2_CID_XILINX_TPG_CROSS_HAIR_COLUMN (V4L2_CID_XILINX_TPG + 9) | ||
| 56 | /* Set starting point of sine wave for horizontal component */ | ||
| 57 | #define V4L2_CID_XILINX_TPG_ZPLATE_HOR_START (V4L2_CID_XILINX_TPG + 10) | ||
| 58 | /* Set speed of the horizontal component */ | ||
| 59 | #define V4L2_CID_XILINX_TPG_ZPLATE_HOR_SPEED (V4L2_CID_XILINX_TPG + 11) | ||
| 60 | /* Set starting point of sine wave for vertical component */ | ||
| 61 | #define V4L2_CID_XILINX_TPG_ZPLATE_VER_START (V4L2_CID_XILINX_TPG + 12) | ||
| 62 | /* Set speed of the vertical component */ | ||
| 63 | #define V4L2_CID_XILINX_TPG_ZPLATE_VER_SPEED (V4L2_CID_XILINX_TPG + 13) | ||
| 64 | /* Moving box size */ | ||
| 65 | #define V4L2_CID_XILINX_TPG_BOX_SIZE (V4L2_CID_XILINX_TPG + 14) | ||
| 66 | /* Moving box color */ | ||
| 67 | #define V4L2_CID_XILINX_TPG_BOX_COLOR (V4L2_CID_XILINX_TPG + 15) | ||
| 68 | /* Upper limit count of generated stuck pixels */ | ||
| 69 | #define V4L2_CID_XILINX_TPG_STUCK_PIXEL_THRESH (V4L2_CID_XILINX_TPG + 16) | ||
| 70 | /* Noise level */ | ||
| 71 | #define V4L2_CID_XILINX_TPG_NOISE_GAIN (V4L2_CID_XILINX_TPG + 17) | ||
| 72 | |||
| 73 | #endif /* __UAPI_XILINX_V4L2_CONTROLS_H__ */ | ||
