Changyeon Jo | c6fa0ab | 2019-10-12 05:25:44 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2019 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 | |
| 17 | package android.hardware.automotive.evs@1.1; |
| 18 | |
| 19 | import IEvsCamera; |
Changyeon Jo | 043a7a0 | 2020-01-02 17:55:55 -0800 | [diff] [blame^] | 20 | import IEvsDisplay; |
Changyeon Jo | c6fa0ab | 2019-10-12 05:25:44 -0700 | [diff] [blame] | 21 | import @1.0::IEvsEnumerator; |
| 22 | import @1.0::EvsResult; |
| 23 | import android.hardware.camera.device@3.2::Stream; |
| 24 | |
| 25 | /** |
| 26 | * Provides the mechanism for EVS camera discovery |
| 27 | */ |
| 28 | interface IEvsEnumerator extends @1.0::IEvsEnumerator { |
| 29 | /** |
| 30 | * Returns a list of all EVS cameras available to the system |
| 31 | * |
| 32 | * @return cameras A list of cameras availale for EVS service. |
| 33 | */ |
| 34 | getCameraList_1_1() generates (vec<CameraDesc> cameras); |
| 35 | |
| 36 | /** |
| 37 | * Gets the IEvsCamera associated with a cameraId from a CameraDesc |
| 38 | * |
| 39 | * Given a camera's unique cameraId from CameraDesc, returns the |
| 40 | * IEvsCamera interface associated with the specified camera. When |
| 41 | * done using the camera, the caller may release it by calling closeCamera(). |
| 42 | * |
| 43 | * @param cameraId A unique identifier of the camera. |
| 44 | * @param streamCfg A stream configuration the client wants to use. |
| 45 | * @return evsCamera EvsCamera object associated with a given cameraId. |
| 46 | * Returned object would be null if a camera device does |
| 47 | * not support a given stream configuration or is already |
| 48 | * configured differently by another client. |
| 49 | */ |
| 50 | openCamera_1_1(string cameraId, Stream streamCfg) generates (IEvsCamera evsCamera); |
Changyeon Jo | 8bcb492 | 2020-01-15 19:34:50 -0800 | [diff] [blame] | 51 | |
| 52 | /** |
| 53 | * Tells whether this is EVS manager or HAL implementation. |
| 54 | * |
| 55 | * @return result False for EVS manager implementations and true for all others. |
| 56 | */ |
| 57 | isHardware() generates (bool result); |
Changyeon Jo | 043a7a0 | 2020-01-02 17:55:55 -0800 | [diff] [blame^] | 58 | |
| 59 | /** |
| 60 | * Returns a list of all EVS displays available to the system |
| 61 | * |
| 62 | * @return displayIds Identifiers of available displays. |
| 63 | */ |
| 64 | getDisplayIdList() generates (vec<uint8_t> displayIds); |
| 65 | |
| 66 | /** |
| 67 | * Get exclusive access to IEvsDisplay for the system |
| 68 | * |
| 69 | * There can be more than one EVS display objects for the system and this function |
| 70 | * requests access to the display identified by a given ID. If the target EVS display |
| 71 | * is not available or is already in use the old instance shall be closed and give |
| 72 | * the new caller exclusive access. |
| 73 | * When done using the display, the caller may release it by calling closeDisplay(). |
| 74 | * |
| 75 | * @param id Target display identifier. |
| 76 | * @return display EvsDisplay object to be used. |
| 77 | */ |
| 78 | openDisplay_1_1(uint8_t id) generates (IEvsDisplay display); |
Changyeon Jo | c6fa0ab | 2019-10-12 05:25:44 -0700 | [diff] [blame] | 79 | }; |