Home
last modified time | relevance | path

Searched refs:props (Results 1 – 25 of 88) sorted by relevance

1234

/cts/apps/CameraITS/pymodules/its/
Dcaps.py40 def full_or_better(props): argument
49 return props.has_key("android.info.supportedHardwareLevel") and \
50 props["android.info.supportedHardwareLevel"] != 2 and \
51 props["android.info.supportedHardwareLevel"] >= 1
53 def level3(props): argument
62 return props.has_key("android.info.supportedHardwareLevel") and \
63 props["android.info.supportedHardwareLevel"] == 3
65 def full(props): argument
74 return props.has_key("android.info.supportedHardwareLevel") and \
75 props["android.info.supportedHardwareLevel"] == 1
[all …]
Dobjects.py74 sensitivity, exp_time, f_distance = 0.0, linear_tonemap=False, props=None): argument
114 assert(props is not None)
116 if 0 in props["android.tonemap.availableToneMapModes"]:
123 elif 3 in props["android.tonemap.availableToneMapModes"]:
144 def fastest_auto_capture_request(props): argument
155 turn_slow_filters_off(props, req)
159 def get_available_output_sizes(fmt, props, max_size=None, match_ar_size=None): argument
178 configs = props['android.scaler.streamConfigurationMap']\
194 def set_filter_off_or_fast_if_possible(props, req, available_modes, filter): argument
206 if props.has_key(available_modes):
[all …]
/cts/apps/CameraITS/tests/scene0/
Dtest_camera_properties.py25 props = cam.get_camera_properties()
27 pprint.pprint(props)
29 its.caps.skip_unless(its.caps.manual_sensor(props))
32 assert(props.has_key('android.sensor.info.sensitivityRange'))
33 assert(props.has_key('android.sensor.orientation'))
34 assert(props.has_key('android.scaler.streamConfigurationMap'))
35 assert(props.has_key('android.lens.facing'))
37 print "JPG sizes:", its.objects.get_available_output_sizes("jpg", props)
38 print "RAW sizes:", its.objects.get_available_output_sizes("raw", props)
39 print "YUV sizes:", its.objects.get_available_output_sizes("yuv", props)
Dtest_metadata.py28 global md, props, failed
33 props = cam.get_camera_properties()
39 print " Legacy:", its.caps.legacy(props)
40 print " Limited:", its.caps.limited(props)
41 print " Full or better:", its.caps.full_or_better(props)
43 print " Manual sensor:", its.caps.manual_sensor(props)
44 print " Manual post-proc:", its.caps.manual_post_proc(props)
45 print " Raw:", its.caps.raw(props)
46 print " Sensor fusion:", its.caps.sensor_fusion(props)
52 manual_sensor = its.caps.manual_sensor(props)
[all …]
Dtest_test_patterns.py34 def check_solid_color(cap, props): argument
44 r, gr, gb, b = its.image.convert_capture_to_planes(cap, props)
53 white_level = int(props['android.sensor.info.whiteLevel'])
59 def check_color_bars(cap, props, mirror=False): argument
75 img = its.image.convert_capture_to_rgb_image(cap, props=props)
89 def check_pattern(cap, props, pattern): argument
102 return check_solid_color(cap, props)
105 striped = check_color_bars(cap, props, mirror=False)
108 striped = check_color_bars(cap, props, mirror=True)
116 def test_test_patterns(cam, props, af_fd): argument
[all …]
Dtest_param_sensitivity_burst.py32 props = cam.get_camera_properties()
33 its.caps.skip_unless(its.caps.manual_sensor(props) and
34 its.caps.per_frame_control(props))
36 sens_range = props['android.sensor.info.sensitivityRange']
39 e = min(props['android.sensor.info.exposureTimeRange'])
41 _, fmt = its.objects.get_fastest_manual_capture_settings(props)
/cts/apps/CameraITS/tests/scene1/
Dtest_raw_sensitivity.py36 props = cam.get_camera_properties()
37 its.caps.skip_unless(its.caps.raw16(props) and
38 its.caps.manual_sensor(props) and
39 its.caps.read_3a(props) and
40 its.caps.per_frame_control(props) and
41 not its.caps.mono_camera(props))
45 sens_min, _ = props["android.sensor.info.sensitivityRange"]
47 sens_max = props["android.sensor.maxAnalogSensitivity"]
63 gr = its.image.convert_capture_to_planes(cap, props)[1]
66 img = its.image.convert_capture_to_rgb_image(cap, props=props)
[all …]
Dtest_raw_burst_sensitivity.py38 props = cam.get_camera_properties()
39 its.caps.skip_unless(its.caps.raw16(props) and
40 its.caps.manual_sensor(props) and
41 its.caps.read_3a(props) and
42 its.caps.per_frame_control(props) and
43 not its.caps.mono_camera(props))
47 sens_min, _ = props["android.sensor.info.sensitivityRange"]
49 sens_max = props["android.sensor.maxAnalogSensitivity"]
66 aax = props["android.sensor.info.activeArraySize"]["left"]
67 aay = props["android.sensor.info.activeArraySize"]["top"]
[all …]
Dtest_multi_camera_match.py37 props = cam.get_camera_properties()
38 its.caps.skip_unless(its.caps.compute_target_exposure(props) and
39 its.caps.per_frame_control(props) and
40 its.caps.logical_multi_camera(props) and
41 its.caps.raw16(props) and
42 its.caps.manual_sensor(props))
43 ids = its.caps.logical_multi_camera_physical_ids(props)
46 max_raw_size = its.objects.get_available_output_sizes('raw', props)[0]
69 img_raw = its.image.convert_capture_to_rgb_image(cap_raw, props=props)
76 cap_yuv1, props=props)
[all …]
Dtest_latching.py35 props = cam.get_camera_properties()
36 its.caps.skip_unless(its.caps.full_or_better(props))
38 _,fmt = its.objects.get_fastest_manual_capture_settings(props)
47 its.objects.manual_capture_request(s, e, 0.0, True, props),
48 its.objects.manual_capture_request(s, e, 0.0, True, props),
49 its.objects.manual_capture_request(s*2,e, 0.0, True, props),
50 its.objects.manual_capture_request(s*2,e, 0.0, True, props),
51 its.objects.manual_capture_request(s, e, 0.0, True, props),
52 its.objects.manual_capture_request(s, e, 0.0, True, props),
53 its.objects.manual_capture_request(s, e*2, 0.0, True, props),
[all …]
Dtest_yuv_plus_raw12.py31 props = cam.get_camera_properties()
32 its.caps.skip_unless(its.caps.compute_target_exposure(props) and
33 its.caps.raw12(props) and
34 its.caps.per_frame_control(props) and
35 not its.caps.mono_camera(props))
40 req = its.objects.manual_capture_request(s, e, 0.0, True, props)
43 its.objects.get_available_output_sizes("raw12", props)[0]
45 "yuv", props, (1920, 1080), max_raw12_size)[0]
57 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props)
Dtest_dng_noise_model.py43 props = cam.get_camera_properties()
44 its.caps.skip_unless(its.caps.raw(props) and
45 its.caps.raw16(props) and
46 its.caps.manual_sensor(props) and
47 its.caps.read_3a(props) and
48 its.caps.per_frame_control(props) and
49 not its.caps.mono_camera(props))
52 white_level = float(props['android.sensor.info.whiteLevel'])
53 cfa_idxs = its.image.get_canonical_cfa_order(props)
54 aax = props['android.sensor.info.activeArraySize']['left']
[all …]
Dtest_yuv_plus_raw.py31 props = cam.get_camera_properties()
32 its.caps.skip_unless(its.caps.compute_target_exposure(props) and
33 its.caps.raw16(props) and
34 its.caps.per_frame_control(props) and
35 not its.caps.mono_camera(props))
40 req = its.objects.manual_capture_request(s, e, 0.0, True, props)
45 max_raw_size = its.objects.get_available_output_sizes("raw", props)[0]
47 "yuv", props, (1920, 1080), max_raw_size)[0]
59 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props)
Dtest_yuv_plus_raw10.py31 props = cam.get_camera_properties()
32 its.caps.skip_unless(its.caps.compute_target_exposure(props) and
33 its.caps.raw10(props) and
34 its.caps.per_frame_control(props) and
35 not its.caps.mono_camera(props))
40 req = its.objects.manual_capture_request(s, e, 0.0, True, props)
46 props)[0]
48 "yuv", props, (1920, 1080), max_raw10_size)[0]
60 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props)
Dtest_raw_exposure.py41 props = cam.get_camera_properties()
42 its.caps.skip_unless(its.caps.raw16(props) and
43 its.caps.manual_sensor(props) and
44 its.caps.read_3a(props) and
45 its.caps.per_frame_control(props) and
46 not its.caps.mono_camera(props))
50 exp_min, exp_max = props["android.sensor.info.exposureTimeRange"]
51 sens_min, _ = props["android.sensor.info.sensitivityRange"]
53 sens_max = props["android.sensor.maxAnalogSensitivity"]
55 white_level = float(props["android.sensor.info.whiteLevel"])
[all …]
Dtest_capture_result.py36 props = cam.get_camera_properties()
37 its.caps.skip_unless(its.caps.manual_sensor(props) and
38 its.caps.manual_post_proc(props) and
39 its.caps.per_frame_control(props))
46 manual_exp_time = min(props['android.sensor.info.exposureTimeRange'])
47 manual_sensitivity = min(props['android.sensor.info.sensitivityRange'])
76 lsc_map_auto = test_auto(cam, props)
78 test_manual(cam, lsc_map_auto, props)
80 test_auto(cam, props)
104 def test_auto(cam, props): argument
[all …]
Dtest_exposure.py37 def get_raw_active_array_size(props): argument
39 aaw = (props['android.sensor.info.activeArraySize']['right'] -
40 props['android.sensor.info.activeArraySize']['left'])
41 aah = (props['android.sensor.info.activeArraySize']['bottom'] -
42 props['android.sensor.info.activeArraySize']['top'])
64 props = cam.get_camera_properties()
65 its.caps.skip_unless(its.caps.compute_target_exposure(props) and
66 its.caps.per_frame_control(props))
68 process_raw = (its.caps.compute_target_exposure(props) and
69 its.caps.per_frame_control(props) and
[all …]
Dtest_ev_compensation_advanced.py38 props = cam.get_camera_properties()
39 its.caps.skip_unless(its.caps.manual_sensor(props) and
40 its.caps.manual_post_proc(props) and
41 its.caps.per_frame_control(props) and
42 its.caps.ev_compensation(props))
44 mono_camera = its.caps.mono_camera(props)
46 largest_yuv = its.objects.get_largest_yuv_format(props)
51 fmt = its.objects.get_smallest_yuv_format(props, match_ar=match_ar)
53 ev_compensation_range = props['android.control.aeCompensationRange']
57 props['android.control.aeCompensationStep'])
Dtest_yuv_plus_dng.py27 props = cam.get_camera_properties()
28 its.caps.skip_unless(its.caps.raw(props) and
29 its.caps.read_3a(props))
30 mono_camera = its.caps.mono_camera(props)
36 its.objects.get_available_output_sizes("raw", props)[0]
38 "yuv", props, (1920, 1080), max_dng_size)[0]
Dtest_param_flash_mode.py31 props = cam.get_camera_properties()
32 its.caps.skip_unless(its.caps.compute_target_exposure(props) and
33 its.caps.flash(props) and
34 its.caps.per_frame_control(props))
45 largest_yuv = its.objects.get_largest_yuv_format(props)
50 fmt = its.objects.get_smallest_yuv_format(props, match_ar=match_ar)
54 req = its.objects.manual_capture_request(s, e, 0.0, True, props)
61 y, _, _ = its.image.convert_capture_to_planes(cap, props)
Dtest_post_raw_sensitivity_boost.py39 props = cam.get_camera_properties()
40 its.caps.skip_unless(its.caps.raw_output(props) and
41 its.caps.post_raw_sensitivity_boost(props) and
42 its.caps.compute_target_exposure(props) and
43 its.caps.per_frame_control(props) and
44 not its.caps.mono_camera(props))
47 "yuv", props, (1920, 1080))[0]
49 if its.caps.raw16(props):
51 elif its.caps.raw10(props):
53 elif its.caps.raw12(props):
[all …]
Dtest_locked_burst.py40 props = cam.get_camera_properties()
41 its.caps.skip_unless(its.caps.ae_lock(props) and
42 its.caps.awb_lock(props))
43 mono_camera = its.caps.mono_camera(props)
49 fmt = its.objects.get_largest_yuv_format(props)
52 req = its.objects.fastest_auto_capture_request(props)
77 if its.caps.manual_sensor(props) else SPREAD_THRESH
Dtest_tonemap_sequence.py33 props = cam.get_camera_properties()
34 its.caps.skip_unless(its.caps.manual_sensor(props) and
35 its.caps.manual_post_proc(props) and
36 its.caps.per_frame_control(props) and
37 not its.caps.mono_camera(props))
40 largest_yuv = its.objects.get_largest_yuv_format(props)
45 fmt = its.objects.get_smallest_yuv_format(props, match_ar=match_ar)
52 req = its.objects.manual_capture_request(sens, exp_time, f_dist, True, props)
/cts/apps/CameraITS/tests/scene3/
Dtest_reprocess_edge_enhancement.py96 props = cam.get_camera_properties()
98 its.caps.skip_unless(its.caps.read_3a(props) and
99 its.caps.per_frame_control(props) and
100 its.caps.edge_mode(props, 0) and
101 (its.caps.yuv_reprocess(props) or
102 its.caps.private_reprocess(props)))
104 mono_camera = its.caps.mono_camera(props)
106 assert(its.caps.edge_mode(props, 3))
109 if (its.caps.yuv_reprocess(props)):
111 if (its.caps.private_reprocess(props)):
[all …]
/cts/apps/CameraITS/tests/sensor_fusion/
Dtest_multi_camera_frame_sync.py37 def _check_available_capabilities(props): argument
40 its.caps.compute_target_exposure(props),
41 its.caps.per_frame_control(props),
42 its.caps.logical_multi_camera(props),
43 its.caps.raw16(props),
44 its.caps.manual_sensor(props),
45 its.caps.sensor_fusion(props)])
104 props = cam.get_camera_properties()
107 its.caps.skip_unless(_check_available_capabilities(props))
111 ids = its.caps.logical_multi_camera_physical_ids(props)
[all …]

1234