Merge "Camera: Allow 3% ISO tolerance during ISO burst VTS" into pi-dev am: 8216f3df07
am: b76a4d93e4
Change-Id: I181493d25e2e17f10ea89a35371faf3b5a67d713
This commit is contained in:
commit
863a1a67d5
1 changed files with 3 additions and 1 deletions
|
@ -3643,6 +3643,7 @@ TEST_F(CameraHidlTest, processCaptureRequestBurstISO) {
|
|||
static_cast<int32_t>(PixelFormat::IMPLEMENTATION_DEFINED)};
|
||||
uint64_t bufferId = 1;
|
||||
uint32_t frameNumber = 1;
|
||||
float isoTol = .03f;
|
||||
::android::hardware::hidl_vec<uint8_t> settings;
|
||||
|
||||
for (const auto& name : cameraDeviceNames) {
|
||||
|
@ -3772,7 +3773,8 @@ TEST_F(CameraHidlTest, processCaptureRequestBurstISO) {
|
|||
ASSERT_TRUE(inflightReqs[i].collectedResult.exists(ANDROID_SENSOR_SENSITIVITY));
|
||||
camera_metadata_entry_t isoResult = inflightReqs[i].collectedResult.find(
|
||||
ANDROID_SENSOR_SENSITIVITY);
|
||||
ASSERT_TRUE(isoResult.data.i32[0] == isoValues[i]);
|
||||
ASSERT_TRUE(std::abs(isoResult.data.i32[0] - isoValues[i]) <=
|
||||
std::round(isoValues[i]*isoTol));
|
||||
}
|
||||
|
||||
ret = session->close();
|
||||
|
|
Loading…
Reference in a new issue