summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'camera/device/3.3/default/include/convert.h')
-rw-r--r--camera/device/3.3/default/include/convert.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/camera/device/3.3/default/include/convert.h b/camera/device/3.3/default/include/convert.h
new file mode 100644
index 00000000..23bb7979
--- /dev/null
+++ b/camera/device/3.3/default/include/convert.h
@@ -0,0 +1,49 @@
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
29namespace android {
30namespace hardware {
31namespace camera {
32namespace device {
33namespace V3_3 {
34namespace implementation {
35
36using ::android::hardware::camera::device::V3_2::implementation::Camera3Stream;
37
38void convertToHidl(const Camera3Stream* src, HalStream* dst);
39
40void 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_