1<?xml version='1.0' encoding='utf-8'?>
2<!-- Copyright (C) 2022 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9     Unless required by applicable law or agreed to in writing, software
10     distributed under the License is distributed on an "AS IS" BASIS,
11     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12     See the License for the specific language governing permissions and
13     limitations under the License.
14-->
15
16<!-- Exterior View System Example Configuration
17
18     Android Automotive axes are used to define coordinates.
19     See https://source.android.com/devices/sensors/sensor-types#auto_axes
20
21     Use evs_configuration.dtd with xmllint tool, to validate XML configuration file
22-->
23
24<configuration>
25    <!-- system configuration -->
26    <system>
27        <!-- number of cameras available to EVS -->
28        <num_cameras value='2'/>
29    </system>
30
31    <!-- camera device information -->
32    <camera>
33        <!-- camera group 0 -->
34        <group id='group0' synchronized='CALIBRATED'>
35            <caps>
36                <!-- list of supported controls supported by all physical devices -->
37                <supported_controls>
38                    <control name='BRIGHTNESS' min='0' max='255'/>
39                    <control name='CONTRAST' min='0' max='255'/>
40                </supported_controls>
41
42                <!-- list of stream configuration supported by all physical devices -->
43                <stream id='0' width='640' height='480' format='RGBA_8888' framerate='30'/>
44            </caps>
45
46            <!-- list of parameters -->
47            <characteristics>
48                <parameter
49                    name='REQUEST_AVAILABLE_CAPABILITIES'
50                    type='enum'
51                    size='1'
52                    value='LOGICAL_MULTI_CAMERA'
53                />
54                <parameter
55                    name='LOGICAL_MULTI_CAMERA_PHYSICAL_IDS'
56                    type='byte[]'
57                    size='2'
58                    value='/dev/video10,/dev/video11'
59                />
60            </characteristics>
61        </group>
62
63        <!-- camera device starts -->
64        <device id='/dev/video3' position='rear'>
65            <caps>
66                <!-- list of supported controls -->
67                <supported_controls>
68                    <control name='BRIGHTNESS' min='0' max='255'/>
69                    <control name='CONTRAST' min='0' max='255'/>
70                    <control name='AUTO_WHITE_BALANCE' min='0' max='1'/>
71                    <control name='WHITE_BALANCE_TEMPERATURE' min='2000' max='7500'/>
72                    <control name='SHARPNESS' min='0' max='255'/>
73                    <control name='AUTO_FOCUS' min='0' max='1'/>
74                    <control name='ABSOLUTE_FOCUS' min='0' max='255' step='5'/>
75                    <control name='ABSOLUTE_ZOOM' min='100' max='400'/>
76                </supported_controls>
77
78                <!-- list of supported stream configurations -->
79                <!-- below configurations were taken from v4l2-ctrl query on
80                     Logitech Webcam C930e device -->
81                <stream id='0' width='1920' height='1080' format='RGBA_8888' framerate='5'/>
82                <stream id='1' width='2304' height='1296' format='RGBA_8888' framerate='2'/>
83                <stream id='2' width='2304' height='1536' format='RGBA_8888' framerate='2'/>
84                <stream id='4' width='1280' height='720'  format='RGBA_8888' framerate='10'/>
85                <stream id='4' width='1024' height='576'  format='RGBA_8888' framerate='15'/>
86                <stream id='5' width='960'  height='540'  format='RGBA_8888' framerate='15'/>
87                <stream id='6' width='848'  height='480'  format='RGBA_8888' framerate='30'/>
88                <stream id='7' width='640'  height='360'  format='RGBA_8888' framerate='30'/>
89                <stream id='8' width='480'  height='270'  format='RGBA_8888' framerate='30'/>
90                <stream id='9' width='160'  height='120'  format='RGBA_8888' framerate='30'/>
91            </caps>
92
93            <!-- list of parameters -->
94            <characteristics>
95                <!-- Lens distortion information. See
96                     https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#LENS_DISTORTION
97                -->
98                <parameter
99                    name='LENS_DISTORTION'
100                    type='float'
101                    size='5'
102                    value='0.0,0.0,0.0,0.0,0.0'
103                />
104
105                <!-- Camera intrinsic calibration matrix. See
106                     https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#LENS_INTRINSIC_CALIBRATION
107                -->
108                <parameter
109                    name='LENS_INTRINSIC_CALIBRATION'
110                    type='float'
111                    size='5'
112                    value='0.0,0.0,0.0,0.0,0.0'
113                />
114
115                <!-- Camera pose translation and rotation.  See
116                     https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#LENS_POSE_TRANSLATION
117                     https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#LENS_POSE_ROTATION
118                -->
119                <parameter
120                    name='LENS_POSE_TRANSLATION'
121                    type='float'
122                    size='3'
123                    value='0.0,0.0,0.0'
124                />
125                <parameter
126                    name='LENS_POSE_ROTATION'
127                    type='float'
128                    size='4'
129                    value='0.0,0.0,0.0,0.0'
130                />
131            </characteristics>
132        </device>
133        <device id='/dev/video4' position='front'>
134            <caps>
135                <!-- list of supported controls -->
136                <supported_controls>
137                    <control name='BRIGHTNESS' min='0' max='255'/>
138                    <control name='CONTRAST' min='0' max='255'/>
139                    <control name='AUTO_WHITE_BALANCE' min='0' max='1'/>
140                    <control name='WHITE_BALANCE_TEMPERATURE' min='2000' max='7500'/>
141                    <control name='SHARPNESS' min='0' max='255'/>
142                    <control name='AUTO_FOCUS' min='0' max='1'/>
143                    <control name='ABSOLUTE_FOCUS' min='0' max='255' step='5'/>
144                    <control name='ABSOLUTE_ZOOM' min='100' max='400'/>
145                </supported_controls>
146
147                <!-- list of supported stream configurations -->
148                <!-- below configurations were taken from v4l2-ctrl query on
149                     Logitech Webcam C930e device -->
150                <stream id='0' width='1920' height='1080' format='RGBA_8888' framerate='5'/>
151                <stream id='1' width='2304' height='1296' format='RGBA_8888' framerate='2'/>
152                <stream id='2' width='2304' height='1536' format='RGBA_8888' framerate='2'/>
153                <stream id='4' width='1280' height='720'  format='RGBA_8888' framerate='10'/>
154                <stream id='4' width='1024' height='576'  format='RGBA_8888' framerate='15'/>
155                <stream id='5' width='960'  height='540'  format='RGBA_8888' framerate='15'/>
156                <stream id='6' width='848'  height='480'  format='RGBA_8888' framerate='30'/>
157                <stream id='7' width='640'  height='360'  format='RGBA_8888' framerate='30'/>
158                <stream id='8' width='480'  height='270'  format='RGBA_8888' framerate='30'/>
159                <stream id='9' width='160'  height='120'  format='RGBA_8888' framerate='30'/>
160            </caps>
161
162            <!-- list of parameters -->
163            <characteristics>
164                <!-- Lens distortion information. See
165                     https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#LENS_DISTORTION
166                -->
167                <parameter
168                    name='LENS_DISTORTION'
169                    type='float'
170                    size='5'
171                    value='0.0,0.0,0.0,0.0,0.0'
172                />
173
174                <!-- Camera intrinsic calibration matrix. See
175                     https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#LENS_INTRINSIC_CALIBRATION
176                -->
177                <parameter
178                    name='LENS_INTRINSIC_CALIBRATION'
179                    type='float'
180                    size='5'
181                    value='0.0,0.0,0.0,0.0,0.0'
182                />
183
184                <!-- Camera pose translation and rotation.  See
185                     https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#LENS_POSE_TRANSLATION
186                     https://developer.android.com/reference/android/hardware/camera2/CameraCharacteristics.html#LENS_POSE_ROTATION
187                -->
188                <parameter
189                    name='LENS_POSE_TRANSLATION'
190                    type='float'
191                    size='3'
192                    value='0.0,0.0,0.0'
193                />
194                <parameter
195                    name='LENS_POSE_ROTATION'
196                    type='float'
197                    size='4'
198                    value='0.0,0.0,0.0,0.0'
199                />
200            </characteristics>
201        </device>
202
203        <!-- vivid emulated video devices -->
204        <device id='/dev/video10' position='rear'>
205            <caps>
206                <!-- list of supported controls -->
207                <supported_controls>
208                    <control name='BRIGHTNESS' min='0' max='255'/>
209                    <control name='CONTRAST' min='0' max='255'/>
210                    <control name='AUTO_WHITE_BALANCE' min='0' max='1'/>
211                    <control name='WHITE_BALANCE_TEMPERATURE' min='2000' max='7500'/>
212                    <control name='SHARPNESS' min='0' max='255'/>
213                    <control name='AUTO_FOCUS' min='0' max='1'/>
214                    <control name='ABSOLUTE_FOCUS' min='0' max='255' step='5'/>
215                    <control name='ABSOLUTE_ZOOM' min='100' max='400'/>
216                </supported_controls>
217
218                <!-- list of supported stream configurations -->
219                <!-- vivid webcam input support below three resolutions -->
220                <stream id='0' width='360' height='180' format='RGBA_8888' framerate='30'/>
221                <stream id='1' width='640' height='360' format='RGBA_8888' framerate='15'/>
222                <stream id='2' width='1280' height='720' format='RGBA_8888' framerate='5'/>
223            </caps>
224
225            <!-- list of parameters -->
226            <characteristics/>
227        </device>
228        <device id='/dev/video11' position='left'>
229            <caps>
230                <!-- list of supported controls -->
231                <supported_controls>
232                    <control name='BRIGHTNESS' min='0' max='255'/>
233                    <control name='CONTRAST' min='0' max='255'/>
234                    <control name='AUTO_WHITE_BALANCE' min='0' max='1'/>
235                    <control name='WHITE_BALANCE_TEMPERATURE' min='2000' max='7500'/>
236                    <control name='SHARPNESS' min='0' max='255'/>
237                    <control name='AUTO_FOCUS' min='0' max='1'/>
238                    <control name='ABSOLUTE_FOCUS' min='0' max='255' step='5'/>
239                    <control name='ABSOLUTE_ZOOM' min='100' max='400'/>
240                </supported_controls>
241
242                <!-- list of supported stream configurations -->
243                <!-- vivid webcam input support below three resolutions -->
244                <stream id='0' width='360' height='180' format='RGBA_8888' framerate='30'/>
245                <stream id='1' width='640' height='360' format='RGBA_8888' framerate='15'/>
246                <stream id='2' width='1280' height='720' format='RGBA_8888' framerate='5'/>
247            </caps>
248
249            <!-- list of parameters -->
250            <characteristics/>
251        </device>
252        <device id='/dev/video12' position='right'>
253            <caps>
254                <!-- list of supported controls -->
255                <supported_controls>
256                    <control name='BRIGHTNESS' min='0' max='255'/>
257                    <control name='CONTRAST' min='0' max='255'/>
258                    <control name='AUTO_WHITE_BALANCE' min='0' max='1'/>
259                    <control name='WHITE_BALANCE_TEMPERATURE' min='2000' max='7500'/>
260                    <control name='SHARPNESS' min='0' max='255'/>
261                    <control name='AUTO_FOCUS' min='0' max='1'/>
262                    <control name='ABSOLUTE_FOCUS' min='0' max='255' step='5'/>
263                    <control name='ABSOLUTE_ZOOM' min='100' max='400'/>
264                </supported_controls>
265
266                <!-- list of supported stream configurations -->
267                <!-- vivid webcam input support below three resolutions -->
268                <stream id='0' width='360' height='180' format='RGBA_8888' framerate='30'/>
269                <stream id='1' width='640' height='360' format='RGBA_8888' framerate='15'/>
270                <stream id='2' width='1280' height='720' format='RGBA_8888' framerate='5'/>
271            </caps>
272
273            <!-- list of parameters -->
274            <characteristics/>
275        </device>
276        <device id='/dev/video13' position='front'>
277            <caps>
278                <!-- list of supported controls -->
279                <supported_controls>
280                    <control name='BRIGHTNESS' min='0' max='255'/>
281                    <control name='CONTRAST' min='0' max='255'/>
282                    <control name='AUTO_WHITE_BALANCE' min='0' max='1'/>
283                    <control name='WHITE_BALANCE_TEMPERATURE' min='2000' max='7500'/>
284                    <control name='SHARPNESS' min='0' max='255'/>
285                    <control name='AUTO_FOCUS' min='0' max='1'/>
286                    <control name='ABSOLUTE_FOCUS' min='0' max='255' step='5'/>
287                    <control name='ABSOLUTE_ZOOM' min='100' max='400'/>
288                </supported_controls>
289
290                <!-- list of supported stream configurations -->
291                <!-- vivid webcam input support below three resolutions -->
292                <stream id='0' width='360' height='180' format='RGBA_8888' framerate='30'/>
293                <stream id='1' width='640' height='360' format='RGBA_8888' framerate='15'/>
294                <stream id='2' width='1280' height='720' format='RGBA_8888' framerate='5'/>
295            </caps>
296
297            <!-- list of parameters -->
298            <characteristics/>
299        </device>
300    </camera>
301
302    <!-- display device starts -->
303    <display>
304        <device id='display0' position='driver'>
305            <caps>
306                <!-- list of supported inpu stream configurations -->
307                <stream id='0' width='1280' height='720' format='RGBA_8888' framerate='30'/>
308            </caps>
309        </device>
310    </display>
311</configuration>
312
313