blob: e3a1382f4039bfb0d3a3a85005c08983ecaf0f7f [file] [log] [blame]
Scott Randolph5c99d852016-11-15 17:01:23 -08001/*
2 * Copyright (C) 2016 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 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.hardware.evs@1.0;
18
19import types;
20import IEvsCamera;
21import IEvsDisplay;
22
23
24/**
25 * Provides the mechanism for EVS camera discovery
26 */
27interface IEvsEnumerator {
28
29 /**
30 * Returns a list of all EVS cameras available to the system
31 */
32 getCameraList() generates (vec<CameraDesc> cameras);
33
34
35 /**
36 * Get the IEvsCamera associated with a cameraId from a CameraDesc
37 *
38 * Given a camera's unique cameraId from ca CameraDesc, returns
39 * the ICamera interface assocaited with the specified camera.
40 * When done using the camera, it must be returned by calling
41 * closeCamera on the ICamera interface.
42 */
43 openCamera(string cameraId) generates (IEvsCamera carCamera);
44
45 /**
46 * Return the specified IEvsCamera interface as no longer in use
47 *
48 * When the IEvsCamera object is no longer required, it must be released.
49 * NOTE: Video streaming must be cleanly stopped before making this call.
50 */
51 closeCamera(IEvsCamera carCamera);
52
53
54 /**
55 * Get exclusive access to IEvsDisplay for the system
56 *
57 * There can be at most one EVS display object for the system and this function
58 * requests access to it. If the EVS display is not available or is already in use,
59 * a null pointer is returned.
60 */
61 openDisplay() generates (IEvsDisplay display);
62
63 /**
64 * Return the specified IEvsDisplay interface as no longer in use
65 *
66 * When the IEvsDisplay object is no longer required, it must be released.
67 * NOTE: All buffer must have been returned to the display before making this call.
68 */
69 closeDisplay(IEvsDisplay display);
70};
71