aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorTimothy Knight <tknight@google.com>2014-10-11 17:22:30 -0700
committerTimothy Knight <tknight@google.com>2014-10-11 17:22:59 -0700
commit52a39ec7ff1331e573dc7b6ea6e3d10aa5dc376a (patch)
treea35d27793dfb14f714573a35220cdb439c4e0ca2 /apps
parent5de290fad9a990d5c552416dbf0df88c93e731b0 (diff)
downloadpdk-52a39ec7ff1331e573dc7b6ea6e3d10aa5dc376a.tar.gz
CameraITS: Made some scene0 tests faster
Change-Id: Ib11ddf9206d9168fc826118b5f2d832e7de9e8e6
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"