mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 21:37:44 +00:00
Merge "Camera: Expect physical results in the last partial notification" am: cecee13161 am: f026f3e5fe am: 5bb754093a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1435036 Change-Id: Id31aef9259e8a30fb77bd22bd2bd9f8afddc726e
This commit is contained in:
@@ -1209,7 +1209,12 @@ bool CameraHidlTest::DeviceCb::processCaptureResultLocked(const CaptureResult& r
|
||||
return notify;
|
||||
}
|
||||
|
||||
if (physicalCameraMetadata.size() != request->expectedPhysicalResults.size()) {
|
||||
// Physical device results are only expected in the last/final
|
||||
// partial result notification.
|
||||
bool expectPhysicalResults = !(request->usePartialResult &&
|
||||
(results.partialResult < request->numPartialResults));
|
||||
if (expectPhysicalResults &&
|
||||
(physicalCameraMetadata.size() != request->expectedPhysicalResults.size())) {
|
||||
ALOGE("%s: Frame %d: Returned physical metadata count %zu "
|
||||
"must be equal to expected count %zu", __func__, frameNumber,
|
||||
physicalCameraMetadata.size(), request->expectedPhysicalResults.size());
|
||||
|
||||
Reference in New Issue
Block a user