Home
last modified time | relevance | path

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

1234

/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.java40 private ImageWrapper(Image image) { in ImageWrapper() argument
41 mImage = image; in ImageWrapper()
50 public static ImageWrapper createFromImage(Image image) { in createFromImage() argument
51 return new ImageWrapper(image); in createFromImage()
109 public native static int getImageChecksum(CodecImage image); in getImageChecksum() argument
122 CodecImage image, Rect area, int y, int u, int v); in fillImageRectWithYUV() argument
124 public static void fillImageRectWithYUV(Image image, Rect area, int y, int u, int v) { in fillImageRectWithYUV() argument
125 fillImageRectWithYUV(ImageWrapper.createFromImage(image), area, y, u, v); in fillImageRectWithYUV()
128 public native static long[] getRawStats(CodecImage image, Rect area); in getRawStats() argument
130 public static long[] getRawStats(Image image, Rect area) { in getRawStats() argument
[all …]
/cts/apps/CameraITS/tests/scene1/
Dtest_yuv_plus_jpeg.py15 import its.image
44 img = its.image.convert_capture_to_rgb_image(cap_yuv, True)
45 its.image.write_image(img, "%s_yuv.jpg" % (NAME))
46 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
47 rgb0 = its.image.compute_image_means(tile)
49 img = its.image.convert_capture_to_rgb_image(cap_jpeg, True)
50 its.image.write_image(img, "%s_jpeg.jpg" % (NAME))
51 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
52 rgb1 = its.image.compute_image_means(tile)
Dtest_yuv_plus_raw12.py15 import its.image
44 img = its.image.convert_capture_to_rgb_image(cap_yuv)
45 its.image.write_image(img, "%s_yuv.jpg" % (NAME), True)
46 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
47 rgb0 = its.image.compute_image_means(tile)
51 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props)
52 its.image.write_image(img, "%s_raw.jpg" % (NAME), True)
53 tile = its.image.get_image_patch(img, 0.475, 0.475, 0.05, 0.05)
54 rgb1 = its.image.compute_image_means(tile)
Dtest_yuv_plus_raw10.py15 import its.image
44 img = its.image.convert_capture_to_rgb_image(cap_yuv)
45 its.image.write_image(img, "%s_yuv.jpg" % (NAME), True)
46 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
47 rgb0 = its.image.compute_image_means(tile)
51 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props)
52 its.image.write_image(img, "%s_raw.jpg" % (NAME), True)
53 tile = its.image.get_image_patch(img, 0.475, 0.475, 0.05, 0.05)
54 rgb1 = its.image.compute_image_means(tile)
Dtest_yuv_plus_raw.py15 import its.image
43 img = its.image.convert_capture_to_rgb_image(cap_yuv)
44 its.image.write_image(img, "%s_yuv.jpg" % (NAME), True)
45 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
46 rgb0 = its.image.compute_image_means(tile)
50 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props)
51 its.image.write_image(img, "%s_raw.jpg" % (NAME), True)
52 tile = its.image.get_image_patch(img, 0.475, 0.475, 0.05, 0.05)
53 rgb1 = its.image.compute_image_means(tile)
Dtest_jpeg.py15 import its.image
42 img = its.image.convert_capture_to_rgb_image(cap)
43 its.image.write_image(img, "%s_fmt=yuv.jpg" % (NAME))
44 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
45 rgb0 = its.image.compute_image_means(tile)
51 img = its.image.decompress_jpeg_to_rgb_image(cap["data"])
52 its.image.write_image(img, "%s_fmt=jpg.jpg" % (NAME))
53 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
54 rgb1 = its.image.compute_image_means(tile)
Dtest_black_white.py15 import its.image
47 img = its.image.convert_capture_to_rgb_image(cap)
48 its.image.write_image(img, "%s_black.jpg" % (NAME))
49 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
50 black_means = its.image.compute_image_means(tile)
62 img = its.image.convert_capture_to_rgb_image(cap)
63 its.image.write_image(img, "%s_white.jpg" % (NAME))
64 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
65 white_means = its.image.compute_image_means(tile)
Dtest_yuv_jpeg_all.py15 import its.image
49 img = its.image.convert_capture_to_rgb_image(cap)
50 its.image.write_image(img, "%s_yuv_w%d_h%d.jpg"%(
52 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
53 rgb = its.image.compute_image_means(tile)
62 img = its.image.decompress_jpeg_to_rgb_image(cap["data"])
63 its.image.write_image(img, "%s_jpg_w%d_h%d.jpg"%(
69 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
70 rgb = its.image.compute_image_means(tile)
Dtest_param_noise_reduction.py15 import its.image
59 its.image.write_image(
60 its.image.convert_capture_to_rgb_image(cap),
62 planes = its.image.convert_capture_to_planes(cap)
65 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
66 ref_variance.append(its.image.compute_image_variances(tile)[0])
84 its.image.write_image(
85 its.image.convert_capture_to_rgb_image(cap),
87 planes = its.image.convert_capture_to_planes(cap)
90 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
[all …]
Dtest_param_tonemap_mode.py15 import its.image
64 img = its.image.convert_capture_to_rgb_image(cap)
65 its.image.write_image(
67 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
68 rgb_means.append(its.image.compute_image_means(tile))
89 img = its.image.convert_capture_to_rgb_image(cap)
90 its.image.write_image(
92 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
93 rgb_means.append(its.image.compute_image_means(tile))
Dtest_tonemap_sequence.py15 import its.image
46 img = its.image.convert_capture_to_rgb_image(cap)
47 its.image.write_image(img, "%s_i=%d.jpg" % (NAME, i))
48 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
55 img = its.image.convert_capture_to_rgb_image(cap)
56 its.image.write_image(img, "%s_i=%d.jpg" % (NAME, i))
57 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
Dtest_auto_vs_manual.py15 import its.image
50 img_auto = its.image.convert_capture_to_rgb_image(cap_auto)
51 its.image.write_image(img_auto, "%s_auto.jpg" % (NAME))
63 img_man1 = its.image.convert_capture_to_rgb_image(cap_man1)
64 its.image.write_image(img_man1, "%s_manual_wb.jpg" % (NAME))
78 img_man2 = its.image.convert_capture_to_rgb_image(cap_man2)
79 its.image.write_image(img_man2, "%s_manual_wb_tm.jpg" % (NAME))
Dtest_reprocess_noise_reduction.py15 import its.image
77 img = its.image.decompress_jpeg_to_rgb_image(cap["data"])
78 its.image.write_image(img, "%s_low_gain_fmt=jpg.jpg" % (NAME))
79 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
80 ref_variance = its.image.compute_image_variances(tile)
99 img = its.image.decompress_jpeg_to_rgb_image(cap["data"])
100 its.image.write_image(
102 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
104 variance = its.image.compute_image_variances(tile)
Dtest_crop_regions.py15 import its.image
54 img_full = its.image.convert_capture_to_rgb_image(cap_full)
55 its.image.write_image(img_full, "%s_full.jpg" % (NAME))
81 img_crop = its.image.convert_capture_to_rgb_image(cap)
82 img_crop = its.image.downscale_image(img_crop, 2)
83 its.image.write_image(img_crop, "%s_crop%d.jpg" % (NAME, i))
87 tile_full = its.image.get_image_patch(img_full, x,y,w,h)
92 its.image.write_image(tile_full, "%s_fullregion%d.jpg"%(NAME,j))
Dtest_param_flash_mode.py15 import its.image
49 img = its.image.convert_capture_to_rgb_image(cap)
50 its.image.write_image(img, "%s_mode=%d.jpg" % (NAME, f))
51 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
52 rgb = its.image.compute_image_means(tile)
Dtest_burst_sameness_manual.py15 import its.image
61 imgs[n] = its.image.convert_capture_to_rgb_image(cap)
62 tile = its.image.get_image_patch(imgs[n], 0.45, 0.45, 0.1, 0.1)
63 means = its.image.compute_image_means(tile)
71 its.image.write_image(imgs[i], "%s_frame%03d.jpg"%(NAME,i))
75 its.image.write_image(img_mean, "%s_mean.jpg"%(NAME))
Dtest_raw_sensitivity.py18 import its.image
60 plane = its.image.convert_capture_to_planes(cap, props)[1]
61 tile = its.image.get_image_patch(plane, 0.45,0.45,0.1,0.1)
62 var = its.image.compute_image_variances(tile)[0]
65 img = its.image.convert_capture_to_rgb_image(cap, props=props)
66 its.image.write_image(img, "%s_s=%05d_var=%f.jpg" % (NAME,s,var))
Dtest_raw_burst_sensitivity.py18 import its.image
67 plane = its.image.convert_capture_to_planes(cap, props)[1]
68 tile = its.image.get_image_patch(plane, 0.45,0.45,0.1,0.1)
69 var = its.image.compute_image_variances(tile)[0]
72 img = its.image.convert_capture_to_rgb_image(cap, props=props)
73 its.image.write_image(img, "%s_s=%05d_var=%f.jpg" % (NAME,s,var))
Dtest_locked_burst.py15 import its.image
59 img = its.image.convert_capture_to_rgb_image(cap)
60 its.image.write_image(img, "%s_frame%d.jpg"%(NAME,i))
61 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
62 means = its.image.compute_image_means(tile)
Dtest_param_exposure_time.py15 import its.image
44 img = its.image.convert_capture_to_rgb_image(cap)
45 its.image.write_image(
47 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
48 rgb_means = its.image.compute_image_means(tile)
/cts/tests/tests/graphics/src/android/graphics/cts/
DYuvImageTest.java96 YuvImage image; in testYuvImage() local
101 image = new YuvImage(yuv, mFormats[i], width, height, null); in testYuvImage()
119 image = new YuvImage(yuv, mFormats[i], width, height, null); in testYuvImage()
120 actual = image.getStrides(); in testYuvImage()
133 image = new YuvImage(yuv, format, -1, height, null); in testYuvImage()
141 image = new YuvImage(yuv, format, width, -1, null); in testYuvImage()
149 image = new YuvImage(null, format, width, height, null); in testYuvImage()
168 YuvImage image = generateYuvImage(mFormats[i], in testCompressYuvToJpeg() local
174 compressRects(mTestBitmaps[j], image, in testCompressYuvToJpeg()
180 compressRects(mTestBitmaps[j], image, mRectsShifted[0], in testCompressYuvToJpeg()
[all …]
/cts/apps/CameraITS/tests/inprog/
Dtest_burst_sameness_auto.py15 import its.image
68 imgs[n] = its.image.convert_capture_to_rgb_image(cap)
69 tile = its.image.get_image_patch(imgs[n], 0.45, 0.45, 0.1, 0.1)
70 means = its.image.compute_image_means(tile)
78 its.image.write_image(imgs[i], "%s_frame%03d.jpg"%(NAME,i))
82 its.image.write_image(img_mean, "%s_mean.jpg"%(NAME))
Dtest_blc_lsc.py15 import its.image
75 img = its.image.convert_capture_to_rgb_image(cap)
76 its.image.write_image(img, "%s_i=%d.jpg"%(NAME, i))
78 tile_center = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
79 rgb_means = its.image.compute_image_means(tile_center)
84 tile_corner = its.image.get_image_patch(img, 0.0, 0.0, 0.1, 0.1)
85 rgb_means = its.image.compute_image_means(tile_corner)
/cts/apps/CameraITS/tools/
Dconvert_yuv_to_jpg.py15 import its.image
32 img = its.image.load_yuv420_to_rgb_image(fname, w,h, layout=layout)
33 its.image.write_image(img, fname.replace(".yuv",".jpg"), False)

1234