Eino-Ville Talvala | d09e565 | 2017-08-21 14:50:28 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 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.camera.device@3.3; |
| 18 | |
| 19 | import android.hardware.camera.common@1.0::Status; |
| 20 | import android.hardware.camera.device@3.2::ICameraDeviceSession; |
| 21 | import android.hardware.camera.device@3.2::StreamConfiguration; |
| 22 | |
| 23 | /** |
| 24 | * Camera device active session interface. |
| 25 | * |
| 26 | * Obtained via ICameraDevice::open(), this interface contains the methods to |
| 27 | * configure and request captures from an active camera device. |
| 28 | * |
| 29 | */ |
| 30 | interface ICameraDeviceSession extends @3.2::ICameraDeviceSession { |
| 31 | |
| 32 | /** |
| 33 | * configureStreams_3_3: |
| 34 | * |
| 35 | * Identical to @3.2::ICameraDeviceSession.configureStreams, except that: |
| 36 | * |
| 37 | * - The output HalStreamConfiguration now contains an overrideDataspace |
| 38 | * field, to be used by the HAL to select a different dataspace for some |
| 39 | * use cases when dealing with the IMPLEMENTATION_DEFINED pixel format. |
| 40 | * |
| 41 | * Clients may invoke either this method or |
| 42 | * @3.2::ICameraDeviceSession.configureStreams() for stream configuration. |
| 43 | * This method is recommended for clients to use since it provides more |
| 44 | * flexibility. |
| 45 | */ |
| 46 | configureStreams_3_3(StreamConfiguration requestedConfiguration) |
| 47 | generates (Status status, |
| 48 | @3.3::HalStreamConfiguration halConfiguration); |
| 49 | |
| 50 | }; |