/cts/apps/CameraITS/pymodules/its/ |
D | caps.py | 39 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 …]
|
D | objects.py | 74 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 …]
|
D | image.py | 49 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/ |
D | test_camera_properties.py | 25 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)
|
D | test_metadata.py | 28 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 …]
|
D | test_param_sensitivity_burst.py | 30 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/ |
D | test_latching.py | 35 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 …]
|
D | test_capture_result.py | 36 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 …]
|
D | test_raw_sensitivity.py | 37 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)
|
D | test_param_shading_mode.py | 37 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
|
D | test_yuv_plus_raw12.py | 31 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)
|
D | test_yuv_plus_raw.py | 31 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)
|
D | test_yuv_plus_raw10.py | 31 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)
|
D | test_raw_burst_sensitivity.py | 39 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)
|
D | test_dng_noise_model.py | 42 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 …]
|
D | test_reprocess_noise_reduction.py | 45 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 …]
|
D | test_ev_compensation_advanced.py | 38 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'])
|
D | test_param_flash_mode.py | 28 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)
|
D | test_post_raw_sensitivity_boost.py | 39 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 …]
|
D | test_locked_burst.py | 40 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
|
D | test_tonemap_sequence.py | 33 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)
|
D | test_yuv_plus_dng.py | 27 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]
|
D | test_black_white.py | 34 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']
|
D | test_jpeg.py | 31 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/ |
D | test_reprocess_edge_enhancement.py | 96 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 …]
|