Home | History | Annotate | Download | only in include
      1 /*
      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 
     24 namespace android {
     25 namespace hardware {
     26 namespace camera {
     27 namespace device {
     28 namespace V3_4 {
     29 namespace implementation {
     30 
     31 using ::android::hardware::camera::device::V3_2::implementation::Camera3Stream;
     32 
     33 void convertToHidl(const Camera3Stream* src, HalStream* dst);
     34 
     35 void convertToHidl(const camera3_stream_configuration_t& src, HalStreamConfiguration* dst);
     36 
     37 void 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_
     47