aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/CameraITS/tests/scene0/test_capture_result_dump.py4
-rw-r--r--apps/CameraITS/tests/scene0/test_metadata.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/CameraITS/tests/scene0/test_capture_result_dump.py b/apps/CameraITS/tests/scene0/test_capture_result_dump.py
index 449314f..4fd5d4a 100644
--- a/apps/CameraITS/tests/scene0/test_capture_result_dump.py
+++ b/apps/CameraITS/tests/scene0/test_capture_result_dump.py
@@ -28,9 +28,9 @@ def main():
# Arbitrary capture request exposure values; image content is not
# important for this test, only the metadata.
props = cam.get_camera_properties()
- req,_ = its.objects.get_fastest_manual_capture_settings(props)
+ req,fmt = its.objects.get_fastest_manual_capture_settings(props)
req["android.statistics.lensShadingMapMode"] = 1
- cap = cam.do_capture(req, cam.CAP_YUV)
+ cap = cam.do_capture(req, fmt)
pprint.pprint(cap["metadata"])
# No pass/fail check; test passes if it completes.
diff --git a/apps/CameraITS/tests/scene0/test_metadata.py b/apps/CameraITS/tests/scene0/test_metadata.py
index 41abe90..ea5a301 100644
--- a/apps/CameraITS/tests/scene0/test_metadata.py
+++ b/apps/CameraITS/tests/scene0/test_metadata.py
@@ -32,8 +32,8 @@ def main():
# Arbitrary capture request exposure values; image content is not
# important for this test, only the metadata.
props = cam.get_camera_properties()
- req,_ = its.objects.get_fastest_manual_capture_settings(props)
- cap = cam.do_capture(req, cam.CAP_YUV)
+ req,fmt = its.objects.get_fastest_manual_capture_settings(props)
+ cap = cam.do_capture(req, fmt)
md = cap["metadata"]
print "Hardware level"