summaryrefslogtreecommitdiffstats
path: root/camera/camera2/OutputConfiguration.cpp
diff options
context:
space:
mode:
authorJayant Chowdhary <jchowdhary@google.com>2018-08-15 13:16:14 -0700
committerJayant Chowdhary <jchowdhary@google.com>2018-11-12 07:50:24 -0800
commitbe543d41191ab6354b32b446565c4f1b4c6f75f2 (patch)
tree7d52c2501f00e1f961e13edef8d2c7273f7c4c57 /camera/camera2/OutputConfiguration.cpp
parent158ce41988f3706465514265eed1d7e4b6fb123c (diff)
downloadframeworks_av-be543d41191ab6354b32b446565c4f1b4c6f75f2.tar.gz
frameworks_av-be543d41191ab6354b32b446565c4f1b4c6f75f2.tar.bz2
frameworks_av-be543d41191ab6354b32b446565c4f1b4c6f75f2.zip
cameraserver: Implement HIDL ICameraService skeleton.
Implement basic ICameraService HIDL functions, along with HIDL<=> AIDL type conversions. Bug: 110364143 Test: (build) mm -j64 Test: lshal->android.frameworks.cameraservice.service@2.0 shows up Test: Sanity-> click pictures using GCA. Change-Id: I44c2a96b1ccc05941d075e2bdeb94a8378d53c67 Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
Diffstat (limited to 'camera/camera2/OutputConfiguration.cpp')
-rw-r--r--camera/camera2/OutputConfiguration.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/camera/camera2/OutputConfiguration.cpp b/camera/camera2/OutputConfiguration.cpp
index feb04c24ed..321eb08bea 100644
--- a/camera/camera2/OutputConfiguration.cpp
+++ b/camera/camera2/OutputConfiguration.cpp
@@ -175,6 +175,12 @@ OutputConfiguration::OutputConfiguration(sp<IGraphicBufferProducer>& gbp, int ro
mIsShared = isShared;
}
+OutputConfiguration::OutputConfiguration(
+ const std::vector<sp<IGraphicBufferProducer>>& gbps,
+ int rotation, int surfaceSetID, int surfaceType, int width, int height, bool isShared)
+ : mGbps(gbps), mRotation(rotation), mSurfaceSetID(surfaceSetID), mSurfaceType(surfaceType),
+ mWidth(width), mHeight(height), mIsDeferred(false), mIsShared(isShared) { }
+
status_t OutputConfiguration::writeToParcel(android::Parcel* parcel) const {
if (parcel == nullptr) return BAD_VALUE;