[ITS] Enable non-debug mode to speed up tests.
bug: 34775295
Use lower resolution images for appropriate tests.
Don't save images for tests that run through all fmts.
Change-Id: I078e66fc690de0e9de8ee5131d18892bce843bf0
diff --git a/apps/CameraITS/pymodules/its/objects.py b/apps/CameraITS/pymodules/its/objects.py
index 9766ab9..a8b1535 100644
--- a/apps/CameraITS/pymodules/its/objects.py
+++ b/apps/CameraITS/pymodules/its/objects.py
@@ -264,6 +264,39 @@
return req, out_spec
+
+def get_smallest_yuv_format(props):
+ """Return a capture request and format spec for the smallest yuv size.
+
+ Args:
+ props: the object returned from its.device.get_camera_properties().
+
+ Returns:
+ fmt: an output format specification, for the smallest possible yuv
+ format for this device.
+ """
+ size = get_available_output_sizes("yuv", props)[-1]
+ fmt = {"format":"yuv", "width":size[0], "height":size[1]}
+
+ return fmt
+
+
+def get_largest_yuv_format(props):
+ """Return a capture request and format spec for the smallest yuv size.
+
+ Args:
+ props: the object returned from its.device.get_camera_properties().
+
+ Returns:
+ fmt: an output format specification, for the smallest possible yuv
+ format for this device.
+ """
+ size = get_available_output_sizes("yuv", props)[0]
+ fmt = {"format":"yuv", "width":size[0], "height":size[1]}
+
+ return fmt
+
+
def get_max_digital_zoom(props):
"""Returns the maximum amount of zooming possible by the camera device.