1 /* 2 * Copyright (C) 2020 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 ANDROID_HARDWARE_CAMERA2_UTIL_CONCURRENTCAMERA_H 18 #define ANDROID_HARDWARE_CAMERA2_UTIL_CONCURRENTCAMERA_H 19 20 #include <binder/Parcel.h> 21 #include <binder/Parcelable.h> 22 #include <camera2/OutputConfiguration.h> 23 #include <camera2/SessionConfiguration.h> 24 25 namespace android { 26 namespace hardware { 27 namespace camera2 { 28 namespace utils { 29 30 struct ConcurrentCameraIdCombination : public Parcelable { 31 std::vector<std::string> mConcurrentCameraIds; 32 ConcurrentCameraIdCombination(); 33 ConcurrentCameraIdCombination(std::vector<std::string> &&combination); 34 virtual ~ConcurrentCameraIdCombination(); 35 36 virtual status_t writeToParcel(android::Parcel *parcel) const override; 37 virtual status_t readFromParcel(const android::Parcel* parcel) override; 38 }; 39 40 struct CameraIdAndSessionConfiguration : public Parcelable { 41 std::string mCameraId; 42 SessionConfiguration mSessionConfiguration; 43 44 CameraIdAndSessionConfiguration(); 45 virtual ~CameraIdAndSessionConfiguration(); 46 47 virtual status_t writeToParcel(android::Parcel *parcel) const override; 48 virtual status_t readFromParcel(const android::Parcel* parcel) override; 49 }; 50 51 } // namespace utils 52 } // namespace camera2 53 } // namespace hardware 54 } // namespace android 55 56 #endif 57