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 #ifndef HARDWARE_INTERFACES_CAMERA_DEVICE_V3_3_DEFAULT_INCLUDE_CONVERT_H_
18 
19 #define HARDWARE_INTERFACES_CAMERA_DEVICE_V3_3_DEFAULT_INCLUDE_CONVERT_H_
20 
21 #include <set>
22 
23 
24 #include <android/hardware/graphics/common/1.0/types.h>
25 #include <android/hardware/camera/device/3.3/types.h>
26 #include "hardware/camera3.h"
27 #include "../../3.2/default/include/convert.h"
28 
29 namespace android {
30 namespace hardware {
31 namespace camera {
32 namespace device {
33 namespace V3_3 {
34 namespace implementation {
35 
36 using ::android::hardware::camera::device::V3_2::implementation::Camera3Stream;
37 
38 void convertToHidl(const Camera3Stream* src, HalStream* dst);
39 
40 void convertToHidl(const camera3_stream_configuration_t& src, HalStreamConfiguration* dst);
41 
42 }  // namespace implementation
43 }  // namespace V3_3
44 }  // namespace device
45 }  // namespace camera
46 }  // namespace hardware
47 }  // namespace android
48 
49 #endif  // HARDWARE_INTERFACES_CAMERA_DEVICE_V3_3_DEFAULT_INCLUDE_CONVERT_H_
50