aboutsummaryrefslogtreecommitdiff
path: root/apps/CameraITS/tests/scene1/test_yuv_plus_raw10.py
diff options
context:
space:
mode:
Diffstat (limited to 'apps/CameraITS/tests/scene1/test_yuv_plus_raw10.py')
-rw-r--r--apps/CameraITS/tests/scene1/test_yuv_plus_raw10.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/CameraITS/tests/scene1/test_yuv_plus_raw10.py b/apps/CameraITS/tests/scene1/test_yuv_plus_raw10.py
index 3ed860b..15612c5 100644
--- a/apps/CameraITS/tests/scene1/test_yuv_plus_raw10.py
+++ b/apps/CameraITS/tests/scene1/test_yuv_plus_raw10.py
@@ -13,6 +13,7 @@
# limitations under the License.
import its.image
+import its.caps
import its.device
import its.objects
import its.target
@@ -29,6 +30,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.raw10(props)):
+ print "Test skipped"
+ return
+
# Use a manual request with a linear tonemap so that the YUV and RAW
# should look the same (once converted by the its.image module).
e, s = its.target.get_target_exposure_combos(cam)["midExposureTime"]