blob: e8e39513b5527cb14885ca99ac62c9d1e4e485b4 [file] [log] [blame]
Shuzhen Wang82e36b32017-11-28 17:00:43 -08001/*
2 * Copyright (C) 2018 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_4_DEFAULT_INCLUDE_CONVERT_H_
18#define HARDWARE_INTERFACES_CAMERA_DEVICE_V3_4_DEFAULT_INCLUDE_CONVERT_H_
19
20#include <android/hardware/camera/device/3.4/types.h>
21#include "hardware/camera3.h"
22#include "../../3.3/default/include/convert.h"
23
24namespace android {
25namespace hardware {
26namespace camera {
27namespace device {
28namespace V3_4 {
29namespace implementation {
30
31using ::android::hardware::camera::device::V3_2::implementation::Camera3Stream;
32
33void convertToHidl(const Camera3Stream* src, HalStream* dst);
34
35void convertToHidl(const camera3_stream_configuration_t& src, HalStreamConfiguration* dst);
36
37void convertFromHidl(const Stream &src, Camera3Stream* dst);
38
39} // namespace implementation
40} // namespace V3_4
41} // namespace device
42} // namespace camera
43} // namespace hardware
44} // namespace android
45
46#endif // HARDWARE_INTERFACES_CAMERA_DEVICE_V3_4_DEFAULT_INCLUDE_CONVERT_H_