Home
last modified time | relevance | path

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

1234

/cts/apps/CameraITS/pymodules/its/
Dcaps.py44 def full_or_better(props): argument
53 return props.has_key("android.info.supportedHardwareLevel") and \
54 props["android.info.supportedHardwareLevel"] != 2 and \
55 props["android.info.supportedHardwareLevel"] >= 1
57 def level3(props): argument
66 return props.has_key("android.info.supportedHardwareLevel") and \
67 props["android.info.supportedHardwareLevel"] == 3
69 def full(props): argument
78 return props.has_key("android.info.supportedHardwareLevel") and \
79 props["android.info.supportedHardwareLevel"] == 1
[all …]
Dobjects.py67 sensitivity, exp_time, f_distance = 0.0, linear_tonemap=False, props=None): argument
107 assert(props is not None)
109 if 0 in props["android.tonemap.availableToneMapModes"]:
116 elif 3 in props["android.tonemap.availableToneMapModes"]:
137 def fastest_auto_capture_request(props): argument
148 turn_slow_filters_off(props, req)
152 def get_available_output_sizes(fmt, props, max_size=None, match_ar_size=None): argument
171 configs = props['android.scaler.streamConfigurationMap']\
187 def set_filter_off_or_fast_if_possible(props, req, available_modes, filter): argument
199 if props.has_key(available_modes):
[all …]
Dimage.py52 props=None): argument
68 assert(props is not None)
69 cap = unpack_raw10_capture(cap, props)
71 assert(props is not None)
72 cap = unpack_raw12_capture(cap, props)
81 assert(props is not None)
82 r,gr,gb,b = convert_capture_to_planes(cap, props)
83 return convert_raw_to_rgb_image(r,gr,gb,b, props, cap["metadata"])
111 def unpack_raw10_capture(cap, props): argument
165 def unpack_raw12_capture(cap, props): argument
[all …]
/cts/apps/CameraITS/tests/scene0/
Dtest_metadata.py28 global md, props, failed
33 props = cam.get_camera_properties()
34 props = cam.override_with_hidden_physical_camera_props(props)
35 its.caps.skip_unless(its.caps.backward_compatible(props))
41 print " Legacy:", its.caps.legacy(props)
42 print " Limited:", its.caps.limited(props)
43 print " Full or better:", its.caps.full_or_better(props)
45 print " Manual sensor:", its.caps.manual_sensor(props)
46 print " Manual post-proc:", its.caps.manual_post_proc(props)
47 print " Raw:", its.caps.raw(props)
[all …]
Dtest_test_patterns.py33 def check_solid_color(cap, props): argument
43 r, gr, gb, b = its.image.convert_capture_to_planes(cap, props)
52 white_level = int(props['android.sensor.info.whiteLevel'])
58 def check_color_bars(cap, props, mirror=False): argument
74 img = its.image.convert_capture_to_rgb_image(cap, props=props)
88 def check_pattern(cap, props, pattern): argument
101 return check_solid_color(cap, props)
104 striped = check_color_bars(cap, props, mirror=False)
107 striped = check_color_bars(cap, props, mirror=True)
115 def test_test_patterns(cam, props, af_fd): argument
[all …]
Dtest_unified_timestamps.py27 props = cam.get_camera_properties()
28 props = cam.override_with_hidden_physical_camera_props(props)
31 its.caps.skip_unless(its.caps.sensor_fusion(props) and
32 its.caps.backward_compatible(props))
35 if its.caps.manual_sensor(props):
36 req, fmt = its.objects.get_fastest_manual_capture_settings(props)
38 req, fmt = its.objects.get_fastest_auto_capture_settings(props)
Dtest_tonemap_curve.py119 def test_tonemap_curve(cam, props): argument
127 sens_min, _ = props['android.sensor.info.sensitivityRange']
128 exp = min(props['android.sensor.info.exposureTimeRange'])
136 cap_raw, props=props)
173 props = cam.get_camera_properties()
174 avail_patterns = props['android.sensor.availableTestPatternModes']
176 its.caps.skip_unless(its.caps.raw16(props) and
177 its.caps.manual_sensor(props) and
178 its.caps.per_frame_control(props) and
179 its.caps.manual_post_proc(props) and
[all …]
Dtest_burst_capture.py33 props = cam.get_camera_properties()
34 props = cam.override_with_hidden_physical_camera_props(props)
35 its.caps.skip_unless(its.caps.backward_compatible(props))
40 img = its.image.convert_capture_to_rgb_image(cap, props=props)
Dtest_read_write.py31 props = cam.get_camera_properties()
32 props = cam.override_with_hidden_physical_camera_props(props)
33 its.caps.skip_unless(its.caps.manual_sensor(props) and
34 its.caps.per_frame_control(props))
37 if its.caps.raw16(props):
40 sensor_exp_range = props['android.sensor.info.exposureTimeRange']
41 sens_range = props['android.sensor.info.sensitivityRange']
61 size = its.objects.get_available_output_sizes(fmt, props)[-1]
/cts/apps/CameraITS/tests/scene1_2/
Dtest_raw_sensitivity.py36 props = cam.get_camera_properties()
37 props = cam.override_with_hidden_physical_camera_props(props)
38 its.caps.skip_unless(its.caps.raw16(props) and
39 its.caps.manual_sensor(props) and
40 its.caps.read_3a(props) and
41 its.caps.per_frame_control(props) and
42 not its.caps.mono_camera(props))
46 sens_min, _ = props["android.sensor.info.sensitivityRange"]
48 sens_max = props["android.sensor.maxAnalogSensitivity"]
64 gr = its.image.convert_capture_to_planes(cap, props)[1]
[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.preCorrectionActiveArraySize"]["left"]
67 aay = props["android.sensor.info.preCorrectionActiveArraySize"]["top"]
[all …]
Dtest_raw_exposure.py43 props = cam.get_camera_properties()
44 props = cam.override_with_hidden_physical_camera_props(props)
45 its.caps.skip_unless(its.caps.raw16(props) and
46 its.caps.manual_sensor(props) and
47 its.caps.per_frame_control(props) and
48 not its.caps.mono_camera(props))
52 exp_min, exp_max = props["android.sensor.info.exposureTimeRange"]
53 sens_min, _ = props["android.sensor.info.sensitivityRange"]
55 sens_max = props["android.sensor.maxAnalogSensitivity"]
57 white_level = float(props["android.sensor.info.whiteLevel"])
[all …]
Dtest_yuv_plus_raw12.py33 props = cam.get_camera_properties()
34 its.caps.skip_unless(its.caps.compute_target_exposure(props) and
35 its.caps.raw12(props) and
36 its.caps.per_frame_control(props) and
37 not its.caps.mono_camera(props))
42 req = its.objects.manual_capture_request(s, e, 0.0, True, props)
45 its.objects.get_available_output_sizes("raw12", props)[0]
47 "yuv", props, (1920, 1080), max_raw12_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_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_post_raw_sensitivity_boost.py42 props = cam.get_camera_properties()
43 its.caps.skip_unless(its.caps.raw_output(props) and
44 its.caps.post_raw_sensitivity_boost(props) and
45 its.caps.compute_target_exposure(props) and
46 its.caps.per_frame_control(props) and
47 not its.caps.mono_camera(props))
50 'yuv', props, (1920, 1080))[0]
52 if its.caps.raw16(props):
54 elif its.caps.raw10(props):
56 elif its.caps.raw12(props):
[all …]
/cts/apps/CameraITS/tests/scene1_1/
Dtest_latching.py38 props = cam.get_camera_properties()
39 its.caps.skip_unless(its.caps.full_or_better(props))
41 _, fmt = its.objects.get_fastest_manual_capture_settings(props)
50 its.objects.manual_capture_request(s, e, 0.0, True, props),
51 its.objects.manual_capture_request(s, e, 0.0, True, props),
52 its.objects.manual_capture_request(s*2, e, 0.0, True, props),
53 its.objects.manual_capture_request(s*2, e, 0.0, True, props),
54 its.objects.manual_capture_request(s, e, 0.0, True, props),
55 its.objects.manual_capture_request(s, e, 0.0, True, props),
56 its.objects.manual_capture_request(s, e*2, 0.0, True, props),
[all …]
Dtest_capture_result.py35 props = cam.get_camera_properties()
36 its.caps.skip_unless(its.caps.manual_sensor(props) and
37 its.caps.manual_post_proc(props) and
38 its.caps.per_frame_control(props))
45 manual_exp_time = min(props["android.sensor.info.exposureTimeRange"])
46 manual_sensitivity = min(props["android.sensor.info.sensitivityRange"])
74 sync_latency = its.caps.sync_latency(props)
76 lsc_map_auto = test_auto(cam, props, sync_latency)
78 test_manual(cam, lsc_map_auto, props, sync_latency)
80 test_auto(cam, props, sync_latency)
[all …]
Dtest_dng_noise_model.py43 props = cam.get_camera_properties()
44 props = cam.override_with_hidden_physical_camera_props(props)
46 its.caps.raw(props) and
47 its.caps.raw16(props) and
48 its.caps.manual_sensor(props) and
49 its.caps.read_3a(props) and
50 its.caps.per_frame_control(props) and
51 not its.caps.mono_camera(props))
53 white_level = float(props['android.sensor.info.whiteLevel'])
54 cfa_idxs = its.image.get_canonical_cfa_order(props)
[all …]
Dtest_exposure.py75 def get_raw_active_array_size(props): argument
77 aaw = (props['android.sensor.info.preCorrectionActiveArraySize']['right'] -
78 props['android.sensor.info.preCorrectionActiveArraySize']['left'])
79 aah = (props['android.sensor.info.preCorrectionActiveArraySize']['bottom'] -
80 props['android.sensor.info.preCorrectionActiveArraySize']['top'])
102 props = cam.get_camera_properties()
103 props = cam.override_with_hidden_physical_camera_props(props)
104 its.caps.skip_unless(its.caps.compute_target_exposure(props))
105 sync_latency = its.caps.sync_latency(props)
106 process_raw = its.caps.raw16(props) and its.caps.manual_sensor(props)
[all …]
Dtest_ev_compensation_advanced.py34 props = cam.get_camera_properties()
35 its.caps.skip_unless(its.caps.manual_sensor(props) and
36 its.caps.manual_post_proc(props) and
37 its.caps.per_frame_control(props) and
38 its.caps.ev_compensation(props))
40 mono_camera = its.caps.mono_camera(props)
42 largest_yuv = its.objects.get_largest_yuv_format(props)
47 fmt = its.objects.get_smallest_yuv_format(props, match_ar=match_ar)
49 ev_compensation_range = props['android.control.aeCompensationRange']
53 props['android.control.aeCompensationStep'])
Dtest_multi_camera_match.py37 props = cam.get_camera_properties()
38 its.caps.skip_unless(its.caps.per_frame_control(props) and
39 its.caps.logical_multi_camera(props))
40 ids = its.caps.logical_multi_camera_physical_ids(props)
60 avail_fls = sorted(props['android.lens.info.availableFocalLengths'],
70 a = props['android.sensor.info.activeArraySize']
95 img = its.image.convert_capture_to_rgb_image(caps[i], props=props)
97 y, _, _ = its.image.convert_capture_to_planes(caps[i], props=props)
/cts/apps/CameraITS/tests/scene2_a/
Dtest_num_faces.py34 props = cam.get_camera_properties()
35 props = cam.override_with_hidden_physical_camera_props(props)
36 its.caps.skip_unless(its.caps.face_detect(props))
37 mono_camera = its.caps.mono_camera(props)
38 fd_modes = props['android.statistics.info.availableFaceDetectModes']
39 a = props['android.sensor.info.activeArraySize']
42 if its.caps.read_3a(props):
65 props=props)
/cts/apps/CameraITS/tests/scene3/
Dtest_reprocess_edge_enhancement.py117 props = cam.get_camera_properties()
119 its.caps.skip_unless(its.caps.read_3a(props) and
120 its.caps.per_frame_control(props) and
121 its.caps.edge_mode(props, 0) and
122 (its.caps.yuv_reprocess(props) or
123 its.caps.private_reprocess(props)))
129 mono_camera = its.caps.mono_camera(props)
131 assert its.caps.edge_mode(props, 3), "EE mode not available!"
134 if its.caps.yuv_reprocess(props):
136 if its.caps.private_reprocess(props):
[all …]
/cts/apps/CameraITS/tests/scene4/
Dtest_aspect_ratio_and_crop.py114 def find_raw_fov_reference(cam, req, props, debug): argument
137 props=props)
147 if its.caps.distortion_correction(props):
153 ical = np.array(props["android.lens.intrinsicCalibration"])
156 sensor_h = props["android.sensor.info.physicalSize"]["height"]
157 sensor_w = props["android.sensor.info.physicalSize"]["width"]
158 pixel_h = props["android.sensor.info.pixelArraySize"]["height"]
159 pixel_w = props["android.sensor.info.pixelArraySize"]["width"]
179 rad_dist = props["android.lens.distortion"]
209 def find_jpeg_fov_reference(cam, req, props): argument
[all …]

1234