Changyeon Jo | 2400b69 | 2019-07-18 21:32:48 -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 @1.0::IEvsCamera; |
| 20 | import @1.0::EvsResult; |
| 21 | import IEvsCameraStream; |
| 22 | |
| 23 | /** |
| 24 | * Represents a single camera and is the primary interface for capturing images. |
| 25 | */ |
| 26 | interface IEvsCamera extends @1.0::IEvsCamera { |
| 27 | /** |
| 28 | * Requests to pause EVS camera stream events. |
| 29 | * |
| 30 | * Like stopVideoStream(), events may continue to arrive for some time |
| 31 | * after this call returns. Delivered frame buffers must be returned. |
| 32 | * |
| 33 | * @return result EvsResult::OK is returned if this call is successful. |
| 34 | */ |
| 35 | pauseVideoStream() generates (EvsResult result); |
| 36 | |
| 37 | /** |
| 38 | * Requests to resume EVS camera stream. |
| 39 | * |
| 40 | * @return result EvsResult::OK is returned if this call is successful. |
| 41 | */ |
| 42 | resumeVideoStream() generates (EvsResult result); |
| 43 | |
| 44 | /** |
| 45 | * Returns a frame that was delivered by to the IEvsCameraStream. |
| 46 | * |
| 47 | * When done consuming a frame delivered to the IEvsCameraStream |
| 48 | * interface, it must be returned to the IEvsCamera for reuse. |
| 49 | * A small, finite number of buffers are available (possibly as small |
| 50 | * as one), and if the supply is exhausted, no further frames may be |
| 51 | * delivered until a buffer is returned. |
| 52 | * |
| 53 | * @param buffer A buffer to be returned. |
| 54 | * @return result Return EvsResult::OK if this call is successful. |
| 55 | */ |
| 56 | doneWithFrame_1_1(BufferDesc buffer) generates (EvsResult result); |
| 57 | }; |