xilinx-v4l2-controls.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. #ifndef __UAPI_XILINX_V4L2_CONTROLS_H__
  20. #define __UAPI_XILINX_V4L2_CONTROLS_H__
  21. #include <linux/v4l2-controls.h>
  22. #define V4L2_CID_XILINX_OFFSET 0xc000
  23. #define V4L2_CID_XILINX_BASE (V4L2_CID_USER_BASE + V4L2_CID_XILINX_OFFSET)
  24. /*
  25. * Private Controls for Xilinx Video IPs
  26. */
  27. /*
  28. * Xilinx TPG Video IP
  29. */
  30. #define V4L2_CID_XILINX_TPG (V4L2_CID_USER_BASE + 0xc000)
  31. /* Draw cross hairs */
  32. #define V4L2_CID_XILINX_TPG_CROSS_HAIRS (V4L2_CID_XILINX_TPG + 1)
  33. /* Enable a moving box */
  34. #define V4L2_CID_XILINX_TPG_MOVING_BOX (V4L2_CID_XILINX_TPG + 2)
  35. /* Mask out a color component */
  36. #define V4L2_CID_XILINX_TPG_COLOR_MASK (V4L2_CID_XILINX_TPG + 3)
  37. /* Enable a stuck pixel feature */
  38. #define V4L2_CID_XILINX_TPG_STUCK_PIXEL (V4L2_CID_XILINX_TPG + 4)
  39. /* Enable a noisy output */
  40. #define V4L2_CID_XILINX_TPG_NOISE (V4L2_CID_XILINX_TPG + 5)
  41. /* Enable the motion feature */
  42. #define V4L2_CID_XILINX_TPG_MOTION (V4L2_CID_XILINX_TPG + 6)
  43. /* Configure the motion speed of moving patterns */
  44. #define V4L2_CID_XILINX_TPG_MOTION_SPEED (V4L2_CID_XILINX_TPG + 7)
  45. /* The row of horizontal cross hair location */
  46. #define V4L2_CID_XILINX_TPG_CROSS_HAIR_ROW (V4L2_CID_XILINX_TPG + 8)
  47. /* The colum of vertical cross hair location */
  48. #define V4L2_CID_XILINX_TPG_CROSS_HAIR_COLUMN (V4L2_CID_XILINX_TPG + 9)
  49. /* Set starting point of sine wave for horizontal component */
  50. #define V4L2_CID_XILINX_TPG_ZPLATE_HOR_START (V4L2_CID_XILINX_TPG + 10)
  51. /* Set speed of the horizontal component */
  52. #define V4L2_CID_XILINX_TPG_ZPLATE_HOR_SPEED (V4L2_CID_XILINX_TPG + 11)
  53. /* Set starting point of sine wave for vertical component */
  54. #define V4L2_CID_XILINX_TPG_ZPLATE_VER_START (V4L2_CID_XILINX_TPG + 12)
  55. /* Set speed of the vertical component */
  56. #define V4L2_CID_XILINX_TPG_ZPLATE_VER_SPEED (V4L2_CID_XILINX_TPG + 13)
  57. /* Moving box size */
  58. #define V4L2_CID_XILINX_TPG_BOX_SIZE (V4L2_CID_XILINX_TPG + 14)
  59. /* Moving box color */
  60. #define V4L2_CID_XILINX_TPG_BOX_COLOR (V4L2_CID_XILINX_TPG + 15)
  61. /* Upper limit count of generated stuck pixels */
  62. #define V4L2_CID_XILINX_TPG_STUCK_PIXEL_THRESH (V4L2_CID_XILINX_TPG + 16)
  63. /* Noise level */
  64. #define V4L2_CID_XILINX_TPG_NOISE_GAIN (V4L2_CID_XILINX_TPG + 17)
  65. #endif /* __UAPI_XILINX_V4L2_CONTROLS_H__ */