Home
last modified time | relevance | path

Searched refs:image (Results 1 – 25 of 148) sorted by relevance

123456

/cts/apps/CameraITS/tests/
Dtutorial.py25 import its.image
78 rgbimg = its.image.convert_capture_to_rgb_image(cap)
79 its.image.write_image(rgbimg, "%s_rgb_1.jpg" % (NAME))
83 yimg,uimg,vimg = its.image.convert_capture_to_planes(cap)
84 its.image.write_image(yimg, "%s_y_plane_1.jpg" % (NAME))
85 its.image.write_image(uimg, "%s_u_plane_1.jpg" % (NAME))
86 its.image.write_image(vimg, "%s_v_plane_1.jpg" % (NAME))
121 rgbimg = its.image.convert_capture_to_rgb_image(cap)
122 its.image.write_image(rgbimg, "%s_rgb_2.jpg" % (NAME))
141 tile = its.image.get_image_patch(rgbimg, 0.45, 0.45, 0.1, 0.1)
[all …]
/cts/tests/tests/media/src/android/media/cts/
DCodecUtils.java49 private ImageWrapper(Image image) { in ImageWrapper() argument
50 mImage = image; in ImageWrapper()
58 setCropRect(image.getCropRect()); in ImageWrapper()
61 public static ImageWrapper createFromImage(Image image) { in createFromImage() argument
62 return new ImageWrapper(image); in createFromImage()
120 public native static int getImageChecksumAdler32(CodecImage image); in getImageChecksumAdler32() argument
121 public native static String getImageChecksumMD5(CodecImage image); in getImageChecksumMD5() argument
135 CodecImage image, Rect area, int y, int u, int v); in fillImageRectWithYUV() argument
137 public static void fillImageRectWithYUV(Image image, Rect area, int y, int u, int v) { in fillImageRectWithYUV() argument
138 fillImageRectWithYUV(ImageWrapper.createFromImage(image), area, y, u, v); in fillImageRectWithYUV()
[all …]
DImageReaderDecoderTest.java458 Image image = mQueue.poll(timeout, TimeUnit.MILLISECONDS); in getImage() local
459 assertNotNull("Wait for an image timed out in " + timeout + "ms", image); in getImage()
460 return image; in getImage()
563 Image image = null; in decodeFramesToImage() local
566 image = decoder.getOutputImage(res); in decodeFramesToImage()
571 image = mImageListener.getImage(WAIT_FOR_IMAGE_TIMEOUT_MS); in decodeFramesToImage()
573 validateImage(image, width, height, imageFormat, fileName); in decodeFramesToImage()
577 validateSwirl(image); in decodeFramesToImage()
579 dumpFile(fileName, getDataFromImage(image)); in decodeFramesToImage()
584 if (image != null) { in decodeFramesToImage()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DYuvImageTest.java98 YuvImage image; in testYuvImage() local
121 image = new YuvImage(yuv, FORMATS[i], width, height, null); in testYuvImage()
122 actual = image.getStrides(); in testYuvImage()
159 YuvImage image = generateYuvImage(FORMATS[i], in testCompressYuvToJpeg() local
165 compressRects(mTestBitmaps[j], image, in testCompressYuvToJpeg()
171 compressRects(mTestBitmaps[j], image, RECTS_SHIFTED[0], in testCompressYuvToJpeg()
175 compressOddRect(mTestBitmaps[j], image, RECT_ODD_SIDES); in testCompressYuvToJpeg()
185 YuvImage image = generateYuvImage(ImageFormat.YUY2, mTestBitmaps[0], 0); in testGetHeight() local
186 assertEquals(mTestBitmaps[0].getHeight(), image.getHeight()); in testGetHeight()
187 assertEquals(mTestBitmaps[0].getWidth(), image.getWidth()); in testGetHeight()
[all …]
/cts/apps/CameraITS/tests/scene0/
Dtest_tonemap_curve.py19 import its.image
49 raw_patch = its.image.get_image_patch(
51 raw_means = its.image.compute_image_means(raw_patch)
74 raw_patch = its.image.get_image_patch(
76 yuv_patch = its.image.get_image_patch(
78 raw_means = np.array(its.image.compute_image_means(raw_patch))
79 raw_vars = np.array(its.image.compute_image_variances(raw_patch))
80 yuv_means = np.array(its.image.compute_image_means(yuv_patch))
82 yuv_vars = np.array(its.image.compute_image_variances(yuv_patch))
123 img_raw = its.image.convert_capture_to_rgb_image(
[all …]
Dtest_test_patterns.py19 import its.image
44 r, gr, gb, b = its.image.convert_capture_to_planes(cap, props)
45 r_tile = its.image.get_image_patch(r, 0.0, 0.0, 1.0, 1.0)
46 gr_tile = its.image.get_image_patch(gr, 0.0, 0.0, 1.0, 1.0)
47 gb_tile = its.image.get_image_patch(gb, 0.0, 0.0, 1.0, 1.0)
48 b_tile = its.image.get_image_patch(b, 0.0, 0.0, 1.0, 1.0)
75 img = its.image.convert_capture_to_rgb_image(cap, props=props)
80 tile = its.image.get_image_patch(img, float(i)/num_bars+delta,
82 color_match.append(np.allclose(its.image.compute_image_means(tile),
138 img = its.image.convert_capture_to_rgb_image(cap, props=props)
[all …]
/cts/apps/CameraITS/tests/scene1/
Dtest_yuv_plus_jpeg.py20 import its.image
50 img = its.image.convert_capture_to_rgb_image(cap_yuv, True)
51 its.image.write_image(img, "%s_yuv.jpg" % (NAME))
52 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
53 rgb0 = its.image.compute_image_means(tile)
55 img = its.image.convert_capture_to_rgb_image(cap_jpeg, True)
56 its.image.write_image(img, "%s_jpeg.jpg" % (NAME))
57 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
58 rgb1 = its.image.compute_image_means(tile)
Dtest_yuv_plus_raw.py19 import its.image
52 img = its.image.convert_capture_to_rgb_image(cap_yuv)
53 its.image.write_image(img, "%s_shading=%d_yuv.jpg" % (NAME, mode), True)
54 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
55 rgb0 = its.image.compute_image_means(tile)
59 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props)
60 its.image.write_image(img, "%s_shading=%d_raw.jpg" % (NAME, mode), True)
61 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
62 rgb1 = its.image.compute_image_means(tile)
Dtest_yuv_plus_raw10.py19 import its.image
53 img = its.image.convert_capture_to_rgb_image(cap_yuv)
54 its.image.write_image(img, "%s_shading=%d_yuv.jpg" % (NAME, mode), True)
55 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
56 rgb0 = its.image.compute_image_means(tile)
60 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props)
61 its.image.write_image(img, "%s_shading=%d_raw.jpg" % (NAME, mode), True)
62 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
63 rgb1 = its.image.compute_image_means(tile)
Dtest_yuv_plus_raw12.py20 import its.image
52 img = its.image.convert_capture_to_rgb_image(cap_yuv)
53 its.image.write_image(img, "%s_yuv.jpg" % (NAME), True)
54 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
55 rgb0 = its.image.compute_image_means(tile)
59 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props)
60 its.image.write_image(img, "%s_raw.jpg" % (NAME), True)
61 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
62 rgb1 = its.image.compute_image_means(tile)
Dtest_jpeg.py20 import its.image
45 img = its.image.convert_capture_to_rgb_image(cap)
46 its.image.write_image(img, "%s_fmt=yuv.jpg" % (NAME))
47 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
48 rgb0 = its.image.compute_image_means(tile)
55 img = its.image.decompress_jpeg_to_rgb_image(cap["data"])
56 its.image.write_image(img, "%s_fmt=jpg.jpg" % (NAME))
57 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
58 rgb1 = its.image.compute_image_means(tile)
Dtest_black_white.py19 import its.image
54 img = its.image.convert_capture_to_rgb_image(cap)
55 its.image.write_image(img, "%s_black.jpg" % NAME)
56 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
57 black_means = its.image.compute_image_means(tile)
73 img = its.image.convert_capture_to_rgb_image(cap)
74 its.image.write_image(img, "%s_white.jpg" % NAME)
75 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
76 white_means = its.image.compute_image_means(tile)
Dtest_param_tonemap_mode.py15 import its.image
73 img = its.image.convert_capture_to_rgb_image(cap)
74 its.image.write_image(
76 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
77 rgb_means.append(its.image.compute_image_means(tile))
97 img = its.image.convert_capture_to_rgb_image(cap)
98 its.image.write_image(
100 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
101 rgb_means.append(its.image.compute_image_means(tile))
Dtest_yuv_jpeg_all.py20 import its.image
54 img = its.image.convert_capture_to_rgb_image(cap)
55 its.image.write_image(img, "%s_yuv_w%d_h%d.jpg"%(
57 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
58 rgb = its.image.compute_image_means(tile)
68 img = its.image.decompress_jpeg_to_rgb_image(cap["data"])
69 its.image.write_image(img, "%s_jpg_w%d_h%d.jpg"%(
75 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
76 rgb = its.image.compute_image_means(tile)
Dtest_param_noise_reduction.py15 import its.image
62 rgb_image = its.image.convert_capture_to_rgb_image(cap)
63 its.image.write_image(
66 rgb_tile = its.image.get_image_patch(rgb_image, 0.45, 0.45, 0.1, 0.1)
67 ref_snr = its.image.compute_image_snrs(rgb_tile)
86 rgb_image = its.image.convert_capture_to_rgb_image(cap)
90 its.image.write_image(
93 rgb_tile = its.image.get_image_patch(
95 rgb_snrs = its.image.compute_image_snrs(rgb_tile)
Dtest_param_flash_mode.py18 import its.image
63 y, _, _ = its.image.convert_capture_to_planes(cap, props)
64 its.image.write_image(y, '%s_%d.jpg' % (NAME, f))
65 tile = its.image.get_image_patch(y, 0.375, 0.375, 0.25, 0.25)
66 its.image.write_image(tile, '%s_%d_tile.jpg' % (NAME, f))
67 means.append(its.image.compute_image_means(tile)[0])
68 grads.append(its.image.compute_image_max_gradients(tile)[0])
Dtest_raw_sensitivity.py18 import its.image
64 gr = its.image.convert_capture_to_planes(cap, props)[1]
65 tile = its.image.get_image_patch(gr, 0.445, 0.445, 0.11, 0.11)
66 var = its.image.compute_image_variances(tile)[0]
67 img = its.image.convert_capture_to_rgb_image(cap, props=props)
68 its.image.write_image(img, "%s_s=%05d_var=%f.jpg" %
81 _, var_image = its.image.unpack_rawstats_capture(cap)
82 cfa_idxs = its.image.get_canonical_cfa_order(props)
Dtest_crop_regions.py18 import its.image
54 img_full = its.image.convert_capture_to_rgb_image(cap_full)
56 its.image.write_image(
82 img_crop = its.image.convert_capture_to_rgb_image(cap)
83 img_crop = its.image.downscale_image(img_crop, 2)
84 its.image.write_image(img_crop, "%s_crop%d.jpg" % (NAME, i))
88 tile_full = its.image.get_image_patch(img_full, x, y, w, h)
93 its.image.write_image(
Dtest_raw_burst_sensitivity.py18 import its.image
83 gr = its.image.convert_capture_to_planes(cap, props)[1]
84 tile = its.image.get_image_patch(gr, 0.445, 0.445, 0.11, 0.11)
85 var = its.image.compute_image_variances(tile)[0]
86 img = its.image.convert_capture_to_rgb_image(cap, props=props)
87 its.image.write_image(img,
92 _, var_image = its.image.unpack_rawstats_capture(cap)
93 cfa_idxs = its.image.get_canonical_cfa_order(props)
Dtest_tonemap_sequence.py18 import its.image
58 img = its.image.convert_capture_to_rgb_image(cap)
59 its.image.write_image(img, "%s_i=%d.jpg" % (NAME, i))
60 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
67 img = its.image.convert_capture_to_rgb_image(cap)
68 its.image.write_image(img, "%s_i=%d.jpg" % (NAME, i))
69 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
Dtest_reprocess_noise_reduction.py19 import its.image
79 img = its.image.decompress_jpeg_to_rgb_image(cap["data"])
80 its.image.write_image(img, "%s_low_gain_fmt=jpg.jpg" % NAME)
81 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
82 ref_snr = its.image.compute_image_snrs(tile)
102 img = its.image.decompress_jpeg_to_rgb_image(
105 its.image.write_image(
111 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
113 rgb_snrs = its.image.compute_image_snrs(tile)
/cts/apps/CameraITS/tests/scene3/
Dtest_lens_position.py20 import its.image
69 cap = its.image.stationary_lens_cap(cam, req, fmt)
74 y, _, _ = its.image.convert_capture_to_planes(cap, props)
75 chart.img = its.image.normalize_img(its.image.get_image_patch(
77 its.image.write_image(chart.img, '%s_stat_i=%d_chart.jpg' % (NAME, i))
78 data['sharpness'] = white_level*its.image.compute_image_sharpness(
100 y, _, _ = its.image.convert_capture_to_planes(cap, props)
101 y = its.image.rotate_img_per_argv(y)
102 chart.img = its.image.normalize_img(its.image.get_image_patch(
104 its.image.write_image(chart.img, '%s_move_i=%d_chart.jpg' % (NAME, i))
[all …]
Dtest_flip_mirror.py21 import its.image
60 y, _, _ = its.image.convert_capture_to_planes(cap, props)
61 y = its.image.rotate_img_per_argv(y)
62 patch = its.image.get_image_patch(y, chart.xnorm, chart.ynorm,
72 its.image.write_image(template[:, :, np.newaxis]/255.0,
76 its.image.write_image(patch[:, :, np.newaxis]/255.0,
80 template = its.image.get_image_patch(template, (1-X_CROP)/2, (1-Y_CROP)/2,
82 patch = its.image.get_image_patch(patch, (1-X_CROP)/2,
/cts/apps/CameraITS/tests/inprog/
Dtest_blc_lsc.py15 import its.image
74 img = its.image.convert_capture_to_rgb_image(cap)
75 its.image.write_image(img, "%s_i=%d.jpg"%(NAME, i))
77 tile_center = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
78 rgb_means = its.image.compute_image_means(tile_center)
83 tile_corner = its.image.get_image_patch(img, 0.0, 0.0, 0.1, 0.1)
84 rgb_means = its.image.compute_image_means(tile_corner)
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DHardwareRendererTests.kt74 var image: Image? = null in <lambda>() variable
83 image = reader.acquireNextImage() in <lambda>()
84 assertNotNull(image) in <lambda>()
85 val planes = image.planes in <lambda>()
110 image?.close() in <lambda>()
153 var image: Image? = null in testBasicDrawCpuConsumer() variable
171 image = reader.acquireNextImage() in testBasicDrawCpuConsumer()
172 assertNotNull(image) in testBasicDrawCpuConsumer()
173 val planes = image.planes in testBasicDrawCpuConsumer()
190 image?.close() in testBasicDrawCpuConsumer()
[all …]

123456