/third_party/python/Lib/tkinter/test/test_tkinter/ |
D | test_images.py | 286 image2 = image.copy() 287 self.assertEqual(image2.width(), 16) 288 self.assertEqual(image2.height(), 16) 293 image2 = image.subsample(2, 3) 294 self.assertEqual(image2.width(), 8) 295 self.assertEqual(image2.height(), 6) 296 self.assertEqual(image2.get(2, 2), image.get(4, 6)) 298 image2 = image.subsample(2) 299 self.assertEqual(image2.width(), 8) 300 self.assertEqual(image2.height(), 8) [all …]
|
/third_party/cef/tests/ceftests/ |
D | image_unittest.cc | 82 CefRefPtr<CefImage> image2 = CefImage::CreateImage(); in VerifySaveAsBitmap() local 83 EXPECT_TRUE(image2.get()); in VerifySaveAsBitmap() 84 EXPECT_TRUE(image2->AddBitmap(expected_scale_factor, pixel_width, in VerifySaveAsBitmap() 88 VerifyScaleExists(image2, expected_scale_factor, expected_scale_factor); in VerifySaveAsBitmap() 109 CefRefPtr<CefImage> image2 = CefImage::CreateImage(); in VerifySaveAsPNG() local 110 EXPECT_TRUE(image2.get()); in VerifySaveAsPNG() 111 EXPECT_TRUE(image2->AddPNG(expected_scale_factor, &data[0], data_size)); in VerifySaveAsPNG() 112 VerifyScaleExists(image2, expected_scale_factor, expected_scale_factor); in VerifySaveAsPNG() 133 CefRefPtr<CefImage> image2 = CefImage::CreateImage(); in VerifySaveAsJPEG() local 134 EXPECT_TRUE(image2.get()); in VerifySaveAsJPEG() [all …]
|
/third_party/mindspore/tests/ut/python/dataset/ |
D | test_soft_dvpp.py | 50 image2 = item2["image"] 51 mse = diff_mse(image1, image2) 55 visualize_image(image1, image2, mse) 81 image2 = item2["image"] 82 mse = diff_mse(image1, image2) 86 visualize_image(image1, image2, mse) 113 image2 = item2["image"] 114 mse = diff_mse(image1, image2) 118 visualize_image(image1, image2, mse)
|
D | test_random_choice.py | 61 image2 = (item2["image"].transpose(1, 2, 0) * 255).astype(np.uint8) 63 image_original.append(image2) 101 image2 = (item2["image"].transpose(1, 2, 0) * 255).astype(np.uint8) 103 image_original.append(image2) 105 mse = diff_mse(image1, image2)
|
D | test_random_grayscale.py | 64 image2 = (item2["image"].transpose(1, 2, 0) * 255).astype(np.uint8) 66 image.append(image2) 105 image2 = (item2["image"].transpose(1, 2, 0) * 255).astype(np.uint8) 107 image.append(image2) 111 assert len(image2.shape) == 3 112 assert image2.shape[2] == 3
|
D | test_random_posterize.py | 59 image2 = item2["image"] 61 image_original.append(image2) 106 image2 = item2["image"] 108 image_original.append(image2) 144 image2 = item2["image"] 146 image_original.append(image2)
|
D | test_mixup_label_smoothing.py | 92 image2 = data2["image"] 100 img_golden = lam_value * image2[index] + (1 - lam_value) * image2[index + 1] 143 image2 = data2["image"] 156 img_golden = lam_value * image2[index] + (1 - lam_value) * batch1_image1[index]
|
D | test_random_crop_decode_resize.py | 54 image2 = item2["image"] 55 mse = diff_mse(image1, image2) 59 visualize_image(image1, image2, mse)
|
D | test_to_type.py | 60 image2 = item2["image"] 63 assert isinstance(image2, np.ndarray) 65 assert image2.dtype == np.float32 66 assert image1.shape == image2.shape
|
D | test_random_order.py | 64 image2 = (item2["image"].transpose(1, 2, 0) * 255).astype(np.uint8) 66 image_original.append(image2)
|
D | test_random_affine.py | 65 image2 = (item2["image"].transpose(1, 2, 0) * 255).astype(np.uint8) 67 image_original.append(image2) 99 image2 = item2["image"] 101 image_original.append(image2)
|
D | test_linear_transformation.py | 69 image2 = (item2["image"].transpose(1, 2, 0) * 255).astype(np.uint8) 71 image.append(image2) 73 mse = diff_mse(image1, image2)
|
D | test_random_perspective.py | 64 image2 = (item2["image"].transpose(1, 2, 0) * 255).astype(np.uint8) 66 image_original.append(image2)
|
/third_party/boost/libs/gil/test/core/image/ |
D | image.cpp | 53 image_t image2(image1); in operator ()() local 54 BOOST_TEST_EQ(image2.dimensions(), dimensions); in operator ()() 56 auto v2 = gil::const_view(image2); in operator ()() 85 image_t image2(std::move(image)); in operator ()() local 86 BOOST_TEST_EQ(image2.dimensions(), dimensions); in operator ()() 105 image_t image2 = fixture::create_image<image_t>(dimensions.x * 2, dimensions.y * 2, 1); in operator ()() local 106 image2 = std::move(image); in operator ()() 107 BOOST_TEST_EQ(image2.dimensions(), dimensions); in operator ()()
|
/third_party/skia/third_party/externals/brotli/research/ |
D | draw_diff.cc | 39 void CalculateDiff(int** diff, Image image1, Image image2, in CalculateDiff() argument 43 diff[i][j] = static_cast<int>(image1[i][j]) - image2[i][j]; in CalculateDiff() 48 void DrawDiff(int** diff, Image image1, Image image2, in DrawDiff() argument 56 int img_min = std::min(255 - image1[i][j], 255 - image2[i][j]); in DrawDiff() 69 int min_val = std::min(255 - image1[i][j], 255 - image2[i][j]); in DrawDiff() 92 Image image1, image2; in main() local 100 ReadPGM(fimage2, &image2, &h2, &w2); in main() 110 CalculateDiff(diff, image1, image2, h1, w1); in main() 113 DrawDiff(diff, image1, image2, h1, w1, fdiff); in main()
|
/third_party/glslang/Test/baseResults/ |
D | spv.paramMemory.420.frag.out | 29 Name 41 "image2" 48 Decorate 41(image2) DescriptorSet 0 49 Decorate 41(image2) Binding 2 50 Decorate 41(image2) NonWritable 74 41(image2): 8(ptr) Variable UniformConstant 103 44: 12(fvec4) FunctionCall 16(image_load(I21;vi2;) 41(image2) 42(param)
|
/third_party/skia/docs/examples/ |
D | Image_MakeFromBitmap.cpp | 18 sk_sp<SkImage> image2 = bitmap.asImage(); in draw() local 22 canvas->drawImage(image2, 10, 0); in draw()
|
/third_party/flutter/skia/docs/examples/ |
D | Image_MakeFromBitmap.cpp | 18 sk_sp<SkImage> image2 = SkImage::MakeFromBitmap(bitmap); in draw() local 22 canvas->drawImage(image2, 10, 0); in draw()
|
/third_party/glslang/Test/ |
D | spv.paramMemory.420.frag | 7 readonly uniform layout(set = 0, binding = 2) image2D image2; 27 vec4 read2 = image_load(image2, in_coords);
|
D | spv.paramMemory.frag | 4 // readonly uniform layout(set = 0, binding = 2) highp image2D image2; 24 highp vec4 read2 = vec4(0.5); // = image_load(image2, in_coords);
|
/third_party/ffmpeg/tests/ |
D | fate-run.sh | 311 …do_avconv $file -auto_conversion_filters $DEC_OPTS -f image2 -c:v pgmyuv -i $raw_src $DEC_OPTS -ar… 342 …run_avconv $DEC_OPTS -f image2 -c:v pgmyuv -i $raw_src $1 "$ENC_OPTS -metadata title=lavftest" -vf… 353 …do_avconv $file -auto_conversion_filters $DEC_OPTS -f image2 -c:v pgmyuv -i $raw_src -f image2pipe… 361 …do_avconv $file -auto_conversion_filters $DEC_OPTS -f image2 -c:v pgmyuv -i $raw_src "$ENC_OPTS -m… 379 run_avconv $DEC_OPTS -r 1 -f image2 -c:v pgmyuv -i $raw_src \ 391 ffmpeg $DEC_OPTS -f image2 -vcodec pgmyuv -i $raw_src \
|
/third_party/skia/tests/ |
D | SurfaceTest.cpp | 343 sk_sp<SkImage> image2(surface->makeImageSnapshot()); in test_backend_unique_id() local 345 REPORTER_ASSERT(reporter, image0->uniqueID() != image2->uniqueID()); in test_backend_unique_id() 352 REPORTER_ASSERT(reporter, image2->uniqueID() != image3->uniqueID()); in test_backend_unique_id() 511 sk_sp<SkImage> image2(surface1->makeImageSnapshot()); in test_crbug263329() local 531 REPORTER_ASSERT(reporter, imageProxy(image4.get()) != imageProxy(image2.get())); in test_crbug263329() 533 REPORTER_ASSERT(reporter, imageProxy(image3.get()) != imageProxy(image2.get())); in test_crbug263329() 535 REPORTER_ASSERT(reporter, imageProxy(image2.get()) != imageProxy(image1.get())); in test_crbug263329() 616 sk_sp<SkImage> image2 = surface->makeImageSnapshot(); in test_no_canvas2() local 617 sk_sp<SkImage> aur_image2(image2); // NOLINT(performance-unnecessary-copy-initialization) in test_no_canvas2() 618 REPORTER_ASSERT(reporter, image1 != image2); in test_no_canvas2() [all …]
|
/third_party/flutter/skia/tests/ |
D | SurfaceTest.cpp | 356 sk_sp<SkImage> image2(surface->makeImageSnapshot()); in test_backend_unique_id() local 358 REPORTER_ASSERT(reporter, image0->uniqueID() != image2->uniqueID()); in test_backend_unique_id() 365 REPORTER_ASSERT(reporter, image2->uniqueID() != image3->uniqueID()); in test_backend_unique_id() 485 sk_sp<SkImage> image2(surface1->makeImageSnapshot()); in test_crbug263329() local 498 REPORTER_ASSERT(reporter, as_IB(image4)->getTexture() != as_IB(image2)->getTexture()); in test_crbug263329() 500 REPORTER_ASSERT(reporter, as_IB(image3)->getTexture() != as_IB(image2)->getTexture()); in test_crbug263329() 502 REPORTER_ASSERT(reporter, as_IB(image2)->getTexture() != as_IB(image1)->getTexture()); in test_crbug263329() 587 sk_sp<SkImage> image2 = surface->makeImageSnapshot(); in test_no_canvas2() local 588 sk_sp<SkImage> aur_image2(image2); in test_no_canvas2() 589 REPORTER_ASSERT(reporter, image1 != image2); in test_no_canvas2() [all …]
|
/third_party/flutter/flutter/packages/flutter/test/widgets/ |
D | obscured_animated_image_test.dart | 33 final ui.Image image2 = renderImage.image; 34 expect(image1, isNot(same(image2)));
|
/third_party/gstreamer/gstplugins_bad/ext/ttml/ |
D | gstttmlrender.c | 195 (GstTtmlRenderRenderedImage * image1, GstTtmlRenderRenderedImage * image2); 2332 GstTtmlRenderRenderedImage * image2) in gst_ttml_render_rendered_image_combine() argument 2339 if (!image1 && !image2) in gst_ttml_render_rendered_image_combine() 2341 if (image1 && !image2) in gst_ttml_render_rendered_image_combine() 2343 if (image2 && !image1) in gst_ttml_render_rendered_image_combine() 2344 return gst_ttml_render_rendered_image_copy (image2); in gst_ttml_render_rendered_image_combine() 2349 ret->x = MIN (image1->x, image2->x); in gst_ttml_render_rendered_image_combine() 2350 ret->y = MIN (image1->y, image2->y); in gst_ttml_render_rendered_image_combine() 2351 ret->width = MAX (image1->x + image1->width, image2->x + image2->width) in gst_ttml_render_rendered_image_combine() 2353 ret->height = MAX (image1->y + image1->height, image2->y + image2->height) in gst_ttml_render_rendered_image_combine() [all …]
|