blob: ac99fd5823219223dcd8c37ab3fc192c4c022d92 [file] [log] [blame]
Jayant Chowdhary2bbdce42020-01-12 14:55:41 -08001/*
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
25namespace android {
26namespace hardware {
27namespace camera2 {
28namespace utils {
29
30struct 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
40struct 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