Home
last modified time | relevance | path

Searched refs:img (Results 1 – 25 of 54) sorted by relevance

123

/cts/tests/tests/media/libmediandkjni/
Dcodec-utils-jni.cpp169 NativeImage *img = new NativeImage; in getNativeImage() local
170 img->format = env->CallIntMethod(image, gFields.methodFormat); in getNativeImage()
171 img->width = env->CallIntMethod(image, gFields.methodWidth); in getNativeImage()
172 img->height = env->CallIntMethod(image, gFields.methodHeight); in getNativeImage()
173 img->timestamp = env->CallLongMethod(image, gFields.methodTimestamp); in getNativeImage()
181 img->crop.left = env->GetIntField(area, gFields.fieldLeft); in getNativeImage()
182 img->crop.top = env->GetIntField(area, gFields.fieldTop); in getNativeImage()
183 img->crop.right = env->GetIntField(area, gFields.fieldRight); in getNativeImage()
184 img->crop.bottom = env->GetIntField(area, gFields.fieldBottom); in getNativeImage()
185 if (img->crop.right == 0 && img->crop.bottom == 0) { in getNativeImage()
[all …]
/cts/apps/CameraITS/pymodules/its/
Dimage.py102 img = numpy.ndarray(shape=(2*h*w*4,), dtype='<f', buffer=cap["data"])
103 analysis_image = img.reshape(2,h,w,4)
128 def unpack_raw10_image(img): argument
140 if img.shape[1] % 5 != 0:
142 w = img.shape[1]*4/5
143 h = img.shape[0]
145 msbs = numpy.delete(img, numpy.s_[4::5], 1)
150 lsbs = img[::, 4::5].reshape(h,w/4)
178 def unpack_raw12_image(img): argument
190 if img.shape[1] % 3 != 0:
[all …]
/cts/apps/CameraITS/tests/scene1/
Dtest_crop_region_raw.py87 img = its.image.convert_capture_to_rgb_image(cap, props=props)
88 its.image.write_image(img, "%s_%s.jpg" % (NAME, s))
89 imgs[s] = img
115 for s,img in imgs.iteritems():
116 h,w,ch = img.shape
118 img = img.reshape(h/2,2,w/2,2,3).mean(3).mean(1)
119 img = img.reshape(h/2,w/2,3)
120 imgs2[s] = img
132 for s,img in imgs2.iteritems():
133 its.image.write_image(img, "%s_comp_%s.jpg" % (NAME, s))
Dtest_yuv_jpeg_all.py49 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)
62 img = its.image.decompress_jpeg_to_rgb_image(cap["data"])
63 its.image.write_image(img, "%s_jpg_w%d_h%d.jpg"%(
65 assert(img.shape[0] == size[1])
66 assert(img.shape[1] == size[0])
67 assert(img.shape[2] == 3)
69 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
Dtest_jpeg.py42 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)
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)
Dtest_yuv_plus_jpeg.py48 img = its.image.convert_capture_to_rgb_image(cap_yuv, True)
49 its.image.write_image(img, "%s_yuv.jpg" % (NAME))
50 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
53 img = its.image.convert_capture_to_rgb_image(cap_jpeg, True)
54 its.image.write_image(img, "%s_jpeg.jpg" % (NAME))
55 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
Dtest_yuv_plus_raw.py49 img = its.image.convert_capture_to_rgb_image(cap_yuv)
50 its.image.write_image(img, "%s_yuv.jpg" % (NAME), True)
51 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
56 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props)
57 its.image.write_image(img, "%s_raw.jpg" % (NAME), True)
58 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
Dtest_yuv_plus_raw10.py49 img = its.image.convert_capture_to_rgb_image(cap_yuv)
50 its.image.write_image(img, "%s_yuv.jpg" % (NAME), True)
51 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
56 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props)
57 its.image.write_image(img, "%s_raw.jpg" % (NAME), True)
58 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
Dtest_yuv_plus_raw12.py49 img = its.image.convert_capture_to_rgb_image(cap_yuv)
50 its.image.write_image(img, "%s_yuv.jpg" % (NAME), True)
51 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
56 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props)
57 its.image.write_image(img, "%s_raw.jpg" % (NAME), True)
58 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
Dtest_black_white.py55 img = its.image.convert_capture_to_rgb_image(cap)
56 its.image.write_image(img, "%s_black.jpg" % (NAME))
57 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
70 img = its.image.convert_capture_to_rgb_image(cap)
71 its.image.write_image(img, "%s_white.jpg" % (NAME))
72 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
Dtest_tonemap_sequence.py54 img = its.image.convert_capture_to_rgb_image(cap)
55 its.image.write_image(img, "%s_i=%d.jpg" % (NAME, i))
56 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
63 img = its.image.convert_capture_to_rgb_image(cap)
64 its.image.write_image(img, "%s_i=%d.jpg" % (NAME, i))
65 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
Dtest_param_tonemap_mode.py72 img = its.image.convert_capture_to_rgb_image(cap)
74 img, "%s_n=%d.jpg" %(NAME, n))
75 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
97 img = its.image.convert_capture_to_rgb_image(cap)
99 img, "%s_size=%02d.jpg" %(NAME, size))
100 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
Dtest_linearity.py81 img = its.image.convert_capture_to_rgb_image(cap)
83 img, '%s_sens=%04d.jpg' % (NAME, sens))
84 img = its.image.apply_lut_to_image(img, inv_gamma_lut[1::2] * LM1)
85 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
Dtest_reprocess_noise_reduction.py80 img = its.image.decompress_jpeg_to_rgb_image(cap["data"])
81 its.image.write_image(img, "%s_low_gain_fmt=jpg.jpg" % (NAME))
82 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
103 img = its.image.decompress_jpeg_to_rgb_image(cap["data"])
106 img,
112 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
Dtest_locked_burst.py61 img = its.image.convert_capture_to_rgb_image(cap)
62 its.image.write_image(img, "%s_frame%d.jpg"%(NAME,i))
63 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
Dtest_param_flash_mode.py57 img = its.image.convert_capture_to_rgb_image(cap)
58 its.image.write_image(img, "%s_mode=%d.jpg" % (NAME, f))
59 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
Dtest_param_exposure_time.py52 img = its.image.convert_capture_to_rgb_image(cap)
54 img, "%s_frame%d.jpg" % (NAME, i))
55 tile = its.image.get_image_patch(img, 0.45, 0.45, 0.1, 0.1)
/cts/apps/CameraITS/tests/scene4/
Dtest_aspect_ratio_and_crop.py158 img = its.image.convert_capture_to_rgb_image(frm_iter)
162 measure_aspect_ratio(img, raw_avlb, img_name,
251 def measure_aspect_ratio(img, raw_avlb, img_name, debug): argument
265 size = img.shape
266 img = img * 255
268 img_gray = 0.299 * img[:,:,2] + 0.587 * img[:,:,1] + 0.114 * img[:,:,0]
347 its.image.write_image(img/255, img_name, True)
353 its.image.write_image(img/255, img_name, True)
361 cv2.line(img, (circle_ctx, circle_cty), (size[1]/2, size[0]/2),
378 cv2.circle(img, (circle_ctx, circle_cty), line_width*2, (255, 0, 0), -1)
[all …]
/cts/hostsidetests/services/activityandwindowmanager/activitymanager/src/android/server/cts/
DSplashscreenTests.java37 private void assertAllColor(BufferedImage img, Rectangle bounds, int expectedColor) { in assertAllColor() argument
40 assertTrue(x < img.getWidth()); in assertAllColor()
41 assertTrue(y < img.getHeight()); in assertAllColor()
42 final int color = img.getRGB(x, y); in assertAllColor()
/cts/apps/CameraITS/tests/inprog/
Dtest_blc_lsc.py75 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)
84 tile_corner = its.image.get_image_patch(img, 0.0, 0.0, 0.1, 0.1)
Dtest_test_patterns.py36 img = its.image.convert_capture_to_rgb_image(caps[1])
37 its.image.write_image(img, "%s_pattern=%d.jpg" % (NAME, i))
Dtest_param_edge_mode.py43 img = its.image.convert_capture_to_rgb_image(cap)
44 its.image.write_image(img, "%s_mode=%d.jpg" % (NAME, e))
/cts/apps/CameraITS/tests/scene2/
Dtest_faces.py62 img = its.image.convert_capture_to_rgb_image(cap, props=props)
63 img = its.image.flip_mirror_img_per_argv(img)
65 its.image.write_image(img, img_name)
/cts/apps/CameraITS/tools/
Dconvert_yuv_to_jpg.py32 img = its.image.load_yuv420_to_rgb_image(fname, w,h, layout=layout)
33 its.image.write_image(img, fname.replace(".yuv",".jpg"), False)
/cts/apps/CameraITS/tests/scene0/
Dtest_burst_capture.py34 img = its.image.convert_capture_to_rgb_image(cap, props=props)
36 its.image.write_image(img, img_name)

123