1 /*
2  * Copyright 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 
17 package androidx.camera.extensions.impl.advanced;
18 
19 import android.annotation.SuppressLint;
20 import android.hardware.camera2.CaptureRequest;
21 
22 import java.util.List;
23 import java.util.Map;
24 
25 /**
26  * A config representing a {@link android.hardware.camera2.params.SessionConfiguration}
27  */
28 @SuppressLint("UnknownNullness")
29 public interface Camera2SessionConfigImpl {
30     /**
31      * Returns all the {@link Camera2OutputConfigImpl}s that will be used to create
32      * {@link android.hardware.camera2.params.OutputConfiguration}.
33      */
getOutputConfigs()34     List<Camera2OutputConfigImpl> getOutputConfigs();
35 
36     /**
37      * Gets all the parameters to create the session parameters with.
38      */
getSessionParameters()39     Map<CaptureRequest.Key<?>, Object> getSessionParameters();
40 
41     /**
42      * Gets the template id used for creating {@link CaptureRequest}s to be passed in
43      * {@link android.hardware.camera2.params.SessionConfiguration#setSessionParameters}.
44      */
getSessionTemplateId()45     int getSessionTemplateId();
46 }
47