Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  * Xilinx Controls Header
0004  *
0005  * Copyright (C) 2013-2015 Ideas on Board
0006  * Copyright (C) 2013-2015 Xilinx, Inc.
0007  *
0008  * Contacts: Hyun Kwon <hyun.kwon@xilinx.com>
0009  *           Laurent Pinchart <laurent.pinchart@ideasonboard.com>
0010  *
0011  * This software is licensed under the terms of the GNU General Public
0012  * License version 2, as published by the Free Software Foundation, and
0013  * may be copied, distributed, and modified under those terms.
0014  *
0015  * This program is distributed in the hope that it will be useful,
0016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0018  * GNU General Public License for more details.
0019  */
0020 
0021 #ifndef __UAPI_XILINX_V4L2_CONTROLS_H__
0022 #define __UAPI_XILINX_V4L2_CONTROLS_H__
0023 
0024 #include <linux/v4l2-controls.h>
0025 
0026 #define V4L2_CID_XILINX_OFFSET  0xc000
0027 #define V4L2_CID_XILINX_BASE    (V4L2_CID_USER_BASE + V4L2_CID_XILINX_OFFSET)
0028 
0029 /*
0030  * Private Controls for Xilinx Video IPs
0031  */
0032 
0033 /*
0034  * Xilinx TPG Video IP
0035  */
0036 
0037 #define V4L2_CID_XILINX_TPG         (V4L2_CID_USER_BASE + 0xc000)
0038 
0039 /* Draw cross hairs */
0040 #define V4L2_CID_XILINX_TPG_CROSS_HAIRS     (V4L2_CID_XILINX_TPG + 1)
0041 /* Enable a moving box */
0042 #define V4L2_CID_XILINX_TPG_MOVING_BOX      (V4L2_CID_XILINX_TPG + 2)
0043 /* Mask out a color component */
0044 #define V4L2_CID_XILINX_TPG_COLOR_MASK      (V4L2_CID_XILINX_TPG + 3)
0045 /* Enable a stuck pixel feature */
0046 #define V4L2_CID_XILINX_TPG_STUCK_PIXEL     (V4L2_CID_XILINX_TPG + 4)
0047 /* Enable a noisy output */
0048 #define V4L2_CID_XILINX_TPG_NOISE       (V4L2_CID_XILINX_TPG + 5)
0049 /* Enable the motion feature */
0050 #define V4L2_CID_XILINX_TPG_MOTION      (V4L2_CID_XILINX_TPG + 6)
0051 /* Configure the motion speed of moving patterns */
0052 #define V4L2_CID_XILINX_TPG_MOTION_SPEED    (V4L2_CID_XILINX_TPG + 7)
0053 /* The row of horizontal cross hair location */
0054 #define V4L2_CID_XILINX_TPG_CROSS_HAIR_ROW  (V4L2_CID_XILINX_TPG + 8)
0055 /* The colum of vertical cross hair location */
0056 #define V4L2_CID_XILINX_TPG_CROSS_HAIR_COLUMN   (V4L2_CID_XILINX_TPG + 9)
0057 /* Set starting point of sine wave for horizontal component */
0058 #define V4L2_CID_XILINX_TPG_ZPLATE_HOR_START    (V4L2_CID_XILINX_TPG + 10)
0059 /* Set speed of the horizontal component */
0060 #define V4L2_CID_XILINX_TPG_ZPLATE_HOR_SPEED    (V4L2_CID_XILINX_TPG + 11)
0061 /* Set starting point of sine wave for vertical component */
0062 #define V4L2_CID_XILINX_TPG_ZPLATE_VER_START    (V4L2_CID_XILINX_TPG + 12)
0063 /* Set speed of the vertical component */
0064 #define V4L2_CID_XILINX_TPG_ZPLATE_VER_SPEED    (V4L2_CID_XILINX_TPG + 13)
0065 /* Moving box size */
0066 #define V4L2_CID_XILINX_TPG_BOX_SIZE        (V4L2_CID_XILINX_TPG + 14)
0067 /* Moving box color */
0068 #define V4L2_CID_XILINX_TPG_BOX_COLOR       (V4L2_CID_XILINX_TPG + 15)
0069 /* Upper limit count of generated stuck pixels */
0070 #define V4L2_CID_XILINX_TPG_STUCK_PIXEL_THRESH  (V4L2_CID_XILINX_TPG + 16)
0071 /* Noise level */
0072 #define V4L2_CID_XILINX_TPG_NOISE_GAIN      (V4L2_CID_XILINX_TPG + 17)
0073 
0074 #endif /* __UAPI_XILINX_V4L2_CONTROLS_H__ */