commit | 2bfffde8b33444cd5b4a0d32128cfdebdf0c8003 | [log] [tgz] |
---|---|---|
author | Shuzhen Wang <shuzhenwang@google.com> | Wed Jul 11 14:00:29 2018 -0700 |
committer | Shuzhen Wang <shuzhenwang@google.com> | Tue Aug 14 08:07:36 2018 -0700 |
tree | 912dc697eaa62ef289bf93c45c767e2c20bc06f6 | |
parent | 8be94e995403a65724c5a75e3084bc41eb69fb22 [diff] [blame] |
Camera: Use physical camera's capability for physical stream check If stream being created is a physical stream, the size check should be against the physical stream's capability. Test: Camera CTS Bug: 111288509 Change-Id: Iad8814562694f16f16d9656ec482b8b21a859c44 Merged-In: Iad8814562694f16f16d9656ec482b8b21a859c44
diff --git a/services/camera/libcameraservice/common/CameraDeviceBase.h b/services/camera/libcameraservice/common/CameraDeviceBase.h index 0ba7403..98c1b5e 100644 --- a/services/camera/libcameraservice/common/CameraDeviceBase.h +++ b/services/camera/libcameraservice/common/CameraDeviceBase.h
@@ -69,6 +69,10 @@ * The device's static characteristics metadata buffer */ virtual const CameraMetadata& info() const = 0; + /** + * The physical camera device's static characteristics metadata buffer + */ + virtual const CameraMetadata& info(const String8& physicalId) const = 0; struct PhysicalCameraSettings { std::string cameraId;