Home
last modified time | relevance | path

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

123

/cts/apps/CameraITS/pymodules/its/
Dcaps.py39 def full_or_better(props): argument
48 return props.has_key("android.info.supportedHardwareLevel") and \
49 props["android.info.supportedHardwareLevel"] != 2 and \
50 props["android.info.supportedHardwareLevel"] >= 1
52 def level3(props): argument
61 return props.has_key("android.info.supportedHardwareLevel") and \
62 props["android.info.supportedHardwareLevel"] == 3
64 def full(props): argument
73 return props.has_key("android.info.supportedHardwareLevel") and \
74 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"]:
122 elif 3 in props["android.tonemap.availableToneMapModes"]:
142 def fastest_auto_capture_request(props): argument
153 turn_slow_filters_off(props, req)
157 def get_available_output_sizes(fmt, props, max_size=None, match_ar_size=None): argument
176 configs = props['android.scaler.streamConfigurationMap']\
192 def set_filter_off_or_fast_if_possible(props, req, available_modes, filter): argument
204 if props.has_key(available_modes):
[all …]
Dimage.py49 props=None): argument
65 assert(props is not None)
66 cap = unpack_raw10_capture(cap, props)
68 assert(props is not None)
69 cap = unpack_raw12_capture(cap, props)
78 assert(props is not None)
79 r,gr,gb,b = convert_capture_to_planes(cap, props)
80 return convert_raw_to_rgb_image(r,gr,gb,b, props, cap["metadata"])
103 def unpack_raw10_capture(cap, props): argument
153 def unpack_raw12_capture(cap, props): argument
[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)
53 manual_sensor = its.caps.manual_sensor(props)
[all …]
Dtest_param_sensitivity_burst.py30 props = cam.get_camera_properties()
31 its.caps.skip_unless(its.caps.manual_sensor(props) and
32 its.caps.per_frame_control(props))
34 sens_range = props['android.sensor.info.sensitivityRange']
37 e = min(props['android.sensor.info.exposureTimeRange'])
39 _,fmt = its.objects.get_fastest_manual_capture_settings(props)
/cts/apps/CameraITS/tests/scene1/
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_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 w_map = props["android.lens.info.shadingMapSize"]["width"]
77 h_map = props["android.lens.info.shadingMapSize"]["height"]
80 lsc_map_auto = test_auto(cam, w_map, h_map, props)
82 test_manual(cam, w_map, h_map, lsc_map_auto, props)
[all …]
Dtest_raw_sensitivity.py37 props = cam.get_camera_properties()
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))
44 sens_min, sens_max = props['android.sensor.info.sensitivityRange']
46 sens_max = props['android.sensor.maxAnalogSensitivity']
62 plane = its.image.convert_capture_to_planes(cap, props)[1]
67 img = its.image.convert_capture_to_rgb_image(cap, props=props)
Dtest_param_shading_mode.py37 props = cam.get_camera_properties()
39 its.caps.skip_unless(its.caps.per_frame_control(props) and
40 its.caps.lsc_map(props) and
41 its.caps.lsc_off(props))
43 assert(props.has_key("android.lens.info.shadingMapSize") and
44 props["android.lens.info.shadingMapSize"] != None)
47 assert(props.has_key("android.shading.availableModes") and
48 set(props["android.shading.availableModes"]) == set([0, 1, 2]))
50 num_map_gains = props["android.lens.info.shadingMapSize"]["width"] * \
51 props["android.lens.info.shadingMapSize"]["height"] * 4
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))
39 req = its.objects.manual_capture_request(s, e, 0.0, True, props)
42 its.objects.get_available_output_sizes("raw12", props)[0]
44 "yuv", props, (1920, 1080), max_raw12_size)[0]
56 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))
39 req = its.objects.manual_capture_request(s, e, 0.0, True, props)
42 its.objects.get_available_output_sizes("raw", props)[0]
44 "yuv", props, (1920, 1080), max_raw_size)[0]
56 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))
39 req = its.objects.manual_capture_request(s, e, 0.0, True, props)
42 its.objects.get_available_output_sizes("raw10", props)[0]
44 "yuv", props, (1920, 1080), max_raw10_size)[0]
56 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props)
Dtest_raw_burst_sensitivity.py39 props = cam.get_camera_properties()
40 its.caps.skip_unless(its.caps.raw16(props) and
41 its.caps.manual_sensor(props) and
42 its.caps.read_3a(props) and
43 its.caps.per_frame_control(props))
46 sens_min, sens_max = props['android.sensor.info.sensitivityRange']
48 sens_max = props['android.sensor.maxAnalogSensitivity']
69 plane = its.image.convert_capture_to_planes(cap, props)[1]
74 img = its.image.convert_capture_to_rgb_image(cap, props=props)
Dtest_dng_noise_model.py42 props = cam.get_camera_properties()
43 its.caps.skip_unless(its.caps.raw(props) and
44 its.caps.raw16(props) and
45 its.caps.manual_sensor(props) and
46 its.caps.read_3a(props) and
47 its.caps.per_frame_control(props))
49 white_level = float(props['android.sensor.info.whiteLevel'])
50 cfa_idxs = its.image.get_canonical_cfa_order(props)
53 sens_min, sens_max = props['android.sensor.info.sensitivityRange']
79 plane = its.image.convert_capture_to_planes(cap, props)[ch]
[all …]
Dtest_reprocess_noise_reduction.py45 props = cam.get_camera_properties()
47 its.caps.skip_unless(its.caps.compute_target_exposure(props) and
48 its.caps.per_frame_control(props) and
49 its.caps.noise_reduction_mode(props, 0) and
50 (its.caps.yuv_reprocess(props) or
51 its.caps.private_reprocess(props)))
54 assert(its.caps.noise_reduction_mode(props, 4))
57 if (its.caps.yuv_reprocess(props)):
59 if (its.caps.private_reprocess(props)):
75 size = its.objects.get_available_output_sizes("jpg", props)[0]
[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))
46 fmt = its.objects.get_largest_yuv_format(props)
48 fmt = its.objects.get_smallest_yuv_format(props)
50 ev_compensation_range = props['android.control.aeCompensationRange']
54 props['android.control.aeCompensationStep'])
Dtest_param_flash_mode.py28 props = cam.get_camera_properties()
29 its.caps.skip_unless(its.caps.compute_target_exposure(props) and
30 its.caps.flash(props) and
31 its.caps.per_frame_control(props))
42 fmt = its.objects.get_largest_yuv_format(props)
44 fmt = its.objects.get_smallest_yuv_format(props)
48 req = its.objects.manual_capture_request(s, e, 0.0, True, 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))
46 "yuv", props, (1920, 1080))[0]
48 if its.caps.raw16(props):
50 elif its.caps.raw10(props):
52 elif its.caps.raw12(props):
60 sens_min, sens_max = props['android.sensor.info.sensitivityRange']
[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))
50 fmt = its.objects.get_largest_yuv_format(props)
52 fmt = its.objects.get_smallest_yuv_format(props)
55 req = its.objects.fastest_auto_capture_request(props)
80 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))
40 fmt = its.objects.get_largest_yuv_format(props)
42 fmt = its.objects.get_smallest_yuv_format(props)
49 req = its.objects.manual_capture_request(sens, exp_time, f_dist, True, props)
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))
35 its.objects.get_available_output_sizes("raw", props)[0]
37 "yuv", props, (1920, 1080), max_dng_size)[0]
Dtest_black_white.py34 props = cam.get_camera_properties()
35 its.caps.skip_unless(its.caps.manual_sensor(props) and
36 its.caps.per_frame_control(props))
40 fmt = its.objects.get_largest_yuv_format(props)
42 fmt = its.objects.get_smallest_yuv_format(props)
43 expt_range = props['android.sensor.info.exposureTimeRange']
44 sens_range = props['android.sensor.info.sensitivityRange']
Dtest_jpeg.py31 props = cam.get_camera_properties()
32 its.caps.skip_unless(its.caps.compute_target_exposure(props) and
33 its.caps.per_frame_control(props))
36 req = its.objects.manual_capture_request(s, e, 0.0, True, props)
39 size = its.objects.get_available_output_sizes("yuv", props)[0]
48 size = its.objects.get_available_output_sizes("jpg", props)[0]
/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)))
105 assert(its.caps.edge_mode(props, 3))
108 if (its.caps.yuv_reprocess(props)):
110 if (its.caps.private_reprocess(props)):
113 size = its.objects.get_available_output_sizes("jpg", props)[0]
[all …]

123