Home
last modified time | relevance | path

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

123

/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_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']
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_param_edge_mode.py42 cap = cam.do_capture(req)
43 img = its.image.convert_capture_to_rgb_image(cap)
/cts/apps/CameraITS/tests/scene1/
Dtest_yuv_jpeg_all.py44 cap = cam.do_capture(req, out_surface)
45 assert(cap["format"] == "yuv")
46 assert(cap["width"] == size[0])
47 assert(cap["height"] == size[1])
48 print "Captured YUV %dx%d" % (cap["width"], cap["height"])
49 img = its.image.convert_capture_to_rgb_image(cap)
58 cap = cam.do_capture(req, out_surface)
59 assert(cap["format"] == "jpeg")
60 assert(cap["width"] == size[0])
61 assert(cap["height"] == size[1])
[all …]
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_jpeg.py41 cap = cam.do_capture(req, out_surface)
42 img = its.image.convert_capture_to_rgb_image(cap)
50 cap = cam.do_capture(req, out_surface)
51 img = its.image.decompress_jpeg_to_rgb_image(cap["data"])
Dtest_raw_sensitivity.py62 cap = cam.do_capture(req, cam.CAP_RAW)
63 gr = its.image.convert_capture_to_planes(cap, props)[1]
66 img = its.image.convert_capture_to_rgb_image(cap, props=props)
76 cap = cam.do_capture(req,
80 _, var_image = its.image.unpack_rawstats_capture(cap)
Dtest_param_flash_mode.py58 cap = cam.do_capture(req, fmt)
59 flash_modes_reported.append(cap['metadata']['android.flash.mode'])
60 flash_states_reported.append(cap['metadata']['android.flash.state'])
61 y, _, _ = its.image.convert_capture_to_planes(cap, props)
Dtest_dng_noise_model.py76 cap = cam.do_capture(req, cam.CAP_RAW)
77 planes = its.image.convert_capture_to_planes(cap, props)
79 cap = cam.do_capture(req, {'format': 'rawStats',
82 mean_img, var_img = its.image.unpack_rawstats_capture(cap)
85 noise_profile = cap['metadata']['android.sensor.noiseProfile']
96 cap['metadata'])
Dtest_tonemap_sequence.py54 cap = cam.do_capture(req, fmt)
55 img = its.image.convert_capture_to_rgb_image(cap)
63 cap = cam.do_capture(req, fmt)
64 img = its.image.convert_capture_to_rgb_image(cap)
Dtest_black_white.py54 cap = cam.do_capture(req, fmt)
55 img = its.image.convert_capture_to_rgb_image(cap)
69 cap = cam.do_capture(req, fmt)
70 img = its.image.convert_capture_to_rgb_image(cap)
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_ev_compensation_advanced.py84 for cap in caps:
85 if (cap['metadata']['android.control.aeState'] == LOCKED):
86 y = its.image.convert_capture_to_planes(cap)[0]
90 assert(cap['metadata']['android.control.aeState'] == LOCKED)
Dtest_raw_burst_sensitivity.py77 for i, cap in enumerate(caps):
83 gr = its.image.convert_capture_to_planes(cap, props)[1]
86 img = its.image.convert_capture_to_rgb_image(cap, props=props)
92 _, var_image = its.image.unpack_rawstats_capture(cap)
/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/
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.py35 cap = cam.do_capture(req, fmt)
36 ts_image0 = cap['metadata']['android.sensor.timestamp']
53 cap = cam.do_capture(req, fmt)
54 ts_image1 = cap['metadata']['android.sensor.timestamp']
Dtest_capture_result_dump.py33 cap = cam.do_capture(req, fmt)
34 pprint.pprint(cap["metadata"])
Dtest_burst_capture.py33 cap = caps[0]
34 img = its.image.convert_capture_to_rgb_image(cap, props=props)
/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/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.py76 cap = its.image.stationary_lens_cap(cam, req, fmt)
78 data['loc'] = cap['metadata']['android.lens.focusDistance']
81 y, _, _ = its.image.convert_capture_to_planes(cap, props)
95 for i, cap in enumerate(caps):
97 data['loc'] = cap['metadata']['android.lens.focusDistance']
98 data['lens_moving'] = (cap['metadata']['android.lens.state']
100 timestamp = cap['metadata']['android.sensor.timestamp'] * 1E-6
107 y, _, _ = its.image.convert_capture_to_planes(cap, props)
/cts/tests/tests/print/src/android/print/cts/
DPrinterCapabilitiesTest.java250 PrinterCapabilitiesInfo cap = printer.getCapabilities(); in sanePrinterCapabilityInfos()
252 assertEquals(mediaSizeIndex, cap.getMediaSizes().size()); in sanePrinterCapabilityInfos()
254 cap.getDefaults().getMediaSize()); in sanePrinterCapabilityInfos()
256 assertTrue(cap.getMediaSizes().contains(mediaSizes[i])); in sanePrinterCapabilityInfos()
259 assertEquals(resolutionIndex, cap.getResolutions().size()); in sanePrinterCapabilityInfos()
261 cap.getDefaults().getResolution()); in sanePrinterCapabilityInfos()
263 assertTrue(cap.getResolutions().contains(resolutions[i])); in sanePrinterCapabilityInfos()
266 assertEquals(allColors, cap.getColorModes()); in sanePrinterCapabilityInfos()
268 cap.getDefaults().getColorMode()); in sanePrinterCapabilityInfos()
270 assertEquals(allDuplexModes, cap.getDuplexModes()); in sanePrinterCapabilityInfos()
[all …]

123