/cts/apps/CameraITS/pymodules/its/ |
D | image.py | 49 def convert_capture_to_rgb_image(cap, argument 65 w = cap["width"] 66 h = cap["height"] 67 if cap["format"] == "raw10": 69 cap = unpack_raw10_capture(cap, props) 70 if cap["format"] == "raw12": 72 cap = unpack_raw12_capture(cap, props) 73 if cap["format"] == "yuv": 74 y = cap["data"][0:w*h] 75 u = cap["data"][w*h:w*h*5/4] [all …]
|
/cts/apps/CameraITS/tests/inprog/ |
D | test_3a_remote.py | 43 cap = cam.do_capture(req) 45 ae_state = cap["metadata"]["android.control.aeState"] 46 awb_state = cap["metadata"]["android.control.awbState"] 47 af_state = cap["metadata"]["android.control.afState"] 48 gains = cap["metadata"]["android.colorCorrection.gains"] 49 transform = cap["metadata"]["android.colorCorrection.transform"] 50 exp_time = cap["metadata"]['android.sensor.exposureTime'] 55 foc_dist = cap["metadata"]['android.lens.focusDistance'] 56 foc_range = cap["metadata"]['android.lens.focusRange'] 62 print "AE region:", cap["metadata"]['android.control.aeRegions'] [all …]
|
D | test_black_level.py | 61 cap = cam.do_capture(req) 62 yimg,uimg,vimg = its.image.convert_capture_to_planes(cap) 63 w = cap["width"] 64 h = cap["height"]
|
D | test_crop_region.py | 58 for i,cap in enumerate(caps): 59 img = its.image.convert_capture_to_rgb_image(cap) 60 crop = cap["metadata"]['android.scaler.cropRegion']
|
/cts/apps/CameraITS/tests/scene2/ |
D | test_auto_per_frame_control.py | 34 def is_awb_af_stable(prev_cap, cap): argument 36 awb_gains_1 = cap['metadata']['android.colorCorrection.gains'] 38 ccm_1 = cap['metadata']['android.colorCorrection.transform'] 40 focus_distance_1 = cap['metadata']['android.lens.focusDistance'] 78 for i, cap in enumerate(caps): 80 y = its.image.convert_capture_to_planes(cap)[0] 84 ae_state = cap['metadata']['android.control.aeState'] 85 iso = cap['metadata']['android.sensor.sensitivity'] 86 isp_gain = cap['metadata']['android.control.postRawSensitivityBoost'] 87 exp_time = cap['metadata']['android.sensor.exposureTime'] [all …]
|
D | test_effects.py | 61 cap = cam.do_capture(req, fmt) 64 img = its.image.convert_capture_to_rgb_image(cap, props=props) 70 y, u, v = its.image.convert_capture_to_planes(cap, props) 88 _, u, v = its.image.convert_capture_to_planes(cap, props)
|
/cts/apps/CameraITS/tests/scene1/ |
D | test_yuv_jpeg_all.py | 49 cap = cam.do_capture(req, out_surface) 50 assert cap["format"] == "yuv" 51 assert cap["width"] == size[0] 52 assert cap["height"] == size[1] 53 print "Captured YUV %dx%d" % (cap["width"], cap["height"]), 54 img = its.image.convert_capture_to_rgb_image(cap) 64 cap = cam.do_capture(req, out_surface) 65 assert cap["format"] == "jpeg" 66 assert cap["width"] == size[0] 67 assert cap["height"] == size[1] [all …]
|
D | test_black_white.py | 53 cap = its.device.do_capture_with_latency(cam, req, sync_latency, fmt) 54 img = its.image.convert_capture_to_rgb_image(cap) 62 r_exp = cap["metadata"]["android.sensor.exposureTime"] 63 r_iso = cap["metadata"]["android.sensor.sensitivity"] 72 cap = its.device.do_capture_with_latency(cam, req, sync_latency, fmt) 73 img = its.image.convert_capture_to_rgb_image(cap) 81 r_exp = cap["metadata"]["android.sensor.exposureTime"] 82 r_iso = cap["metadata"]["android.sensor.sensitivity"]
|
D | test_ae_precapture_trigger.py | 56 for cap in caps: 57 assert(cap['metadata']['android.control.aeState'] == INACTIVE) 62 cap = cam.do_capture(auto_req, fmt) 63 state = cap['metadata']['android.control.aeState'] 69 cap = cam.do_capture(auto_req, fmt) 70 state = cap['metadata']['android.control.aeState']
|
D | test_raw_sensitivity.py | 63 cap = cam.do_capture(req, cam.CAP_RAW) 64 gr = its.image.convert_capture_to_planes(cap, props)[1] 67 img = its.image.convert_capture_to_rgb_image(cap, props=props) 77 cap = cam.do_capture(req, 81 _, var_image = its.image.unpack_rawstats_capture(cap)
|
D | test_jpeg.py | 43 cap = its.device.do_capture_with_latency( 45 img = its.image.convert_capture_to_rgb_image(cap) 53 cap = its.device.do_capture_with_latency( 55 img = its.image.decompress_jpeg_to_rgb_image(cap["data"])
|
D | test_channel_saturation.py | 50 cap = its.device.do_capture_with_latency(cam, req, sync_latency, fmt) 51 img = its.image.convert_capture_to_rgb_image(cap) 59 r_exp = cap['metadata']['android.sensor.exposureTime'] 60 r_iso = cap['metadata']['android.sensor.sensitivity']
|
D | test_param_flash_mode.py | 59 cap = its.device.do_capture_with_latency( 61 flash_modes_reported.append(cap['metadata']['android.flash.mode']) 62 flash_states_reported.append(cap['metadata']['android.flash.state']) 63 y, _, _ = its.image.convert_capture_to_planes(cap, props)
|
D | test_param_noise_reduction.py | 61 cap = cam.do_capture(req) 62 rgb_image = its.image.convert_capture_to_rgb_image(cap) 85 cap = cam.do_capture(req) 86 rgb_image = its.image.convert_capture_to_rgb_image(cap) 89 cap["metadata"]["android.noiseReduction.mode"])
|
D | test_dng_noise_model.py | 73 cap = cam.do_capture(req, cam.CAP_RAW) 74 planes = its.image.convert_capture_to_planes(cap, props) 75 s_read = cap['metadata']['android.sensor.sensitivity'] 79 noise_profile = cap['metadata']['android.sensor.noiseProfile'] 91 cap['metadata'])
|
D | test_tonemap_sequence.py | 57 cap = cam.do_capture(req, fmt) 58 img = its.image.convert_capture_to_rgb_image(cap) 66 cap = cam.do_capture(req, fmt) 67 img = its.image.convert_capture_to_rgb_image(cap)
|
D | test_param_tonemap_mode.py | 72 cap = cam.do_capture(req, fmt) 73 img = its.image.convert_capture_to_rgb_image(cap) 96 cap = cam.do_capture(req) 97 img = its.image.convert_capture_to_rgb_image(cap)
|
D | test_ev_compensation_advanced.py | 80 for cap in caps: 81 if cap['metadata']['android.control.aeState'] == LOCKED: 82 y = its.image.convert_capture_to_planes(cap)[0] 86 assert cap['metadata']['android.control.aeState'] == LOCKED
|
/cts/apps/CameraITS/tests/ |
D | tutorial.py | 69 cap = cam.do_capture(req) 73 print "Captured image width:", cap["width"] 74 print "Captured image height:", cap["height"] 75 pprint.pprint(cap["metadata"]) 78 rgbimg = its.image.convert_capture_to_rgb_image(cap) 83 yimg,uimg,vimg = its.image.convert_capture_to_planes(cap) 120 cap = cam.do_capture(req) 121 rgbimg = its.image.convert_capture_to_rgb_image(cap) 166 yimg,_,_ = its.image.convert_capture_to_planes(cap) 178 cap = cam.do_capture(req, cam.CAP_JPEG) [all …]
|
/cts/apps/CameraITS/tests/scene0/ |
D | test_test_patterns.py | 34 def check_solid_color(cap, props): argument 44 r, gr, gb, b = its.image.convert_capture_to_planes(cap, props) 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) 137 cap = cam.do_capture(req, fmt) 138 img = its.image.convert_capture_to_rgb_image(cap, props=props) [all …]
|
D | test_unified_timestamps.py | 38 cap = cam.do_capture(req, fmt) 39 ts_image0 = cap['metadata']['android.sensor.timestamp'] 56 cap = cam.do_capture(req, fmt) 57 ts_image1 = cap['metadata']['android.sensor.timestamp']
|
/cts/tests/video/src/android/video/cts/ |
D | CodecInfo.java | 66 CodecCapabilities cap = codec.getCodecInfo().getCapabilitiesForType(mimeType); in getSupportedFormatInfo() local 67 if (cap.colorFormats.length == 0) { in getSupportedFormatInfo() 74 for (int color : cap.colorFormats) { in getSupportedFormatInfo() 82 printIntArray("supported colors", cap.colorFormats); in getSupportedFormatInfo() 85 MediaUtils.setMaxEncoderFrameAndBitrates(cap.getVideoCapabilities(), format, maxFps); in getSupportedFormatInfo()
|
/cts/tests/tests/print/src/android/print/cts/ |
D | PrinterCapabilitiesTest.java | 251 PrinterCapabilitiesInfo cap = printer.getCapabilities(); in sanePrinterCapabilityInfos() 253 assertEquals(mediaSizeIndex, cap.getMediaSizes().size()); in sanePrinterCapabilityInfos() 255 cap.getDefaults().getMediaSize()); in sanePrinterCapabilityInfos() 257 assertTrue(cap.getMediaSizes().contains(mediaSizes[i])); in sanePrinterCapabilityInfos() 260 assertEquals(resolutionIndex, cap.getResolutions().size()); in sanePrinterCapabilityInfos() 262 cap.getDefaults().getResolution()); in sanePrinterCapabilityInfos() 264 assertTrue(cap.getResolutions().contains(resolutions[i])); in sanePrinterCapabilityInfos() 267 assertEquals(allColors, cap.getColorModes()); in sanePrinterCapabilityInfos() 269 cap.getDefaults().getColorMode()); in sanePrinterCapabilityInfos() 271 assertEquals(allDuplexModes, cap.getDuplexModes()); in sanePrinterCapabilityInfos() [all …]
|
/cts/apps/CameraITS/tests/inprog/scene2/ |
D | test_dng_tags.py | 46 cap = cam.do_capture(its.objects.auto_capture_request()) 47 gains = cap["metadata"]["android.colorCorrection.gains"] 49 cap["metadata"]["android.colorCorrection.transform"]) 56 img = its.image.convert_capture_to_rgb_image(cap) 74 cap['metadata']['android.sensor.neutralColorPoint']))
|
/cts/apps/CameraITS/tests/scene3/ |
D | test_lens_position.py | 69 cap = its.image.stationary_lens_cap(cam, req, fmt) 71 data['loc'] = cap['metadata']['android.lens.focusDistance'] 74 y, _, _ = its.image.convert_capture_to_planes(cap, props) 88 for i, cap in enumerate(caps): 90 data['loc'] = cap['metadata']['android.lens.focusDistance'] 91 data['lens_moving'] = (cap['metadata']['android.lens.state'] 93 timestamp = cap['metadata']['android.sensor.timestamp'] * 1E-6 100 y, _, _ = its.image.convert_capture_to_planes(cap, props)
|