Home
last modified time | relevance | path

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

1234

/cts/apps/CameraITS/pymodules/its/
Dimage.py49 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/
Dtest_3a_remote.py43 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 …]
Dtest_black_level.py61 cap = cam.do_capture(req)
62 yimg,uimg,vimg = its.image.convert_capture_to_planes(cap)
63 w = cap["width"]
64 h = cap["height"]
Dtest_crop_region.py58 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/
Dtest_auto_per_frame_control.py34 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 …]
Dtest_effects.py61 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/
Dtest_yuv_jpeg_all.py49 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 …]
Dtest_black_white.py53 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"]
Dtest_ae_precapture_trigger.py56 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']
Dtest_raw_sensitivity.py63 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)
Dtest_jpeg.py43 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"])
Dtest_channel_saturation.py50 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']
Dtest_param_flash_mode.py59 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)
Dtest_param_noise_reduction.py61 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"])
Dtest_dng_noise_model.py73 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'])
Dtest_tonemap_sequence.py57 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)
Dtest_param_tonemap_mode.py72 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)
Dtest_ev_compensation_advanced.py80 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/
Dtutorial.py69 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/
Dtest_test_patterns.py34 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 …]
Dtest_unified_timestamps.py38 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/
DCodecInfo.java66 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/
DPrinterCapabilitiesTest.java251 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/
Dtest_dng_tags.py46 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/
Dtest_lens_position.py69 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)

1234