blob: c9d52ee21cef702e765e72d7520982d25719f61e [file] [log] [blame]
Shuzhen Wang25d67102020-12-04 12:57:09 -08001/*
2 * Copyright (C) 2021 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.camera.provider@2.7;
18
19import @2.6::ICameraProvider;
20import android.hardware.camera.common@1.0::Status;
21
22/**
23 * Camera provider HAL
24 *
25 * Adds support for the isConcurrentStreamCombinationSupported() with
26 * ICameraDevice@3.7::StreamConfiguration.
27 */
28interface ICameraProvider extends @2.6::ICameraProvider {
29 /**
30 * isConcurrentStreamCombinationSupported_2_7:
31 *
32 * Identical to @2.6::isConcurrentStreamCombinationSupported except that
33 * this function takes a vector of @3.7::StreamConfiguration.
34 *
35 * @param configs a vector of camera ids and their corresponding stream
36 * configurations that need to be queried for support.
37 *
38 * @return status Status code for the operation, one of:
39 * OK:
40 * On successful stream combination query.
41 * METHOD_NOT_SUPPORTED:
42 * The camera provider does not support stream combination query.
43 * INTERNAL_ERROR:
44 * The stream combination query cannot complete due to internal
45 * error.
46 * @return true in case the stream combination is supported, false otherwise.
47 *
48 */
49 isConcurrentStreamCombinationSupported_2_7(vec<CameraIdAndStreamCombination> configs)
50 generates (Status status, bool queryStatus);
51};