aboutsummaryrefslogtreecommitdiff
path: root/apps/CameraITS/tests/scene1/test_crop_region_raw.py
diff options
context:
space:
mode:
Diffstat (limited to 'apps/CameraITS/tests/scene1/test_crop_region_raw.py')
-rw-r--r--apps/CameraITS/tests/scene1/test_crop_region_raw.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/CameraITS/tests/scene1/test_crop_region_raw.py b/apps/CameraITS/tests/scene1/test_crop_region_raw.py
index 6fd0732..94c8e2b 100644
--- a/apps/CameraITS/tests/scene1/test_crop_region_raw.py
+++ b/apps/CameraITS/tests/scene1/test_crop_region_raw.py
@@ -13,6 +13,7 @@
# limitations under the License.
import its.image
+import its.caps
import its.device
import its.objects
import its.target
@@ -28,6 +29,11 @@ def main():
with its.device.ItsSession() as cam:
props = cam.get_camera_properties()
+ if (not its.caps.compute_target_exposure(props) or
+ not its.caps.raw16(props)):
+ print "Test skipped"
+ return
+
a = props['android.sensor.info.activeArraySize']
ax, ay = a["left"], a["top"]
aw, ah = a["right"] - a["left"], a["bottom"] - a["top"]