• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 *
3 * SPDX-License-Identifier: GPL-2.0
4 *
5 * Copyright (C) 2011-2018 ARM or its affiliates
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 *
18 */
19 
20 #if !defined( __ACAMERA_AUTOCAPTURE_H__ )
21 #define __ACAMERA_AUTOCAPTURE_H__
22 
23 #define OUTPUT_FORMAT_DISABLE      0
24 #define OUTPUT_FORMAT_RGB32        1
25 #define OUTPUT_FORMAT_A2R10G10B10  2
26 #define OUTPUT_FORMAT_RGB565       3
27 #define OUTPUT_FORMAT_RGB24        4
28 #define OUTPUT_FORMAT_GEN32        5
29 #define OUTPUT_FORMAT_RAW16        6
30 #define OUTPUT_FORMAT_RAW12        7
31 #define OUTPUT_FORMAT_AYUV         8
32 #define OUTPUT_FORMAT_Y410         9
33 #define OUTPUT_FORMAT_YUY2         10
34 #define OUTPUT_FORMAT_UYVY         11
35 #define OUTPUT_FORMAT_Y210         12
36 #define OUTPUT_FORMAT_NV12_Y       13
37 #define OUTPUT_FORMAT_NV12_UV      (1<<6|13)
38 #define OUTPUT_FORMAT_NV12_VU      (2<<6|13)
39 #define OUTPUT_FORMAT_YV12_Y       14
40 #define OUTPUT_FORMAT_YV12_U       (1<<6|14)
41 #define OUTPUT_FORMAT_YV12_V       (2<<6|14)
42 
43 #define GET_FR  	0
44 #define GET_DS1 	1
45 #define GET_DS2 	2
46 
47 #define IOCTL_FREE_MEM         0x101
48 #define IOCTL_GET_FR_INFO      0x102
49 #define IOCTL_GET_DS1_INFO     0x103
50 #define IOCTL_GET_DS2_INFO     0x104
51 #define IOCTL_STOP_AUTO        0x105
52 #define IOCTL_STOP_AUTO_FR     0x106
53 #define IOCTL_STOP_AUTO_DS1    0x107
54 #define IOCTL_STOP_AUTO_DS2    0x108
55 #define IOCTL_DBGPATH_INFO     0x109
56 #define IOCTL_GET_FRAME_INFO   0x110
57 #define IOCTL_GET_FR_RTL_INFO   0x111
58 #define IOCTL_GET_DS1_RTL_INFO  0x112
59 #define IOCTL_GET_DS2_RTL_INFO  0x113
60 
61 struct frame_info {
62           uint32_t type;
63           uint32_t index;
64           uint32_t framesize;
65           uint32_t phy_addr;
66 };
67 
68 struct autocap_image {
69           uint32_t format;
70           uint32_t fps;
71           uint32_t imagesize;
72           uint32_t imagebufferstride;
73           uint32_t count;
74           uint32_t memory_size;
75           uint32_t realcount;
76           uint32_t endtime;
77           uint32_t s_address;
78           uint32_t n_address;
79 };
80 
81 #endif /* __ACAMERA_AUTOCAPTURE_H__ */
82