xilinx-v4l2-controls.h 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * Xilinx Controls Header
  4. *
  5. * Copyright (C) 2013-2015 Ideas on Board
  6. * Copyright (C) 2013-2015 Xilinx, Inc.
  7. *
  8. * Contacts: Hyun Kwon <[email protected]>
  9. * Laurent Pinchart <[email protected]>
  10. *
  11. * This software is licensed under the terms of the GNU General Public
  12. * License version 2, as published by the Free Software Foundation, and
  13. * may be copied, distributed, and modified under those terms.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. */
  20. #ifndef __UAPI_XILINX_V4L2_CONTROLS_H__
  21. #define __UAPI_XILINX_V4L2_CONTROLS_H__
  22. #include <linux/v4l2-controls.h>
  23. #define V4L2_CID_XILINX_OFFSET 0xc000
  24. #define V4L2_CID_XILINX_BASE (V4L2_CID_USER_BASE + V4L2_CID_XILINX_OFFSET)
  25. /*
  26. * Private Controls for Xilinx Video IPs
  27. */
  28. /*
  29. * Xilinx TPG Video IP
  30. */
  31. #define V4L2_CID_XILINX_TPG (V4L2_CID_USER_BASE + 0xc000)
  32. /* Draw cross hairs */
  33. #define V4L2_CID_XILINX_TPG_CROSS_HAIRS (V4L2_CID_XILINX_TPG + 1)
  34. /* Enable a moving box */
  35. #define V4L2_CID_XILINX_TPG_MOVING_BOX (V4L2_CID_XILINX_TPG + 2)
  36. /* Mask out a color component */
  37. #define V4L2_CID_XILINX_TPG_COLOR_MASK (V4L2_CID_XILINX_TPG + 3)
  38. /* Enable a stuck pixel feature */
  39. #define V4L2_CID_XILINX_TPG_STUCK_PIXEL (V4L2_CID_XILINX_TPG + 4)
  40. /* Enable a noisy output */
  41. #define V4L2_CID_XILINX_TPG_NOISE (V4L2_CID_XILINX_TPG + 5)
  42. /* Enable the motion feature */
  43. #define V4L2_CID_XILINX_TPG_MOTION (V4L2_CID_XILINX_TPG + 6)
  44. /* Configure the motion speed of moving patterns */
  45. #define V4L2_CID_XILINX_TPG_MOTION_SPEED (V4L2_CID_XILINX_TPG + 7)
  46. /* The row of horizontal cross hair location */
  47. #define V4L2_CID_XILINX_TPG_CROSS_HAIR_ROW (V4L2_CID_XILINX_TPG + 8)
  48. /* The colum of vertical cross hair location */
  49. #define V4L2_CID_XILINX_TPG_CROSS_HAIR_COLUMN (V4L2_CID_XILINX_TPG + 9)
  50. /* Set starting point of sine wave for horizontal component */
  51. #define V4L2_CID_XILINX_TPG_ZPLATE_HOR_START (V4L2_CID_XILINX_TPG + 10)
  52. /* Set speed of the horizontal component */
  53. #define V4L2_CID_XILINX_TPG_ZPLATE_HOR_SPEED (V4L2_CID_XILINX_TPG + 11)
  54. /* Set starting point of sine wave for vertical component */
  55. #define V4L2_CID_XILINX_TPG_ZPLATE_VER_START (V4L2_CID_XILINX_TPG + 12)
  56. /* Set speed of the vertical component */
  57. #define V4L2_CID_XILINX_TPG_ZPLATE_VER_SPEED (V4L2_CID_XILINX_TPG + 13)
  58. /* Moving box size */
  59. #define V4L2_CID_XILINX_TPG_BOX_SIZE (V4L2_CID_XILINX_TPG + 14)
  60. /* Moving box color */
  61. #define V4L2_CID_XILINX_TPG_BOX_COLOR (V4L2_CID_XILINX_TPG + 15)
  62. /* Upper limit count of generated stuck pixels */
  63. #define V4L2_CID_XILINX_TPG_STUCK_PIXEL_THRESH (V4L2_CID_XILINX_TPG + 16)
  64. /* Noise level */
  65. #define V4L2_CID_XILINX_TPG_NOISE_GAIN (V4L2_CID_XILINX_TPG + 17)
  66. #endif /* __UAPI_XILINX_V4L2_CONTROLS_H__ */